[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Lars J. Aas
Subject: [patch] AC_OBJEXT/AC_EXEEXT
Date: Wed, 20 Dec 2000 18:49:03 +0100
User-agent: Mutt/1.2.5i

This is a solution that works for me on Linux/gcc and with the MSVC
wrapper on Cygwin.  I've removed the `conftext$ac_exeext' part because
$ac_exeext defaults to "" and ls on Cygwin reports the virtual file
conftest when the file is named `conftest.exe'.  If there is a point
in including it, please add it between the `conftest.exe' case and the 
`conftest' case.

2000-12-20  Lars J. Aas  <address@hidden>

        Make the order of arguments for ls count by splitting the ls
        command into a sequence of ls commands.

Index: aclang.m4
RCS file: /cvs/autoconf/aclang.m4,v
retrieving revision 1.102
diff -u -r1.102 aclang.m4
--- aclang.m4   2000/12/20 17:31:22     1.102
+++ aclang.m4   2000/12/20 17:40:57
@@ -691,8 +688,7 @@
 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 # work properly (i.e., refer to `conftest.exe'), while it won't with
 # `rm'.
-for ac_file in `ls conftest$ac_exeext conftest.exe conftest conftest.* \
-                  2>/dev/null`; do
+for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
   case $ac_file in
     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     *) ac_cv_exeext=`expr "$ac_file" : ['[^.]*\(\..*\)']`
@@ -738,7 +734,7 @@
 rm -f conftest.o conftest.obj
-[for ac_file in `ls conftest.o conftest.obj conftest.* 2>/dev/null`; do
+[for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
   case $ac_file in
     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`

reply via email to

[Prev in Thread] Current Thread [Next in Thread]