]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* configure.ac: Because of the way the autoconf C++ testing
authorGary V. Vaughan <gary@gnu.org>
Mon, 30 Aug 2004 20:27:17 +0000 (20:27 +0000)
committerGary V. Vaughan <gary@gnu.org>
Mon, 30 Aug 2004 20:27:17 +0000 (20:27 +0000)
works, we need to call the C test first to work in an environment
that has no C++ compiler.

ChangeLog
configure.ac

index 9e329945dc769841093239b985ccc6c9790cced2..23ff3e865721e8c783f62ca798d86bb2ea02f4bb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2004-08-30  Gary V. Vaughan  <gary@gnu.org>
 
+       * 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
index 2043d25715e9af3ebda7e6b71ad4fd288574b874..0e13cd996b9c5d2f6ed2106a90e4b4a49f361734 100644 (file)
@@ -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