[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_OBJEXT again
From: |
Lars J. Aas |
Subject: |
Re: AC_OBJEXT again |
Date: |
Thu, 30 Nov 2000 18:24:08 +0100 |
User-agent: |
Mutt/1.2.5i |
On Thu, Nov 30, 2000 at 05:50:54PM +0100, Bernard Dautrevaux wrote:
: Perhaps in fact we can write the test as:
:
: for ac_file in `ls conftest conftest.exe conftest.* 2>/dev/null`; do
: case $ac_file in
: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds) ;;
: conftest)
: if rm conftest; then
: ac_cv_exeext=
: break
: fi
: ;;
: *) ac_cv_exeext=`expr "$ac_file" : 'conftest\(.*\)'`
: break;;
: esac
: done
:
: Sure it looks UGLY, and we should document why ls could return conftest and
: rm not be able to remove it, but it should work around cygwin magic :-)
Sure, but why bother when you can just make sure that the conftest.exe case
is tested before the conftest case? There are no CygNix environment for
Unix that reports true for `test -f \bin\ls.exe' when the file is really named
just ls, is there? ;-)
Lars J