From e3c603ee559f4dc1c9fcd263b0a64d37dc08042c Mon Sep 17 00:00:00 2001 From: Robert Boehne Date: Thu, 6 Feb 2003 04:51:20 +0000 Subject: [PATCH] * libtool.m4 (AC_CHECK_LIBM): Search for a real symbol in the math library rather than 'main', it causes problems for C++ compilers with certain Auto* tools. (AC_LIBLTDL_INSTALLABLE): ditto. --- ChangeLog | 7 +++++++ libtool.m4 | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1d6ce74a9..4015d99e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-02-05 Robert Boehne + + * libtool.m4 (AC_CHECK_LIBM): Search for a real symbol in + the math library rather than 'main', it causes problems for + C++ compilers with certain Auto* tools. + (AC_LIBLTDL_INSTALLABLE): ditto. + 2003-02-05 Christian Cornelssen * libtool.m4 (_LT_AC_LANG_CXX_CONFIG) diff --git a/libtool.m4 b/libtool.m4 index 632e35fc4..5012b3e0e 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -2246,10 +2246,10 @@ case $host in ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") - AC_CHECK_LIB(m, main, LIBM="$LIBM -lm") + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) - AC_CHECK_LIB(m, main, LIBM="-lm") + AC_CHECK_LIB(m, cos, LIBM="-lm") ;; esac ])# AC_CHECK_LIBM @@ -2294,7 +2294,7 @@ AC_DEFUN([AC_LIBLTDL_CONVENIENCE], # In the future, this macro may have to be called after AC_PROG_LIBTOOL. AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl - AC_CHECK_LIB(ltdl, main, + AC_CHECK_LIB(ltdl, lt_dlinit, [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], [if test x"$enable_ltdl_install" = xno; then AC_MSG_WARN([libltdl not installed, but installation disabled]) -- 2.47.2