+2005-06-20 Derek Price <derek@ximbiot.com>
+
+ * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.
+
2005-06-17 Paul Eggert <eggert@cs.ucla.edu>
* lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
# ------------
AN_MAKEVAR([BISON], [AC_PROG_YACC])
AN_MAKEVAR([YACC], [AC_PROG_YACC])
+AN_MAKEVAR([YFLAGS], [AC_PROG_YACC])
AN_PROGRAM([yacc], [AC_PROG_YACC])
AN_PROGRAM([byacc], [AC_PROG_YACC])
AN_PROGRAM([bison], [AC_PROG_YACC])
AC_DEFUN([AC_PROG_YACC],
-[AC_CHECK_PROGS(YACC, 'bison -y' byacc, yacc)])
+[AC_CHECK_PROGS(YACC, 'bison -y' byacc, yacc)dnl
+AC_ARG_VAR(YACC,
+[The `Yet Another C Compiler' implementation to use. Defaults to the first
+program found out of: `bison -y', `byacc', `yacc'.])dnl
+AC_ARG_VAR(YFLAGS,
+[The list of arguments that will be passed by default to $YACC. This script
+will default YFLAGS to the empty string to avoid a default value of `-d' given
+by some make applications.])])
makevar: MAKE AC_PROG_MAKE_SET
makevar: RANLIB AC_PROG_RANLIB
makevar: YACC AC_PROG_YACC
+makevar: YFLAGS AC_PROG_YACC
program: CC AC_PROG_CXX
program: awk AC_PROG_AWK
program: bison AC_PROG_YACC