diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2013-11-24 17:53:58 +0100 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2013-11-24 17:53:58 +0100 |
commit | 87672e7dbb12c9d0e959b7cea2214dd00fc0b875 (patch) | |
tree | 9df137cabb4ea6241906263adbe04e4db5670e82 | |
parent | d97951fb7e836918f1b5c733b1c7708eb5f4a181 (diff) | |
download | haskell-87672e7dbb12c9d0e959b7cea2214dd00fc0b875.tar.gz |
Update Autoconf tests for recent GMP version
This should improve the check for a suitable installed GMP version, to
implicitly check if GMP provides __gmpz_powm_sec() which has been added
in GMP version 5.0.0 and switch to the in-tree GMP 5.0.3 source otherwise.
Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
-rw-r--r-- | libraries/integer-gmp/aclocal.m4 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libraries/integer-gmp/aclocal.m4 b/libraries/integer-gmp/aclocal.m4 index 8a9c467ae1..c174ee2c06 100644 --- a/libraries/integer-gmp/aclocal.m4 +++ b/libraries/integer-gmp/aclocal.m4 @@ -6,11 +6,11 @@ dnl-------------------------------------------------------------------- AC_DEFUN([LOOK_FOR_GMP_LIB],[ if test "$HaveFrameworkGMP" = "NO" then - AC_CHECK_LIB([gmp], [__gmpz_fdiv_qr], + AC_CHECK_LIB([gmp], [__gmpz_powm_sec], [HaveLibGmp=YES; GMP_LIBS=gmp]) if test "$HaveLibGmp" = "NO" then - AC_CHECK_LIB([gmp3], [__gmpz_fdiv_qr], + AC_CHECK_LIB([gmp3], [__gmpz_powm_sec], [HaveLibGmp=YES; GMP_LIBS=gmp3]) fi fi @@ -28,7 +28,7 @@ AC_DEFUN([LOOK_FOR_GMP_FRAMEWORK],[ AC_MSG_CHECKING([for GMP.framework]) save_libs="$LIBS" LIBS="-framework GMP" - AC_TRY_LINK_FUNC(__gmpz_fdiv_qr, + AC_TRY_LINK_FUNC(__gmpz_powm_sec, [HaveFrameworkGMP=YES; GMP_FRAMEWORK=GMP]) LIBS="$save_libs" AC_MSG_RESULT([$HaveFrameworkGMP]) |