[project @ 1998-08-10 14:19:23 by simonm]
authorsimonm <unknown>
Mon, 10 Aug 1998 14:19:23 +0000 (14:19 +0000)
committersimonm <unknown>
Mon, 10 Aug 1998 14:19:23 +0000 (14:19 +0000)
apparently GMP is installed as libgmp2.a on Debian systems.

configure.in

index 28e2a33..15d0894 100644 (file)
@@ -460,8 +460,11 @@ AC_CHECK_FUNCS(access ftime getclock getpagesize getrusage gettimeofday mktime m
 #
 dnl ** check whether this machine has GMP 2.0 installed
 #
-AC_CHECK_LIB(gmp, mpz_fdiv_qr, HaveLibGmp=YES, HaveLibGmp=NO)
+AC_CHECK_LIB(gmp,  mpz_fdiv_qr, HaveLibGmp=YES; LibGmp=gmp,
+  AC_CHECK_LIB(gmp2, mpz_fdiv_qr,  HaveLibGmp=YES; LibGmp=gmp2,
+    HaveLibGmp=No; LibGmp=not-installed))
 AC_SUBST(HaveLibGmp)
+AC_SUBST(LibGmp)
 
 #
 dnl ** check whether this machine has BFD and liberty installed (used for debugging)