* 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.
This commit is contained in:
Gary V. Vaughan 2004-08-30 20:27:17 +00:00
parent 5da74960c2
commit b2f428a0c6
2 changed files with 10 additions and 0 deletions

View File

@ -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

View 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