From 4bbf08c3e2232fa7c666bd5d5e029a34aec80654 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Tue, 30 Oct 2001 16:36:15 +0100
Subject: [PATCH] Check for libgmp. Deleted tests for SIZEOF_INT and friends.

Rev: src/nettle/configure.in:1.6
---
 configure.in | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/configure.in b/configure.in
index b4ce5019..77c04ac9 100644
--- a/configure.in
+++ b/configure.in
@@ -9,7 +9,7 @@ AM_INIT_AUTOMAKE(nettle, 1.0)
 
 AM_CONFIG_HEADER(config.h)
 
-dnl Checks for programs.
+# Checks for programs.
 AC_PROG_CC
 AC_PROG_MAKE_SET
 AC_PROG_RANLIB
@@ -21,22 +21,25 @@ fi
 
 AC_PATH_PROG(M4, m4, m4)
 
-dnl Checks for typedefs, structures, and compiler characteristics.
+# Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
 AC_C_INLINE
 AC_TYPE_UID_T
 AC_TYPE_SIZE_T
 AC_HEADER_TIME
 
-dnl Needed by the supplied memcmp.c
+# Needed by the supplied memcmp.c
 AC_C_BIGENDIAN
 
-AC_CHECK_SIZEOF(short, 2)
-AC_CHECK_SIZEOF(int, 4)
-AC_CHECK_SIZEOF(long, 4)
-
 AC_REPLACE_FUNCS(memxor)
 
+# Checks for libraries
+AC_CHECK_LIB(gmp, __gmpz_getlimbn,,
+    [AC_MSG_WARN(
+[GNU MP not found, or not 3.1 or up, see http://www.swox.com/gmp.
+Support for public key algorithms will be unavailable.])])
+
+
 # Set these flags *last*, or else the test programs won't compile
 if test x$GCC = xyes ; then
     CFLAGS="$CFLAGS -ggdb3 -Wall -W \
-- 
GitLab