+2018-12-07 Akim Demaille <akim@lrde.epita.fr>
+
+ bison: don't force the Yacc mode
+ Passing -y forces Bison into POSIX YACC mode. This includes reporting
+ errors when Bison features are used in the grammar file. Some of
+ these features (such as %expect) were flagged non-yacc recently. Most
+ of the time, -y is actually used to please Automake's ylwrap which
+ expects the output to be y.tab.c.
+ * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
+
2018-12-01 Bruno Haible <bruno@clisp.org>
gnupload: Document short options.
AC_DEFUN([gl_BISON],
[
# parse-datetime.y works with bison only.
- : ${YACC='bison -y'}
+ : ${YACC='bison -o y.tab.c'}
dnl
dnl Declaring YACC & YFLAGS precious will not be necessary after GNULIB
dnl requires an Autoconf greater than 2.59c, but it will probably still be
dnl useful to override the description of YACC in the --help output, re
-dnl parse-datetime.y assuming 'bison -y'.
+dnl parse-datetime.y assuming 'bison -o y.tab.c'.
AC_ARG_VAR([YACC],
-[The "Yet Another C Compiler" implementation to use. Defaults to 'bison -y'.
-Values other than 'bison -y' will most likely break on most systems.])dnl
+[The "Yet Another C Compiler" implementation to use. Defaults to
+'bison -o y.tab.c'. Values other than 'bison -o y.tab.c' will most likely
+break on most systems.])dnl
AC_ARG_VAR([YFLAGS],
[YFLAGS contains the list arguments that will be passed by default to Bison.
This script will default YFLAGS to the empty string to avoid a default value of