summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-03-11 17:50:25 +0000
committerIan Lynagh <igloo@earth.li>2007-03-11 17:50:25 +0000
commitca5ded310c0a596be199a3da5f14be2fb2020687 (patch)
tree40a62ff03dc093e157fbec315cef60be4fb78a66 /aclocal.m4
parent642ac8a05ea7f449c367cd4293b0e07ca3305fd8 (diff)
downloadhaskell-ca5ded310c0a596be199a3da5f14be2fb2020687.tar.gz
Have configure take arguments telling it where gmp is; fixes trac #957
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m422
1 files changed, 22 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 9050299cd5..1daac0405a 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1054,4 +1054,26 @@ case $fptools_cv_timer_create_works in
esac
])
+# FP_ARG_GMP
+# -------------
+AC_DEFUN([FP_ARG_GMP],
+[
+AC_ARG_WITH([gmp-includes],
+ [AC_HELP_STRING([--with-gmp-includes],
+ [directory containing gmp.h])],
+ [gmp_includes=$withval],
+ [gmp_includes=NONE])
+
+AC_ARG_WITH([gmp-libraries],
+ [AC_HELP_STRING([--with-gmp-libraries],
+ [directory containing gmp library])],
+ [gmp_libraries=$withval],
+ [gmp_libraries=NONE])
+])# FP_ARG_GMP
+
+AC_DEFUN([CHECK_GMP],
+[AC_REQUIRE([AC_PROG_CPP])
+AC_REQUIRE([AC_PROG_CC])
+])
+
# LocalWords: fi