Skip to content
Snippets Groups Projects
Commit 2b262844 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Now checks for gmp2.

Rev: src/modules/Gmp/configure.in:1.3
parent 7f419562
No related branches found
No related tags found
No related merge requests found
# $Id: configure.in,v 1.2 1998/03/28 14:52:12 grubba Exp $ # $Id: configure.in,v 1.3 1998/07/11 15:56:18 grubba Exp $
AC_INIT(mpz_glue.c) AC_INIT(mpz_glue.c)
AC_CONFIG_HEADER(gmp_machine.h) AC_CONFIG_HEADER(gmp_machine.h)
AC_ARG_WITH(gmp, [ --with(out)-gmp Support bignums],[],[with_gmp=yes]) AC_ARG_WITH(gmp, [ --with(out)-gmp Support bignums],[],[with_gmp=yes])
...@@ -6,9 +6,16 @@ AC_ARG_WITH(gmp, [ --with(out)-gmp Support bignums],[],[with_gmp=yes ...@@ -6,9 +6,16 @@ AC_ARG_WITH(gmp, [ --with(out)-gmp Support bignums],[],[with_gmp=yes
sinclude(../module_configure.in) sinclude(../module_configure.in)
if test x$with_gmp = xyes ; then if test x$with_gmp = xyes ; then
AC_CHECK_HEADERS(gmp.h) AC_CHECK_HEADERS(gmp2/gmp.h)
if test $ac_cv_header_gmp_h = yes ; then AC_CHECK_LIB(gmp2, mpz_set_d)
AC_CHECK_LIB(gmp, mpz_set_d) if test "$ac_cv_header_gmp2_gmp_h$ac_cv_lib_gmp2_mpz_set_d" = "yesyes";
then
echo Using gmp2.
else
AC_CHECK_HEADERS(gmp.h)
if test $ac_cv_header_gmp_h = yes ; then
AC_CHECK_LIB(gmp, mpz_set_d)
fi
fi fi
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment