summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-07-05 15:55:59 +0000
committerIan Lynagh <igloo@earth.li>2008-07-05 15:55:59 +0000
commit9a17dfd7f10952762cd8aff1ef4dbd0ae6daec37 (patch)
treeadb3e9495da3e238553332c52abcdf41304619f6 /aclocal.m4
parent89158b9fb43f4835617857db1f7de26cc84c2192 (diff)
downloadhaskell-9a17dfd7f10952762cd8aff1ef4dbd0ae6daec37.tar.gz
On cygwin, convert alex's path to a native path
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index ccb2530dee..f0ad4cf4c3 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -306,6 +306,15 @@ dnl
AC_DEFUN([FPTOOLS_ALEX],
[
AC_PATH_PROG(AlexCmd,alex,)
+# Alex is passed to Cabal, so we need a native path
+if test "x$HostPlatform" = "xi386-unknown-mingw32" && \
+ test "${OSTYPE}" != "msys" && \
+ test "${AlexCmd}" != ""
+then
+ # Canonicalise to <drive>:/path/to/gcc
+ AlexCmd=`cygpath -m ${AlexCmd}`
+fi
+
AC_CACHE_CHECK([for version of alex], fptools_cv_alex_version,
changequote(, )dnl
[if test x"$AlexCmd" != x; then