X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=aclocal.m4;h=86ec141f397ca46b52702daa68d029b48ed096d9;hb=a08aa16ae39b5fc2f4541e9fd33009a5288ba0ae;hp=6628be496aa109637135f3c092c73034c1d1f2c3;hpb=63a5c6464d8961189263b19070affdab9051add6;p=ghc-hetmet.git diff --git a/aclocal.m4 b/aclocal.m4 index 6628be4..86ec141 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,4 +1,4 @@ -dnl $Id: aclocal.m4,v 1.114 2003/03/21 10:59:20 simonmar Exp $ +dnl $Id: aclocal.m4,v 1.116 2003/05/17 14:49:45 reid Exp $ dnl dnl Extra autoconf macros for the Glasgow fptools dnl @@ -188,6 +188,28 @@ fi dnl +dnl Check for Greencard and version. +dnl +AC_DEFUN(FPTOOLS_GREENCARD, +[ +AC_PATH_PROG(GreencardCmd,green-card) +AC_CACHE_CHECK([for version of green-card], fptools_cv_greencard_version, +changequote(, )dnl +[if test x"$GreencardCmd" != x; then + fptools_cv_greencard_version="`$GreencardCmd --version | + grep 'version' | sed -e 's/green-card. version \([^ ]*\).*/\1/g'`" +else + fptools_cv_greencard_version="" +fi +changequote([, ])dnl +]) +FPTOOLS_PROG_CHECK_VERSION([$fptools_cv_greencard_version],-lt,$1, + [AC_MSG_ERROR([green-card version $1 or later is required (found '$fptools_cv_greencard_version')])])dnl +GreencardVersion=$fptools_cv_greencard_version +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 for a happy source tree and point the build system at that instead. @@ -669,6 +691,10 @@ AC_CACHE_VAL(AC_CV_NAME, # include #endif +#ifdef HAVE_SYS_RESOURCE_H +# include +#endif + typedef $1 testing; main() {