X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=configure.ac;h=d116ff18b78137d86b8b3c3d9b7c22c1e354812a;hb=eb3a1aecac72d22c618b4050fb88eac9055b527a;hp=d176e2c9be652c82871e19a30b7b10fea68c8d52;hpb=5d30f835fb94ab6056829723d623f05b689ada4a;p=ghc-hetmet.git diff --git a/configure.ac b/configure.ac index d176e2c..d116ff1 100644 --- a/configure.ac +++ b/configure.ac @@ -89,6 +89,11 @@ AC_ARG_WITH([ghc], fi WithGhc="$GHC"]) + +dnl ** Tell the make system which OS we are using +dnl $OSTYPE is set by the operating system to "msys" or "cygwin" or something +AC_SUBST(OSTYPE) + dnl ** Booting from .hc files? dnl -------------------------------------------------------------- AC_ARG_ENABLE(hc-boot, @@ -346,6 +351,16 @@ checkArch "$TargetArch" checkVendor "$TargetVendor" checkOS "$TargetOS" +# Verify that the installed (bootstrap) GHC is capable of generating +# code for the requested build platform. +if test "$build" != "$bootstrap_target" +then + echo "This GHC (${WithGhc}) does not generate code for the build platform" + echo " GHC target platform : $bootstrap_target" + echo " Desired build platform : $BuildPlatform" + exit 1 +fi + AC_SUBST(BuildPlatform) AC_SUBST(HostPlatform) AC_SUBST(TargetPlatform)