From e45b7db233c7c315612b5e1b2e82f872784507ee Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 1 Mar 2011 19:40:18 +0000 Subject: [PATCH] configure: amend sanity check 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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 967fd6f..67cf25f 100644 --- a/configure.ac +++ b/configure.ac @@ -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) -- 1.7.10.4