summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-07-05 16:31:13 +0000
committerIan Lynagh <igloo@earth.li>2008-07-05 16:31:13 +0000
commit1cb262099e1d777a0413517633ba9de85d647635 (patch)
treec987a7a630c66770b1e3ac50ce06736e30428175 /aclocal.m4
parentbeabed20fb6b72eb79fcf315b1793ff8da415653 (diff)
downloadhaskell-1cb262099e1d777a0413517633ba9de85d647635.tar.gz
On cygwin, convert happy's path to a native path
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m410
1 files changed, 10 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index df7db2c3de..8593b89788 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -268,6 +268,16 @@ dnl for a happy source tree and point the build system at that instead.
dnl
AC_DEFUN([FPTOOLS_HAPPY],
[AC_PATH_PROG(HappyCmd,happy,)
+# Happy is passed to Cabal, so we need a native path
+if test "x$HostPlatform" = "xi386-unknown-mingw32" && \
+ test "${OSTYPE}" != "msys" && \
+ test "${HappyCmd}" != ""
+then
+ # Canonicalise to <drive>:/path/to/gcc
+ HappyCmd=`cygpath -m ${HappyCmd}`
+ AC_MSG_NOTICE([normalized happy command to $HappyCmd])
+fi
+
AC_CACHE_CHECK([for version of happy], fptools_cv_happy_version,
changequote(, )dnl
[if test x"$HappyCmd" != x; then