X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=configure.ac;h=6d33854b4655f08f1cc6ec161903a24426f553c2;hb=9bc17c05ec0ef9820a3561c280d4062712e52260;hp=a61bb0448e096a33b01b66e7e5ea0fb06a42212e;hpb=246abe64cf39012d550a8d9922af0c8751824605;p=ghc-hetmet.git diff --git a/configure.ac b/configure.ac index a61bb04..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, @@ -1270,6 +1288,21 @@ AC_TRY_COMPILE(,[__asm__ (".subsections_via_symbols");], [Define to 1 if Apple-style dead-stripping is supported.]) ]) +dnl ** check for Apple's "interesting" long double compatibility scheme +AC_MSG_CHECKING(for printf$LDBLStub) +AC_TRY_LINK_FUNC(printf$LSBLStub, + [ + AC_MSG_RESULT(yes) + AC_DEFINE([HAVE_PRINTF_LDBLSTUB],[1], + [Define to 1 if we have printf$LDBLStub (Apple Mac OS >= 10.4, PPC).]) + ], + [ + AC_MSG_RESULT(no) + AC_DEFINE([HAVE_PRINTF_LDBLSTUB],[0], + [Define to 1 if we have printf$LDBLStub (Apple Mac OS >= 10.4, PPC).]) + ]) + + AC_CONFIG_FILES([mk/config.mk]) AC_CONFIG_COMMANDS([mk/stamp-h],[echo timestamp > mk/stamp-h]) AC_OUTPUT