diff options
Diffstat (limited to 'lang/ghc/files/patch-configure.ac')
-rw-r--r-- | lang/ghc/files/patch-configure.ac | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/lang/ghc/files/patch-configure.ac b/lang/ghc/files/patch-configure.ac new file mode 100644 index 000000000000..11139a3aa71d --- /dev/null +++ b/lang/ghc/files/patch-configure.ac @@ -0,0 +1,70 @@ +--- configure.ac.orig 2012-06-06 19:10:25.000000000 +0200 ++++ configure.ac 2013-02-02 17:31:55.193634655 +0100 +@@ -89,6 +89,59 @@ + fi + WithGhc="$GHC"]) + ++# system libffi ++ ++AC_ARG_WITH([system-libffi], ++[AC_HELP_STRING([--with-system-libffi], ++ [Use system provided libffi for RTS [default=no]]) ++]) ++ ++AS_IF([test "x$with_system_libffi" = "xyes"], ++ [UseSystemLibFFI="YES"], [UseSystemLibFFI="NO"] ++) ++ ++AC_SUBST(UseSystemLibFFI) ++ ++AC_ARG_WITH([ffi-includes], ++[AC_HELP_STRING([--with-ffi-includes=ARG] ++ [Find includes for libffi in ARG [default=system default]]) ++], ++[ ++ if test "x$UseSystemLibFFI" != "xYES"; then ++ AC_MSG_WARN([--with-ffi-includes will be ignored, --with-system-libffi not set]) ++ else ++ FFIIncludeDir="$withval" LIBFFI_CFLAGS="-I $withval" ++ fi ++]) ++ ++AC_SUBST(FFIIncludeDir) ++ ++AC_ARG_WITH([ffi-libraries], ++[AC_HELP_STRING([--with-ffi-libraries=ARG] ++ [Find libffi in ARG [default=system default]]) ++], ++[ ++ if test "x$UseSystemLibFFI" != "xYES"; then ++ AC_MSG_WARN([--with-ffi-libraries will be ignored, --with-system-libffi not set]) ++ else ++ FFILibDir="$withval" LIBFFI_LDFLAGS="-L$withval" ++ fi ++]) ++ ++AC_SUBST(FFILibDir) ++ ++AS_IF([test "$UseSystemLibFFI" = "YES"], [ ++ CFLAGS2="$CFLAGS" ++ CFLAGS="$LIBFFI_CFLAGS $CFLAGS" ++ LDFLAGS2="$LDFLAGS" ++ LDFLAGS="$LIBFFI_LDFLAGS $LDFLAGS" ++ AC_CHECK_LIB(ffi, ffi_call, ++ [AC_CHECK_HEADERS([ffi.h], [break], []) ++ AC_DEFINE([HAVE_LIBFFI], [1], [Define to 1 if you have libffi.])], ++ [UseSystemLibFFI="NO"]) ++ CFLAGS="$CFLAGS2" ++ LDFLAGS="$LDFLAGS2" ++]) + + dnl ** Tell the make system which OS we are using + dnl $OSTYPE is set by the operating system to "msys" or "cygwin" or something +@@ -717,7 +770,6 @@ + FP_VISIBILITY_HIDDEN + + dnl ** check for librt +-AC_CHECK_LIB(rt, clock_gettime) + AC_CHECK_FUNCS(clock_gettime timer_create timer_settime) + FP_CHECK_TIMER_CREATE + |