-@@ -68,10 +67,6 @@ SRC_CC_OPTS += -I$(FPTOOLS_TOP_ABS)/$(GH
- # yet, so we use lazy expansion.
- SRC_CC_OPTS += $(if $(findstring YES,$(UseGhcForCc)), $(PLATFORM_HC_BOOT_CC_OPTS) $(PLATFORM_CC_OPTS))
-
--ifeq "$(GhcWithInterpreter)" "YES"
--SRC_CC_OPTS += -I$(FPTOOLS_TOP_ABS)/libraries/readline/include
--endif
--
- # -----------------------------------------------------------------------------
- # Linking: we have to give all the libraries explicitly.
-
-@@ -100,7 +95,6 @@ HC_BOOT_LD_OPTS = \
- ifeq "$(GhcWithInterpreter)" "YES"
- HC_BOOT_LD_OPTS += \
- -L$(FPTOOLS_TOP_ABS)/libraries/template-haskell \
-- -L$(FPTOOLS_TOP_ABS)/libraries/readline \
- -L$(FPTOOLS_TOP_ABS)/libraries/unix \
- -L$(FPTOOLS_TOP_ABS)/libraries/unix/cbits
- endif
-@@ -135,14 +129,12 @@ HC_BOOT_LD_OPTS += \
- -u "$(UNDERSCORE)base_GHCziIOBase_NonTermination_closure" \
- -u "$(UNDERSCORE)base_GHCziIOBase_BlockedOnDeadMVar_closure" \
- -u "$(UNDERSCORE)base_GHCziIOBase_Deadlock_closure" \
-- -u "$(UNDERSCORE)base_GHCziWeak_runFinalizzerBatch_closure" \
-- -u "$(UNDERSCORE)__stginit_Prelude"
+-case $target_os in
+- darwin*)
+- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMP.framework" >&5
+-$as_echo_n "checking for GMP.framework... " >&6; }
+- save_libs="$LIBS"
+- LIBS="-framework GMP"
+- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */