Shove the GHC path through cygpath -m
authorIan Lynagh <igloo@earth.li>
Thu, 3 Jul 2008 13:26:14 +0000 (13:26 +0000)
committerIan Lynagh <igloo@earth.li>
Thu, 3 Jul 2008 13:26:14 +0000 (13:26 +0000)
configure.ac

index f22ffbe..8645834 100644 (file)
@@ -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 <drive>:/path/to/ghc
+    WithGhc=`cygpath -m ${WithGhc}`
+fi
 AC_SUBST([WithGhc])
 
 AC_ARG_WITH(hc,