From Gary V. Vaughan libtool.m4 (with_gcc): GCC is set to "yes" or the empty string by current autoconf, so for the sake of other tests agains $GCC in ltmain.sh, default to "no" if not set. Index: libtool.m4 =================================================================== RCS file: /cvsroot/libtool/libtool/libtool.m4,v retrieving revision 1.218 diff -b -u -r1.218 libtool.m4 --- libtool.m4 2001/08/06 17:52:37 1.218 +++ libtool.m4 2001/08/07 03:10:22 @@ -3306,7 +3306,7 @@ CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) # Is the compiler the GNU C compiler? -with_gcc=$_LT_AC_TAGVAR(GCC, $1) +with_gcc=${_LT_AC_TAGVAR(GCC, $1)-no} # The linker used to build libraries. LD=$lt_[]_LT_AC_TAGVAR(LD, $1)