Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
436e13f5
Commit
436e13f5
authored
May 13, 2009
by
Simon Marlow
Browse files
rejig ghc version test; fail if GHC version can't be determined
parent
24d49415
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
436e13f5
...
...
@@ -685,15 +685,8 @@ AC_ARG_ENABLE(bootstrap-with-devel-snapshot,
if test "$WithGhc" != ""; then
FPTOOLS_GHC_VERSION([GhcVersion], [GhcMajVersion], [GhcMinVersion], [GhcPatchLevel])dnl
if test `expr $GhcMinVersion % 2` = "1"; then
echo $EnableBootstrapWithDevelSnaphost
if test "$EnableBootstrapWithDevelSnaphost" = "NO"; then
AC_MSG_ERROR([
$WithGhc is a development snapshot of GHC, version $GhcVersion.
Bootstrapping using this version of GHC is not supported, and may not
work. Use --enable-bootstrap-with-devel-snapshot to try it anyway,
or --with-ghc to specify a different GHC to use.])
fi
if test "$GhcMajVersion" = "unknown" -o "$GhcMinVersion" = "unknown"; then
AC_MSG_ERROR([Cannot determine the version of $WithGhc. Is it really GHC?])
fi
AC_SUBST(GhcVersion)dnl
...
...
@@ -825,6 +818,17 @@ if test "$BootingFromHc" = "NO" -a -d "$srcdir/compiler"; then
fi
FP_COMPARE_VERSIONS([$GhcVersion],[-lt],[6.6],
[AC_MSG_ERROR([GHC version 6.6 or later is required to compile GHC.])])dnl
if test `expr $GhcMinVersion % 2` = "1"; then
echo $EnableBootstrapWithDevelSnaphost
if test "$EnableBootstrapWithDevelSnaphost" = "NO"; then
AC_MSG_ERROR([
$WithGhc is a development snapshot of GHC, version $GhcVersion.
Bootstrapping using this version of GHC is not supported, and may not
work. Use --enable-bootstrap-with-devel-snapshot to try it anyway,
or --with-ghc to specify a different GHC to use.])
fi
fi
fi;
# This uses GHC, so put it after the "GHC is required" check above:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment