X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=configure.ac;h=8645834d503a2a79a1caefc10d29c58cd854f8d6;hb=4f6437613948d90abc9f1e337ad6eb2209186526;hp=f22ffbe5714711cedfac363a2957f4d6d260aeed;hpb=cf071813ab8d7edd8ca92a2191812a96e9cb20f0;p=ghc-hetmet.git diff --git a/configure.ac b/configure.ac index f22ffbe..8645834 100644 --- a/configure.ac +++ b/configure.ac @@ -644,6 +644,14 @@ AC_ARG_WITH([ghc], AC_PATH_PROG([GHC], [ghc]) fi WithGhc="$GHC"]) +# GHC is passed to Cabal, so we need a native path +if test "x$HostPlatform" = "xi386-unknown-mingw32" && \ + test "${OSTYPE}" != "msys" && \ + test "${WithGhc}" != "" +then + # Canonicalise to :/path/to/ghc + WithGhc=`cygpath -m ${WithGhc}` +fi AC_SUBST([WithGhc]) AC_ARG_WITH(hc,