]> granicus.if.org Git - php/commitdiff
Define HAVE_LIBDL, if dlopen() was found.
authorSascha Schumann <sas@php.net>
Sat, 26 Oct 2002 21:28:35 +0000 (21:28 +0000)
committerSascha Schumann <sas@php.net>
Sat, 26 Oct 2002 21:28:35 +0000 (21:28 +0000)
It was tempting to do a complete s/HAVE_LIBDL/HAVE_DLOPEN/ over the
whole code base.  I defer that to a later point in time for now.

configure.in

index b701e20800d2173560e08b1ed9ae73f95a95ccce..005fbdd199c0992083abf15c11f602ba70977e47 100644 (file)
@@ -280,6 +280,9 @@ PHP_CHECK_FUNC(gethostbyaddr, nsl)
 PHP_CHECK_FUNC(yp_get_default_domain, nsl)
 
 PHP_CHECK_FUNC(dlopen, dl)
+if test "$ac_cv_func_dlopen" = "yes"; then
+  AC_DEFINE(HAVE_LIBDL, 1, [ ])
+fi
 AC_CHECK_LIB(m, sin)
 
 dnl Check for resolver routines.