source: trunk-3.0/source/lib/replace/dlfcn.m4@ 102

Last change on this file since 102 was 39, checked in by Paul Smedley, 18 years ago

Upgrade source to 3.0.25a

File size: 476 bytes
Line 
1dnl dummies provided by dlfcn.c if not available
2save_LIBS="$LIBS"
3LIBS=""
4
5libreplace_cv_dlfcn=no
6AC_SEARCH_LIBS(dlopen, dl)
7
8if test x"${ac_cv_search_dlopen}" = x"no"; then
9 libreplace_cv_dlfcn=yes
10else
11 AC_CHECK_HEADERS(dlfcn.h)
12 AC_CHECK_FUNCS([dlopen dlsym dlerror dlclose],[],[libreplace_cv_dlfcn=yes])
13fi
14
15if test x"${libreplace_cv_dlfcn}" = x"yes";then
16 LIBREPLACEOBJ="${LIBREPLACEOBJ} dlfcn.o"
17fi
18
19LIBDL="$LIBS"
20AC_SUBST(LIBDL)
21LIBS="$save_LIBS"
Note: See TracBrowser for help on using the repository browser.