Fix warnings with bison >= 3.4 and autoconf < 2.70
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 11 Jul 2019 18:59:47 +0000 (14:59 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 18 Jul 2019 15:53:35 +0000 (11:53 -0400)
commit6245c710142117a17eea621a5abe8c6f54ca30c1
tree22fca75781d0522178bcc5c016bd329f976c4ad1
parent58bb04cbaab6d70deba08c4630c957485807a4e6
Fix warnings with bison >= 3.4 and autoconf < 2.70

Autoconf up to version 2.69 calls bison with '-y' to keep the output
filenames the same fixed values as the original YACC so the Makefiles
stay compatible with both tools. Starting with Bison 3.4 using '-y' will
generate warnings for non-POSIX YACC statements.

Our parser is not compatible with POSIX YACC, we already check for Bison
in the configure script. Bump the minimal version to 2.5 and add
'-Wno-yacc' to disable the warnings.

Autoconf 2.70 will drop the '-y' and use '-o y.tab.c' to get the same
behavior without enabling the warnings which will still work with this
workaround.

Change-Id: Iad3ba0dcfd9e6b4e2727236abd6ecb4a83de0c70
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1690
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
configure.ac
src/plugins/ctf/common/metadata/Makefile.am
This page took 0.025991 seconds and 4 git commands to generate.