mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
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)
This commit is contained in:
parent
48c3f76b2e
commit
0b24e3d021
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user