summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-01-23 23:26:23 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2017-01-23 23:26:23 +0100
commit05dbb7df2f2dfbb476f79b0e7a85a3f506f36255 (patch)
treeabb30153bf3e4c3106a865671e3123b7a455e63c /lib
parentaf2567b646a9bdf22c3f47caeedc8f2de1dac81c (diff)
build: support bison < 3.0 for parse.error=verbose
*sigh* Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.am2
-rw-r--r--lib/command_parse.y2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index b048720673..08d9dccb9d 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -3,7 +3,7 @@
AM_CPPFLAGS = -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
AM_CFLAGS = $(WERROR)
DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
-AM_YFLAGS = -d -Dapi.prefix=@BISON_OPENBRACE@cmd_yy@BISON_CLOSEBRACE@
+AM_YFLAGS = -d -Dapi.prefix=@BISON_OPENBRACE@cmd_yy@BISON_CLOSEBRACE@ @BISON_VERBOSE@
command_lex.h: command_lex.c
@if test ! -f $@; then rm -f command_lex.c; else :; fi
diff --git a/lib/command_parse.y b/lib/command_parse.y
index cbc7ce9754..dd8e6fb596 100644
--- a/lib/command_parse.y
+++ b/lib/command_parse.y
@@ -28,7 +28,7 @@
%}
%locations
-%define parse.error verbose
+/* define parse.error verbose */
%define api.pure full
/* define api.prefix {cmd_yy} */