svn commit: samba r20383 - in
branches/SAMBA_4_0/source/lib/replace: .
metze at samba.org
metze at samba.org
Thu Dec 28 17:05:25 GMT 2006
Author: metze
Date: 2006-12-28 17:05:23 +0000 (Thu, 28 Dec 2006)
New Revision: 20383
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20383
Log:
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
Modified:
branches/SAMBA_4_0/source/lib/replace/dlfcn.m4
Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/dlfcn.m4
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/dlfcn.m4 2006-12-28 13:06:29 UTC (rev 20382)
+++ branches/SAMBA_4_0/source/lib/replace/dlfcn.m4 2006-12-28 17:05:23 UTC (rev 20383)
@@ -4,13 +4,15 @@
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"
More information about the samba-cvs
mailing list