diff --git a/configure.in b/configure.in index e9a6e18ef6bdf824d73f7a448d4b92b0bce8a258..3569b8ee35136e267aeaeaba7fdc1f919479bc7a 100644 --- a/configure.in +++ b/configure.in @@ -308,16 +308,16 @@ dnl use either is considered a Feature. dnl ** What command to use to compile compiler sources ? dnl -------------------------------------------------------------- -AC_ARG_WITH(ghc-hc, -[ --with-ghc-hc=<haskell compiler> - Use a command different from 'ghc-2.10' to compile up the GHC compiler sources. - (no claims currently made that this will work with a compiler other than a - recent version of GHC, but you could always try...) +AC_ARG_WITH(hc, +[ --with-hc=<haskell compiler> + Use a command different from 'ghc' to compile up Haskell code. + (no claims currently made that this will work with a compiler other than a + recent version of GHC, but you could always try...) ], -[WithGhcHc="$withval"], -[WithGhcHc="ghc"] +[WithHc="$withval"], +[WithHc="ghc"] ) -AC_SUBST(WithGhcHc) +AC_SUBST(WithHc) dnl ** Which gcc to use? dnl -------------------------------------------------------------- diff --git a/mk/config.mk.in b/mk/config.mk.in index 722aad2d26d590caf407ebb7c4a096e39a86fabf..e68db5de3816a847966f891d55e55ca6cbef2670 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -147,7 +147,7 @@ IncludeTestDirsInBuild=NO # HC_ROJEMO_NHC # HC_UNSPECIFIED -WithGhcHc = @WithGhcHc@ +WithGhcHc = @WithHc@ # Variable which is set to the version number of the $(WithGhcHc) we're using. # Not currently used, but might come in handy sometime soon. @@ -160,11 +160,9 @@ GhcCompilerWays= # Extra option flags to pass to the compiler that compiles the compiler # (Ones that are essential are wired into ghc/compiler/Makefile) # Typical ones: -# -H25m allocate a bigger heap (default is 6m) +# -H25m allocate a bigger heap (might speed up compilation) # # -O compile an optimised compiler -# NB! If you add -O you'll almost certainly need to increase -# the amount of heap space too (to 15m or more) # # -DDEBUG include consistency/assertion checks in the compiled compiler # @@ -259,7 +257,7 @@ EnableWin32DLLs=@EnableWin32DLLs@ ################################################################################# # The compiler you'd like to use to compile Happy -WithHappyHc = $(WithGhcHc) +WithHappyHc = @WithHc@ # HappyHcOpts gives the flags to pass to the Haskell compiler used # to compile the Happy sources with. @@ -469,6 +467,7 @@ HSTAGS_PREFIX = $(FPTOOLS_TOP)/ghc/utils/hstags/ #----------------------------------------------------------------------------- # Haskell compiler and mkdependHS +# ToDo: $(HC) should be a local installation of some Haskell compiler HC = $(FPTOOLS_TOP)/ghc/driver/ghc MKDEPENDHS = $(HC)