From: Ken Raeburn Date: Mon, 17 Jul 2006 17:55:54 +0000 (+0000) Subject: (KRB5_AC_FIND_DLOPEN): Use AC_SEARCH_LIBS X-Git-Tag: krb5-1.6-alpha1~209 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6949593ec1bf7a8a10c78c9f7928b3cba08b1b4f;p=krb5.git (KRB5_AC_FIND_DLOPEN): Use AC_SEARCH_LIBS ticket: 3971 target_version: 1.5.1 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18331 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 5a080f8c3..8fd2f8d34 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -157,9 +157,14 @@ fi dnl find dlopen AC_DEFUN([KRB5_AC_FIND_DLOPEN],[ -AC_CHECK_LIB(dl, dlopen,[DL_LIB=-ldl +old_LIBS="$LIBS" +DL_LIB= +AC_SEARCH_LIBS(dlopen, dl, [ +if test "$ac_cv_search_dlopen" != "none required"; then + DL_LIB=$ac_cv_search_dlopen +fi +LIBS="$old_LIBS" AC_DEFINE(USE_DLOPEN,1,[Define if dlopen should be used])]) -dnl AC_CHECK_LIB(ld, main, DL_LIB=-lld) AC_SUBST(DL_LIB) ])