Skip to content
Snippets Groups Projects
Commit c74c4f00 authored by John Ericson's avatar John Ericson Committed by Marge Bot
Browse files

Move apple compat check to RTS configure

parent df81536f
No related branches found
No related tags found
No related merge requests found
......@@ -1021,20 +1021,6 @@ fi
AC_CHECK_FUNCS(clock_gettime timer_settime)
FP_CHECK_TIMER_CREATE
dnl ** check for Apple's "interesting" long double compatibility scheme
AC_MSG_CHECKING(for printf\$LDBLStub)
AC_LINK_IFELSE([AC_LANG_CALL([], [printf\$LDBLStub])],
[
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).])
])
FP_CHECK_PTHREAD_LIB
AC_SUBST([UseLibpthread])
......
......@@ -33,6 +33,20 @@ GHC_CONVERT_PLATFORM_PARTS([host], [Host])
FPTOOLS_SET_PLATFORM_VARS([host], [Host])
FPTOOLS_SET_HASKELL_PLATFORM_VARS([Host])
dnl ** check for Apple's "interesting" long double compatibility scheme
AC_MSG_CHECKING(for printf\$LDBLStub)
AC_LINK_IFELSE([AC_LANG_CALL([], [printf\$LDBLStub])],
[
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).])
])
FP_CHECK_PTHREAD_FUNCS
dnl ** check for eventfd which is needed by the I/O manager
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment