X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=aclocal.m4;h=918aaba5cccb67f8bc1cd38485b0fb9f21c3ec5f;hb=a69327edb251674e7828445fbf1263ffc55823a2;hp=ab6ec27b5ee74fb53b1cab2b3dd65a223b406722;hpb=6e1f0ed78a48359bc65bc4d35973d61999e6f33c;p=ghc-hetmet.git diff --git a/aclocal.m4 b/aclocal.m4 index ab6ec27..918aaba 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -292,7 +292,7 @@ AC_SUBST(GreenCardVersion) dnl dnl Check for Happy and version. If we're building GHC, then we need -dnl at least Happy version 1.13. If there's no installed Happy, we look +dnl at least Happy version 1.14. If there's no installed Happy, we look dnl for a happy source tree and point the build system at that instead. dnl AC_DEFUN(FPTOOLS_HAPPY, @@ -318,8 +318,8 @@ fi; changequote([, ])dnl ]) if test -d $srcdir/ghc -a ! -f $srcdir/ghc/compiler/parser/Parser.hs; then - FP_COMPARE_VERSIONS([$fptools_cv_happy_version],[-lt],[1.13], - [AC_MSG_ERROR([Happy version 1.13 or later is required to compile GHC.])])[]dnl + FP_COMPARE_VERSIONS([$fptools_cv_happy_version],[-lt],[1.14], + [AC_MSG_ERROR([Happy version 1.14 or later is required to compile GHC.])])[]dnl fi HappyVersion=$fptools_cv_happy_version; AC_SUBST(HappyVersion) @@ -448,7 +448,12 @@ fi rm -rf conftest* case $HostPlatform in *mingw32) - ArCmd="`cygpath -w ${ArCmdRaw} | sed -e 's@\\\\@/@g' ` ${ArCmdArgs}" + if test ${OSTYPE} == "msys" + then + ArCmd="${ArCmdRaw} ${ArCmdArgs}" + else + ArCmd="`cygpath -w ${ArCmdRaw} | sed -e 's@\\\\@/@g' ` ${ArCmdArgs}" + fi ;; *) ArCmd="${ArCmdRaw} ${ArCmdArgs}" ;; @@ -758,77 +763,23 @@ undefine([AC_CV_NAME])dnl undefine([AC_CV_NAME_supported])dnl ]) -dnl Based on AC_TRY_LINK - run iftrue if links cleanly with no warning -dnl FPTOOLS_TRY_LINK_NOWARN(flags,main?,iftrue,iffalse) - -AC_DEFUN(FPTOOLS_TRY_LINK_NOWARN, -[ -ac_save_LIBS="$LIBS" -LIBS=[$1]; -cat > conftest.$ac_ext <