From 9a17dfd7f10952762cd8aff1ef4dbd0ae6daec37 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Sat, 5 Jul 2008 15:55:59 +0000 Subject: [PATCH] On cygwin, convert alex's path to a native path --- aclocal.m4 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/aclocal.m4 b/aclocal.m4 index ccb2530..f0ad4cf 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 :/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 -- 1.7.10.4