Commit 970e71db authored by simonmar's avatar simonmar
Browse files

[project @ 2001-02-15 12:38:35 by simonmar]

re-order the WithHc and WithGhc tests: now if you specify
--with-ghc=<ghc>, then WithHc also gets <ghc> if you don't set it
explicitly.  Previously it got whatever ghc was in the PATH, which
would fail if there wasn't a ghc in the PATH at all.
parent 956d36d2
......@@ -355,15 +355,6 @@ if test "$GHC" = ""; then
AC_PATH_PROG(GHC,ghc)
fi
AC_ARG_WITH(hc,
[ --with-hc=<haskell compiler>
Use a command different from 'ghc' to compile generic Haskell code.
],
[WithHc="$withval"],
[WithHc=$GHC]
)
AC_SUBST(WithHc)
AC_ARG_WITH(ghc,
[ --with-ghc=<haskell compiler>
Use a command different from 'ghc' to compile GHC-specific Haskell code
......@@ -374,6 +365,15 @@ AC_ARG_WITH(ghc,
)
AC_SUBST(WithGhc)
AC_ARG_WITH(hc,
[ --with-hc=<haskell compiler>
Use a command different from 'ghc' to compile generic Haskell code.
],
[WithHc="$withval"],
[WithHc=$WithGhc]
)
AC_SUBST(WithHc)
if test "$WithGhc" != ""; then
FPTOOLS_GHC_VERSION([GhcVersion], [GhcMajVersion], [GhcMinVersion], [GhcPatchLevel])dnl
AC_SUBST(GhcVersion)dnl
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment