X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Faclocal.m4;h=3a4a6f734d41ab4485b806beaaf430cdc0d4478f;hb=a1b4e3b88a6987deed7bb7f1bd870b30eef1b475;hp=a364788e91a6c39819fca60eafbe1c2787ad1d66;hpb=f30908b63b7bda01ac4fc8a3a62ea2a23da01ae9;p=ghc-hetmet.git diff --git a/ghc/aclocal.m4 b/ghc/aclocal.m4 index a364788..3a4a6f7 100644 --- a/ghc/aclocal.m4 +++ b/ghc/aclocal.m4 @@ -22,6 +22,10 @@ AC_SUBST([ProjectVersionInt]) # The project patchlevel is zero unless stated otherwise test -z "$ProjectPatchLevel" && ProjectPatchLevel=0 + +# Remove dots from the patch level; this allows us to have versions like 6.4.1.20050508 +ProjectPatchLevel=`echo $ProjectPatchLevel | sed 's/\.//'` + AC_SUBST([ProjectPatchLevel]) ])# FP_SETUP_PROJECT_INFO @@ -48,7 +52,7 @@ fi])# FP_PROG_GHC_PKG # FP_GHC_HAS_READLINE # ------------------- -AC_DEFUN(FP_GHC_HAS_READLINE, +AC_DEFUN([FP_GHC_HAS_READLINE], [AC_REQUIRE([FP_PROG_GHC_PKG]) AC_CACHE_CHECK([whether ghc has readline package], [fp_cv_ghc_has_readline], [if "${GhcPkgCmd-ghc-pkg}" --show-package readline >/dev/null 2>&1; then