]> Savannah Git Hosting - gnulib.git/commitdiff
libgmp: remove HAVE_GMP, LIB_GMP
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 26 Jul 2020 00:42:18 +0000 (17:42 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 26 Jul 2020 17:07:29 +0000 (10:07 -0700)
* m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
they’re redundant.  I’ll adjust GNU Coreutils accordingly.

ChangeLog
m4/libgmp.m4

index 0db10799c256bd3a7f173f0067eabd21f3098f53..44ce5301bd0bc88f72f14ce02ffaaa64ba8a669f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
+
+       libgmp: remove HAVE_GMP, LIB_GMP
+       * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
+       they’re redundant.  I’ll adjust GNU Coreutils accordingly.
+
 2020-07-26  Bruno Haible  <bruno@clisp.org>
 
        inttypes: Remove support for AIX 4.
index 7a8742e0c42653f64134bc0a0b0431bd060b5599..e48b5c2c2bf8c21188dedbd9649e6eb718703fda 100644 (file)
@@ -1,4 +1,4 @@
-# libgmp.m4 serial 2
+# libgmp.m4 serial 3
 # Configure the GMP library or a replacement.
 dnl Copyright 2020 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
@@ -8,8 +8,7 @@ dnl with or without modifications, as long as this notice is preserved.
 dnl gl_LIBGMP
 dnl Searches for an installed libgmp.
 dnl If found, it sets and AC_SUBSTs HAVE_LIBGMP=yes and the LIBGMP and LTLIBGMP
-dnl variables, and augments the CPPFLAGS variable, and #defines HAVE_LIBGMP
-dnl and HAVE_GMP to 1.
+dnl variables, and augments the CPPFLAGS variable, and #defines HAVE_LIBGMP.
 dnl Otherwise, it sets and AC_SUBSTs HAVE_LIBGMP=no and LIBGMP and LTLIBGMP to
 dnl empty.
 
@@ -44,17 +43,9 @@ AC_DEFUN([gl_LIBGMP],
   esac
   if test $HAVE_LIBGMP = yes; then
     GMP_H=
-    dnl This is redundant, as HAVE_LIBGMP is also defined to 1.
-    AC_DEFINE([HAVE_GMP], [1],
-      [Define to 1 if you have the GMP library instead of just the
-       mini-gmp replacement.])
   else
     GMP_H=gmp.h
   fi
   AC_SUBST([GMP_H])
   AM_CONDITIONAL([GL_GENERATE_GMP_H], [test -n "$GMP_H"])
-
-  dnl For backward compatibility.
-  LIB_GMP="$LIBGMP"
-  AC_SUBST([LIB_GMP])
 ])