sub handle_per_suffix_test($)
{
my $test_suffix = shift;
- my ($pfx, $parallel_tests_option, $am_exeext);
+ my ($pfx, $parallel_tests_option);
prog_error ("called with 'parallel-tests' option not set")
unless $parallel_tests_option = option 'parallel-tests';
if ($test_suffix eq '')
unless $test_suffix =~ m/^\.(.*)/;
$pfx = uc ($1) . '_';
}
- $am_exeext = exists $configure_vars{'EXEEXT'} ? 'am__EXEEXT'
- : 'FALSE';
# The "test driver" program, deputed to handle tests protocol used by
# test scripts. By default, it's assumed that no protocol is used,
# so we fall back to the old "parallel-tests" behaviour, implemented
}
$output_rules .= file_contents ('check2', new Automake::Location,
PFX => $pfx,
- EXT => $test_suffix,
- am__EXEEXT => $am_exeext);
+ EXT => $test_suffix);
}
# is_valid_test_extension ($EXT)
$output_rules .= &file_contents ('check', new Automake::Location,
COLOR => !! option 'color-tests',
PARALLEL_TESTS => !! option 'parallel-tests',
- CHECK_DEPS => "@check",
- 'HANDLE-EXEEXT' => (exists $configure_vars{'EXEEXT'} ?
- 'TRUE' : 'FALSE'));
+ CHECK_DEPS => "@check");
if (my $parallel_tests = option 'parallel-tests')
{
'LIBTOOL' => !! var ('LIBTOOL'),
'NONLIBTOOL' => 1,
+ 'HANDLE-EXEEXT' => (exists $configure_vars{'EXEEXT'} ?
+ 'TRUE' : 'FALSE'),
%transform);
if (! defined ($_ = $am_file_cache{$file}))
@$(call am__runtest,%PFX%)
## If no programs are built in this package, then this rule is removed
-## at automake time. Otherwise, %am__EXEEXT% expands to a configure time
-## conditional, true if $(EXEEXT) is nonempty, thus this rule does not
-## conflict with the previous one.
-if %am__EXEEXT%
+## at automake time.
+if %HANDLE-EXEEXT%
+## FIXME: spurious indentnation to avoid Automake thinking this is an
+## automake conditional.
+ ifdef EXEEXT
%.log %.trs: %%EXT%$(EXEEXT)
@$(call am__runtest,%PFX%)
-endif %am__EXEEXT%
+ endif
+endif %HANDLE-EXEEXT%
[m4_define([AC_PROG_OBJCXX],
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
])
-AC_REQUIRE([AM_SILENT_RULES])dnl
-dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
-dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
-dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
-AC_CONFIG_COMMANDS_PRE(dnl
-[m4_provide_if([_AM_COMPILER_EXEEXT],
- [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
-])
-
-dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
-dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
-dnl mangled by Autoconf and run in a shell conditional statement.
-m4_define([_AC_COMPILER_EXEEXT],
-m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
+AC_REQUIRE([AM_SILENT_RULES])])
# When config.status generates a header, we must update the stamp-h file.
cat >> configure.ac << 'END'
dnl We need to fool the init.m4 internals a little.
-AC_DEFUN([_AM_FOO],
- [m4_provide([_AM_COMPILER_EXEEXT])
- AC_SUBST([CC], [false])
- AC_SUBST([EXEEXT])])
-_AM_FOO
+AC_SUBST([CC], [false])
+AC_SUBST([EXEEXT])
AC_OUTPUT
END