summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2008-05-27 13:59:24 -0600
committerEric Blake <ebb9@byu.net>2008-05-27 13:59:24 -0600
commit619ee3771a036189a4a2a7372062d7bb6351a0f2 (patch)
tree41efa2347fa4889ead3506863d5386f8b8c5206c
parenta858ceb9ba54912fce6ab53706c719385e41f415 (diff)
downloadm4-619ee3771a036189a4a2a7372062d7bb6351a0f2.tar.gz
Fix configure message nesting, broken since 2001-09-20.
* ltdl/m4/gmp.m4 (M4_LIB_GMP): Don't cache result; the test is not expensive, and AC_MSG_WARN doesn't work in AC_CACHE_CHECK. Signed-off-by: Eric Blake <ebb9@byu.net>
-rw-r--r--ChangeLog4
-rw-r--r--ltdl/m4/gmp.m49
2 files changed, 8 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 0a12e776..2714351f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2008-05-27 Eric Blake <ebb9@byu.net>
+ Fix configure message nesting, broken since 2001-09-20.
+ * ltdl/m4/gmp.m4 (M4_LIB_GMP): Don't cache result; the test is
+ not expensive, and AC_MSG_WARN doesn't work in AC_CACHE_CHECK.
+
Support 'make dist' with BSD make.
* Makefile.am (TESTSUITE_AT, MAINTAINERCLEANFILES): Qualify uses
of the generated file tests/generated.at.
diff --git a/ltdl/m4/gmp.m4 b/ltdl/m4/gmp.m4
index c468d7c9..38e2524e 100644
--- a/ltdl/m4/gmp.m4
+++ b/ltdl/m4/gmp.m4
@@ -1,5 +1,6 @@
## -*- Autoconf -*-
-## Copyright (C) 2000, 2001, 2003, 2006, 2007 Free Software Foundation, Inc.
+## Copyright (C) 2000, 2001, 2003, 2006, 2007, 2008 Free Software
+## Foundation, Inc.
##
## This file is part of GNU M4.
##
@@ -16,7 +17,7 @@
## You should have received a copy of the GNU General Public License
## along with this program. If not, see <http://www.gnu.org/licenses/>.
-# serial 9
+# serial 10
m4_define([_M4_LIB_GMP],
[AC_ARG_WITH([gmp],
@@ -64,9 +65,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_GMP_H
LIBS=$M4_gmp_save_LIBS
AC_SUBST([LIBADD_GMP])
-AC_CACHE_CHECK([if using GNU multiple precision arithmetic library],
- [M4_cv_using_lib_gmp],
- [_M4_LIB_GMP])
+_M4_LIB_GMP
# Don't try to link in libgmp if we are not using it after the last call
if test "$M4_cv_using_lib_gmp" = yes; then