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