Ensure Automake does not drop ~~gnulib.m4.
[gnulib.git] / m4 / bison.m4
blob6326cd50f293e5550a35fbfee3791b5c3da1d0a0
1 # serial 7
3 # Copyright (C) 2002, 2005, 2009-2020 Free Software Foundation, Inc.
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
8 AC_DEFUN([gl_BISON],
10   # parse-datetime.y works with bison only.
11   : ${YACC='bison -o y.tab.c'}
12 dnl
13 dnl Declaring YACC & YFLAGS precious will not be necessary after GNULIB
14 dnl requires an Autoconf greater than 2.59c, but it will probably still be
15 dnl useful to override the description of YACC in the --help output, re
16 dnl parse-datetime.y assuming 'bison -o y.tab.c'.
17   AC_ARG_VAR([YACC],
18 [The "Yet Another C Compiler" implementation to use.  Defaults to
19 'bison -o y.tab.c'.  Values other than 'bison -o y.tab.c' will most likely
20 break on most systems.])dnl
21   AC_ARG_VAR([YFLAGS],
22 [YFLAGS contains the list arguments that will be passed by default to Bison.
23 This script will default YFLAGS to the empty string to avoid a default value of
24 '-d' given by some make applications.])dnl