[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gcc -mno-cygwin and autoconf 2.50
From: |
Teun Burgers |
Subject: |
gcc -mno-cygwin and autoconf 2.50 |
Date: |
Tue, 29 May 2001 23:20:26 +0200 |
Hi
I am maintaining the configure script for
gnugo (http://www.fsf.org/software/gnugo/)
Under autoconf 2.13 when you had AC_EXEEXT
in you configure.in you could do under cygwin
a mingw32 build as follows:
env CC='gcc -mno-cygwin' ./configure
AC_EXEEXT would set ac_cv_mingw32=yes,
so you were able to test for mingw32.
For instance I had the test
if test $ac_cv_mingw32=yes;then
LIBS="$LIBS -lwsock32"
fi
Under autoconf 2.50 this does not work,
since ac_canonical_host will detect cygwin.
I can work around this by writing a header
test for __MINGW32__
What do you think is the best solution to this problem?
thanks
Teun Burgers
- gcc -mno-cygwin and autoconf 2.50,
Teun Burgers <=