AC_INIT([The Glorious Glasgow Haskell Compilation System], [6.5], [glasgow-haskell-bugs@haskell.org], [ghc])
+if test ! -f mk/config.h.in; then
+ echo "mk/config.h.in doesn't exist: perhaps you haven't run 'autoreconf'?"
+ exit 1
+fi
+
FP_SETUP_PROJECT_VERSION
# Hmmm, we fix the RPM release number to 1 here... Is this convenient?
HostVendor_CPP='unknown'
HostOS_CPP='linux'
;;
+mipsel-*-linux*)
+ HostPlatform=mipsel-unknown-linux # hack again
+ TargetPlatform=mipsel-unknown-linux
+ BuildPlatform=mipsel-unknown-linux
+ HostPlatform_CPP='mipsel_unknown_linux'
+ HostArch_CPP='mipsel'
+ HostVendor_CPP='unknown'
+ HostOS_CPP='linux'
+ ;;
mips-dec-ultrix*)
HostPlatform_CPP='mips_dec_ultrix'
HostArch_CPP='mipsel' # NB a little different
hardtop=`cygpath -w ${cyghardtop} | sed -e 's@\\\\@/@g'`
hardtop_plat=`cygpath -w ${cyghardtop} | sed -e 's@\\\\@\\\\\\\\@g'`
else
- hardtop_plat=${hardtop}
+dnl OK, so we're in the MSYS case. hardtop looks like /c/....
+dnl We want to make hardtop_plat into c:/...
+dnl Stop using [] for quotes temporarily, so we can use [] in the sed regexp
+changequote(, )dnl
+ hardtop_plat=`echo ${hardtop} | sed -e 's@^/\\([a-zA-Z]\\)/@\\1:/@g'`
+changequote([, ])dnl
fi
;;
*)