[project @ 1998-08-15 17:56:59 by sof]
[ghc-hetmet.git] / configure.in
index 28e2a33..ece5f03 100644 (file)
@@ -435,6 +435,10 @@ FPTOOLS_TYPE_TIMEZONE
 dnl ** do we have altzone?
 FPTOOLS_ALTZONE
 
+dnl ** does struct stat contain st_blksize?
+#
+AC_STRUCT_ST_BLKSIZE
+
 dnl ** what are the sizes of various types
 dnl    (these must come before GHC_CHECK_ALIGNMENT)
 AC_CHECK_SIZEOF(unsigned int,4)
@@ -460,8 +464,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)