From 7e251d1f1182c0c3317bbf3d3ab073eadc7f4583 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 6 Sep 2006 01:50:09 +0000 Subject: r18124: Keep right libs when looking for dl*() functions (This used to be commit 12ce4cef2fcdb4224fdf15c9ecf952ceb797f02c) --- source4/lib/replace/libreplace.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/lib/replace/libreplace.m4 b/source4/lib/replace/libreplace.m4 index ffea11f734..c396f11dfd 100644 --- a/source4/lib/replace/libreplace.m4 +++ b/source4/lib/replace/libreplace.m4 @@ -144,11 +144,11 @@ dnl dummies provided by dlfcn.c if not available save_LIBS="$LIBS" LIBS="" AC_SEARCH_LIBS(dlopen, dl) +AC_CHECK_HEADERS(dlfcn.h) +AC_CHECK_FUNCS(dlopen dlsym dlerror dlclose) LIBDL="$LIBS" AC_SUBST(LIBDL) LIBS="$save_LIBS" -AC_CHECK_HEADERS(dlfcn.h) -AC_CHECK_FUNCS(dlopen dlsym dlerror dlclose) AC_CHECK_FUNCS([syslog memset setnetgrent getnetgrent endnetgrent memcpy],, [AC_MSG_ERROR([Required function not found])]) -- cgit