X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=configure.ac;h=a71049a9c7f01a3f88b7d190e64440a7728624d2;hb=c2cc00b0c295f54cf8fbab195902a9185859946b;hp=b491d08fe9591cf940df93556831a9dd23b84ab9;hpb=114c32eb4bddd43d0acf7853e5795afb6348d217;p=ghc-hetmet.git diff --git a/configure.ac b/configure.ac index b491d08..a71049a 100644 --- a/configure.ac +++ b/configure.ac @@ -262,6 +262,15 @@ i[[3456]]86-*-mingw32*) HostOS_CPP='mingw32' exeext='.exe' ;; +i[[3456]]86-apple-darwin*) + HostPlatform=i386-apple-darwin + TargetPlatform=i386-apple-darwin #hack + BuildPlatform=i386-apple-darwin #hack + HostPlatform_CPP='i386_apple_darwin' + HostArch_CPP='i386' + HostVendor_CPP='apple' + HostOS_CPP='darwin' + ;; ia64-*-linux*) HostPlatform=ia64-unknown-linux # hack again TargetPlatform=ia64-unknown-linux @@ -1261,6 +1270,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