From b655405aea9ab3824778b72fa0abcb224f056c05 Mon Sep 17 00:00:00 2001 From: wolfgang Date: Thu, 4 Aug 2005 02:09:36 +0000 Subject: [PATCH] [project @ 2005-08-04 02:09:36 by wolfgang] Check for RTLD_DEFAULT in dlfcn.h and use it if it is available. (On Mac OS X its value is -2, and using NULL instead does not work.) MERGE TO STABLE --- configure.ac | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/configure.ac b/configure.ac index a71049a..6d33854 100644 --- a/configure.ac +++ b/configure.ac @@ -1176,6 +1176,24 @@ AC_EGREP_CPP(yes, ]) AC_SUBST(HaveRtldNext) +dnl ** RTLD_DEFAULT isn't available on cygwin +AC_MSG_CHECKING(for RTLD_DEFAULT from dlfcn.h) +AC_EGREP_CPP(yes, +[ + #include + #ifdef RTLD_DEFAULT + yes + #endif +], [ + AC_MSG_RESULT(yes) + AC_DEFINE([HAVE_RTLDDEFAULT], [1], [Define to 1 if RTLD_DEFAULT is available.]) + HaveRtldDefault=YES +], [ + AC_MSG_RESULT(no) + HaveRtldDefault=NO + ]) +AC_SUBST(HaveRtldDefault) + dnl ** RTLD_LOCAL isn't available on cygwin or openbsd AC_MSG_CHECKING(for RTLD_LOCAL from dlfcn.h) AC_EGREP_CPP(yes, -- 1.7.10.4