summaryrefslogtreecommitdiff
path: root/source4/lib/replace
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-09-06 01:50:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:35 -0500
commit7e251d1f1182c0c3317bbf3d3ab073eadc7f4583 (patch)
treee419f65464383fd82ebd5644d923c8e89eb264e6 /source4/lib/replace
parentca720634dd87ec4d7b8c82a1eea46931dab03667 (diff)
downloadsamba-7e251d1f1182c0c3317bbf3d3ab073eadc7f4583.tar.gz
samba-7e251d1f1182c0c3317bbf3d3ab073eadc7f4583.tar.bz2
samba-7e251d1f1182c0c3317bbf3d3ab073eadc7f4583.zip
r18124: Keep right libs when looking for dl*() functions
(This used to be commit 12ce4cef2fcdb4224fdf15c9ecf952ceb797f02c)
Diffstat (limited to 'source4/lib/replace')
-rw-r--r--source4/lib/replace/libreplace.m44
1 files 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])])