summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-12-28 17:17:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:45 -0500
commit0b24e3d02147e68256bc8c64b3a9dcca9fda3a9b (patch)
treeae924b59c4b9bc5c153311ff4ae33028426842d6 /source3
parent48c3f76b2e6bc197c6977d22480a31e7f4b10b69 (diff)
downloadsamba-0b24e3d02147e68256bc8c64b3a9dcca9fda3a9b.tar.gz
samba-0b24e3d02147e68256bc8c64b3a9dcca9fda3a9b.tar.bz2
samba-0b24e3d02147e68256bc8c64b3a9dcca9fda3a9b.zip
r20385: merge from samba4:
only try to find dlfcn.h if the dlopen symbol was found, it hopefully fixes systems where dlfcn.h but no library with dlopen metze (This used to be commit b303e929d1ac6f1d931d0b92bdecdf292e1598cd)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/replace/dlfcn.m412
1 files changed, 7 insertions, 5 deletions
diff --git a/source3/lib/replace/dlfcn.m4 b/source3/lib/replace/dlfcn.m4
index c9d31592e0..2d5b2c5141 100644
--- a/source3/lib/replace/dlfcn.m4
+++ b/source3/lib/replace/dlfcn.m4
@@ -4,13 +4,15 @@ LIBS=""
AC_SEARCH_LIBS(dlopen, dl)
-AC_CHECK_HEADERS(dlfcn.h)
+if test "$ac_cv_search_dlopen" != no; then
+ AC_CHECK_HEADERS(dlfcn.h)
-libreplace_cv_dlfcn=no
-AC_CHECK_FUNCS([dlopen dlsym dlerror dlclose],[],[libreplace_cv_dlfcn=yes])
+ libreplace_cv_dlfcn=no
+ AC_CHECK_FUNCS([dlopen dlsym dlerror dlclose],[],[libreplace_cv_dlfcn=yes])
-if test x"${libreplace_cv_dlfcn}" = x"yes";then
- LIBREPLACEOBJ="${LIBREPLACEOBJ} dlfcn.o"
+ if test x"${libreplace_cv_dlfcn}" = x"yes";then
+ LIBREPLACEOBJ="${LIBREPLACEOBJ} dlfcn.o"
+ fi
fi
LIBDL="$LIBS"