From cadaf30a72de9824c35d7c39652a80a1ecec878b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 29 Apr 2007 05:50:27 +0000 Subject: [PATCH] * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look for a.* when searching for executables, as this prevents users from having files like a.c. Problem reported by Ralf Wildenhues in: http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html This fixes a problem introduced on 2000-12-19. --- ChangeLog | 8 ++++++++ lib/autoconf/lang.m4 | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index b82ce141..bd7441e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-04-28 Paul Eggert + + * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't look + for a.* when searching for executables, as this prevents users + from having files like a.c. Problem reported by Ralf Wildenhues in: + http://lists.gnu.org/archive/html/autoconf-patches/2007-04/msg00029.html + This fixes a problem introduced on 2000-12-19. + 2007-04-26 Paul Eggert * doc/autoconf.texi (Limitations of Builtins): Warn about Solaris diff --git a/lib/autoconf/lang.m4 b/lib/autoconf/lang.m4 index 8a205b0a..1755a8a8 100644 --- a/lib/autoconf/lang.m4 +++ b/lib/autoconf/lang.m4 @@ -477,9 +477,9 @@ AC_MSG_CHECKING([for _AC_LANG compiler default output file name]) ac_link_default=`AS_ECHO(["$ac_link"]) | sed ['s/ -o *conftest[^ ]*//']` # # List of possible output files, starting from the most likely. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) -# only as a last resort. b.out is created by i960 compilers. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' +# The algorithm is not robust to junk in `.', hence go to wildcards +# (conftest.*) only as a last resort. b.out is created by i960 compilers. +ac_files='a_out.exe a.exe conftest.exe a.out conftest conftest.* b.out' # # The IRIX 6 linker writes into existing files which may not be # executable, retaining their permissions. Remove them first so a -- 2.47.2