-# Check for the GNU Multi Precision Library
-libgmp=none
-AC_CHECK_LIB(gmp, mpz_powm, [
- libgmp=gmp
-])
-AC_CHECK_LIB(gmp2, mpz_powm, [
- libgmp=gmp2
-])
-AC_CHECK_LIB(gmp3, __gmpz_powm, [
- libgmp=gmp3
-])
-AC_CHECK_LIB(gmp, __gmpz_powm, [
- libgmp=gmp
-])
-
-if test $libgmp = none; then
- AC_MSG_ERROR(libgmp is not installed. Please grab it from your
- nearest GNU mirror and install it (see README))
-else
- LIBS="$LIBS -l$libgmp"
-fi
-