summaryrefslogtreecommitdiff
path: root/m4/gmp.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/gmp.m4')
-rw-r--r--m4/gmp.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/m4/gmp.m4 b/m4/gmp.m4
index e337e161f..59a664f74 100644
--- a/m4/gmp.m4
+++ b/m4/gmp.m4
@@ -30,6 +30,8 @@ AC_DEFUN([cu_GMP],
LIB_GMP=$ac_cv_search___gmpz_init
AC_DEFINE([HAVE_GMP], [1],
[Define if you have GNU libgmp (or replacement)])
+ # This only available in GMP >= 5
+ AC_CHECK_DECLS([mpz_inits], [], [], [[#include <gmp.h>]])
}],
[AC_MSG_WARN([libgmp development library was not found or not usable.])
AC_MSG_WARN([AC_PACKAGE_NAME will be built without GMP support.])])