configure: amend sanity check
authorSergei Trofimovich <slyfox@community.haskell.org>
Tue, 1 Mar 2011 19:40:18 +0000 (19:40 +0000)
committerSergei Trofimovich <slyfox@community.haskell.org>
Tue, 1 Mar 2011 19:40:18 +0000 (19:40 +0000)
As we perform some mangling of original --build/--host/--target
params we should check the result of mangling against desired triplet,
not originally passed by user.

Patch also adds mangled triplets to the output.

configure.ac

index 967fd6f..67cf25f 100644 (file)
@@ -288,7 +288,7 @@ checkOS "$TargetOS"
 
 # Verify that the installed (bootstrap) GHC is capable of generating
 # code for the requested build platform.
-if test "$build" != "$bootstrap_target"
+if test "$BuildPlatform" != "$bootstrap_target"
 then
     echo "This GHC (${WithGhc}) does not generate code for the build platform"
     echo "   GHC target platform    : $bootstrap_target"
@@ -296,6 +296,10 @@ then
     exit 1
 fi
 
+echo "GHC build  : $BuildPlatform"
+echo "GHC host   : $HostPlatform"
+echo "GHC target : $TargetPlatform"
+
 AC_SUBST(BuildPlatform)
 AC_SUBST(HostPlatform)
 AC_SUBST(TargetPlatform)