From: Ruben Kerkhof Date: Wed, 24 Dec 2014 22:42:29 +0000 (+0100) Subject: Use libtool to check for libdl X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~111^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a596b8e996f16fe6c61fb697be7057106dc85991;p=thirdparty%2Fpdns.git Use libtool to check for libdl --- diff --git a/configure.ac b/configure.ac index 9b35e22e82..2bea45374f 100644 --- a/configure.ac +++ b/configure.ac @@ -61,7 +61,7 @@ AC_SEARCH_LIBS([gethostent], [nsl]) AC_SEARCH_LIBS([inet_aton], [resolv]) LT_PREREQ([2.2.2]) -LT_INIT([disable-static]) +LT_INIT([disable-static dlopen]) MC_TM_GMTOFF @@ -118,13 +118,7 @@ PDNS_CHECK_LINKCHECKER dnl Checks for library functions. AC_CHECK_FUNCS_ONCE([strcasestr localtime_r]) -# Check for libdl -my_save_LIBS="$LIBS" -LIBS="" -AC_CHECK_LIB(dl,dlopen) -LIBDL=$LIBS -LIBS="$my_save_LIBS" -AC_SUBST(LIBDL) +AC_SUBST([LIBDL], [$lt_cv_dlopen_libs]) AC_MSG_CHECKING([for RTLD_NOW]); ac_save_LIBS="$LIBS"