--- ghc-6.12.2/configure.ac 2010-04-20 20:10:05.000000000 +0200 +++ ghc-6.12.2-magellan/configure.ac 2010-05-05 19:49:17.000000000 +0200 @@ -217,6 +217,9 @@ echo "Bootstrapping GHC is a cross compiler. This probably isn't going to work" fi fi +build=`echo "$build" | sed -e 's/linux-gnu/linux/' -e 's/-pc-/-unknown-/'` +[build=`echo "$build" | sed -e 's/i[4-6]86/i386/'`] # escaping square bracket +echo "debug build=$build" # We have to run these unconditionally, but we may discard their # results in the following code @@ -250,6 +253,9 @@ GHC_CONVERT_VENDOR([$build_vendor], [BuildVendor]) GHC_CONVERT_OS([$build_os], [BuildOS]) fi +host=`echo "$host" | sed -e 's/linux-gnu/linux/' -e 's/-pc-/-unknown-/'` +[host=`echo "$host" | sed -e 's/i[4-6]86/i386/'`] # escaping square bracket +echo "debug: host=$host" if test "$host_alias" = "" then @@ -270,6 +276,9 @@ GHC_CONVERT_VENDOR([$host_vendor], [HostVendor]) GHC_CONVERT_OS([$host_os], [HostOS]) fi +target=`echo "$target" | sed -e 's/linux-gnu/linux/' -e 's/-pc-/-unknown-/'` +[target=`echo "$target" | sed -e 's/i[4-6]86/i386/'`] # escaping square bracket +echo "debug target=$target" if test "$target_alias" = "" then @@ -332,7 +341,7 @@ checkVendor() { case $1 in - dec|unknown|hp|apple|next|sun|sgi|ibm) + dec|unknown|hp|apple|next|sun|sgi|ibm|pc) ;; *) echo "Unknown vendor $1"