From: Gary V. Vaughan Date: Mon, 30 Aug 2004 20:27:17 +0000 (+0000) Subject: * configure.ac: Because of the way the autoconf C++ testing X-Git-Tag: release-1-9d~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2f428a0c682f24e6966808c6403e346db2db198;p=thirdparty%2Flibtool.git * configure.ac: Because of the way the autoconf C++ testing works, we need to call the C test first to work in an environment that has no C++ compiler. --- diff --git a/ChangeLog b/ChangeLog index 9e329945d..23ff3e865 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2004-08-30 Gary V. Vaughan + * configure.ac: Because of the way the autoconf C++ testing + works, we need to call the C test first to work in an environment + that has no C++ compiler. + * libltdl/lt_dlloader.c (lt_dlloader_remove): Since the return value of this function is often passed to free, don't declare it `const'. Responsibility for this memory is given back to the diff --git a/configure.ac b/configure.ac index 2043d2571..0e13cd996 100644 --- a/configure.ac +++ b/configure.ac @@ -150,6 +150,12 @@ AC_SUBST([DIST_MAKEFILE_LIST]) ## compiler checks. ## ## ---------------- ## +# Need to be sure that we have a working C compiler, otherwise even with +# a good C compiler: if the following C++ tests fail, the whole libtool +# build fails! +AC_PROG_CC +AC_PROG_CPP + # The Autoconf tests for C++ and Fortran 77 sometimes call AC_MSG_ERROR # and we don't want that to be an error whilst creating the libtool script. # As these are AC_REQUIREd inside libtool.m4 we can simply call them here