Fix test suite failures reported by Pierre in

<http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
the compiler created a file "b.out" when it didn't create anything
at all.
* lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
Discard stderr too, when invoking the test script.
This commit is contained in:
Paul Eggert 2006-08-07 07:10:24 +00:00
parent 75a9e8db40
commit 75f3372076
3 changed files with 16 additions and 4 deletions

View File

@ -1,3 +1,13 @@
2006-08-06 Paul Eggert <eggert@cs.ucla.edu>
Fix test suite failures reported by Pierre in
<http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
the compiler created a file "b.out" when it didn't create anything
at all.
* lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
Discard stderr too, when invoking the test script.
2006-08-05 Alexandre Julliard <julliard@winehq.org> (tiny change)
* lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo

View File

@ -500,7 +500,7 @@ AS_IF([_AC_DO_VAR(ac_link_default)],
# in a Makefile. We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files
for ac_file in $ac_files ''
do
test -f "$ac_file" || continue
case $ac_file in
@ -527,10 +527,12 @@ do
done
test "$ac_cv_exeext" = no && ac_cv_exeext=
],
[_AC_MSG_LOG_CONFTEST
[ac_file=''])
AC_MSG_RESULT([$ac_file])
AS_IF([test -z "$ac_file"],
[_AC_MSG_LOG_CONFTEST
AC_MSG_FAILURE([_AC_LANG compiler cannot create executables], 77)])
ac_exeext=$ac_cv_exeext
AC_MSG_RESULT([$ac_file])
])# _AC_COMPILER_EXEEXT_DEFAULT

View File

@ -85,7 +85,7 @@ AC_DEFUN([AC_SYS_INTERPRETER],
exit 69
' >conftest
chmod u+x conftest
(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
if test $? -ne 69; then
ac_cv_sys_interpreter=yes
else