summaryrefslogtreecommitdiff
path: root/m4/gmp.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/gmp.m4')
-rw-r--r--m4/gmp.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/m4/gmp.m4 b/m4/gmp.m4
index e337e161..25920903 100644
--- a/m4/gmp.m4
+++ b/m4/gmp.m4
@@ -1,6 +1,6 @@
# Tests for GNU GMP (or any compatible replacement).
-dnl Copyright (C) 2008-2012 Free Software Foundation, Inc.
+dnl Copyright (C) 2008-2013 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -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.])])