From: stolz Date: Thu, 28 Mar 2002 08:39:33 +0000 (+0000) Subject: [project @ 2002-03-28 08:39:33 by stolz] X-Git-Tag: Approx_11550_changesets_converted~2212 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=4740cf56c774b92e02d31b4666158d70c2e85a8f [project @ 2002-03-28 08:39:33 by stolz] posix/DLPrim now uses configure to check for RTLD_LOCAL. --- diff --git a/acconfig.h b/acconfig.h index 0159b3a..f886a38 100644 --- a/acconfig.h +++ b/acconfig.h @@ -372,6 +372,9 @@ /* Define if we can see RTLD_NEXT in dlfcn.h */ #undef HAVE_RTLDNEXT +/* Define if RTLD_LOCAL is available */ +#undef HAVE_RTLDLOCAL + /* Define if C compiler supports long long types */ #undef HAVE_LONG_LONG diff --git a/configure.in b/configure.in index ff3b0ec..26e2b0e 100644 --- a/configure.in +++ b/configure.in @@ -991,6 +991,24 @@ AC_EGREP_CPP(yes, ]) AC_SUBST(HaveRtldNext) +dnl ** RTLD_LOCAL isn't available on cygwin +AC_MSG_CHECKING(for RTLD_LOCAL from dlfcn.h) +AC_EGREP_CPP(yes, +[ + #include + #ifdef RTLD_LOCAL + yes + #endif +], [ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_RTLDLOCAL) + HaveRtldLocal=YES +], [ + AC_MSG_RESULT(no) + HaveRtldLocal=NO + ]) +AC_SUBST(HaveRtldLocal) + FPTOOLS_CHECK_LIB_NOWARN(m, atan) dnl -------------------------------------------------- diff --git a/mk/config.h.in b/mk/config.h.in index 736f629..8a7fd6b 100644 --- a/mk/config.h.in +++ b/mk/config.h.in @@ -373,6 +373,9 @@ /* Define if we can see RTLD_NEXT in dlfcn.h */ #undef HAVE_RTLDNEXT +/* Define if RTLD_LOCAL is available */ +#undef HAVE_RTLDLOCAL + /* Define if C compiler supports long long types */ #undef HAVE_LONG_LONG diff --git a/mk/config.mk.in b/mk/config.mk.in index 30cc466..66d44ed 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -206,6 +206,7 @@ GhcWithJavaGen=NO HaveLibDL = @HaveLibDL@ HaveRtldNext = @HaveRtldNext@ +HaveRtldLocal = @HaveRtldLocal@ # Include GHCi in the compiler. Default to NO for the time being.