From: Ralf Wildenhues Date: Wed, 15 Sep 2004 01:39:18 +0000 (+0000) Subject: * m4/libtool.m4 (_LT_ENABLE_LOCK):Replace AC_TRY_LINK with X-Git-Tag: release-1-9d~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=faa4aa46a2b536b6f3bd72ce182f7aa82ddd5208;p=thirdparty%2Flibtool.git * m4/libtool.m4 (_LT_ENABLE_LOCK):Replace AC_TRY_LINK with AC_LINK_IFELSE to get rid of `autoconf -Wobsolete' warning. * m4/ltdl.m4 (LT_LIB_DLLOAD): Ditto. --- diff --git a/ChangeLog b/ChangeLog index 200c8d543..0aa8f0b42 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-09-15 Ralf Wildenhues + + * m4/libtool.m4 (_LT_ENABLE_LOCK):Replace AC_TRY_LINK with + AC_LINK_IFELSE to get rid of `autoconf -Wobsolete' warning. + * m4/ltdl.m4 (LT_LIB_DLLOAD): Ditto. + 2004-09-15 Gary V. Vaughan * config/ltmain.in (func_quote_for_eval): Set a return value to diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 217ad9f6b..c5820bd46 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -943,7 +943,7 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf diff --git a/m4/ltdl.m4 b/m4/ltdl.m4 index 3d50d76a6..d28b12d3f 100644 --- a/m4/ltdl.m4 +++ b/m4/ltdl.m4 @@ -385,10 +385,10 @@ AC_CHECK_LIB([dl], [dlopen], [Define if you have the libdl library or equivalent.]) LIBADD_DLOPEN="-ldl" libltdl_cv_lib_dl_dlopen="yes" LT_DLLOADERS="$LT_DLLOADERS dlopen.la"], - [AC_TRY_LINK([#if HAVE_DLFCN_H + [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H # include #endif - ], [dlopen(0, 0);], + ]], [[dlopen(0, 0);]])], [AC_DEFINE([HAVE_LIBDL], [1], [Define if you have the libdl library or equivalent.]) libltdl_cv_func_dlopen="yes"