[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fix problem when using Autoconf 2.59 when testing Bison
From: |
Paul Eggert |
Subject: |
fix problem when using Autoconf 2.59 when testing Bison |
Date: |
24 Dec 2003 00:27:32 -0800 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
I ran into the following problem when testing CVS Bison using the
latest autotools, using "make check":
...
make check-local
make[2]: Entering directory `/home/eggert/src/gnu/bison/tests'
echo "WARNING: Multiple inclusion warning should be ignored." >&2
WARNING: Multiple inclusion warning should be ignored.
/bin/sh /home/eggert/src/gnu/bison/config/missing --run autom4te
--language=autotest -I . testsuite.at -o testsuite.tmp
NONE:0: error: m4_init: unbalanced m4_divert_push:
local.at:204: m4_divert_push: KILL
local.at:204: m4_divert_push: BODY
local.at:204: m4_divert_push: KILL
NONE:0: the top level
autom4te: /home/eggert/opt/Linux-2.4.18-bf2.4-unknown/merged/bin/m4 failed
with exit status: 1
make[2]: *** [testsuite] Error 1
make[2]: Leaving directory `/home/eggert/src/gnu/bison/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/home/eggert/src/gnu/bison/tests'
make: *** [check-recursive] Error 1
Rather than try to debug this, I simply removed the
backwards-compatibility hack in Bison to try to accommodate Autoconf
2.57 and earlier. I vaguely recall that 2.58 had problems so I simply
bumped the required Autoconf version to 2.59. I'm not particularly
happy about this but I didn't have time to do the software archaeology
to figure out what went wrong above.
I noticed that m4sugar.m4 in Bison has diverged from Autoconf, but
merging this didn't seem to fix the problem so I left it alone for now.
I installed the following patch.
2003-12-23 Paul Eggert <address@hidden>
* tests/local.at: Require Autoconf 2.59's Autotest.
* tests/testsuite.at: Don't include local.at, since we now assume
Autoconf 2.59 or later. Autoconf 2.59 had some problems with
including it.
Index: tests/local.at
===================================================================
RCS file: /cvsroot/bison/bison/tests/local.at,v
retrieving revision 1.3
diff -p -u -r1.3 local.at
--- tests/local.at 25 Aug 2003 07:15:49 -0000 1.3
+++ tests/local.at 24 Dec 2003 07:34:39 -0000
@@ -19,7 +19,7 @@
# 02111-1307, USA.
# We want a recent Autotest.
-m4_version_prereq([2.57])
+m4_version_prereq([2.59])
## ------------------------------- ##
Index: tests/testsuite.at
===================================================================
RCS file: /cvsroot/bison/bison/tests/testsuite.at,v
retrieving revision 1.25
diff -p -u -r1.25 testsuite.at
--- tests/testsuite.at 30 Sep 2003 16:45:13 -0000 1.25
+++ tests/testsuite.at 24 Dec 2003 07:34:39 -0000
@@ -18,11 +18,6 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
-# Initializes Autotest, imports macros etc. It will trigger a warning
-# with Autoconf 2.58, because it includes this file automatically, but
-# it causes no real problem.
-m4_include([local.at])
-
# Testing resistance to user bugs.
m4_include([input.at])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- fix problem when using Autoconf 2.59 when testing Bison,
Paul Eggert <=