(AC_ARG_ENABLE): Add --disable-yacc.

(YACC_SCRIPT, YACC_LIBRARY): New vars to AC_SUBST.
This commit is contained in:
Paul Eggert
2003-01-05 06:25:35 +00:00
parent 93b716f4aa
commit 4beda9accf

View File

@@ -59,6 +59,21 @@ if test "${enableval}" = yes; then
AC_DEFINE([lint], 1, [Define to 1 if the compiler is checking for lint.])
fi
AC_ARG_ENABLE([yacc],
[AC_HELP_STRING([--disable-yacc],
[do not build a yacc command or an -ly library])],
, [enable_yacc=yes])
case $enable_yacc in
yes)
YACC_SCRIPT=yacc
YACC_LIBRARY=liby.a;;
*)
YACC_SCRIPT=
YACC_LIBRARY=;;
esac
AC_SUBST([YACC_SCRIPT])
AC_SUBST([YACC_LIBRARY])
# Checks for programs.
AC_PROG_LEX
AC_PROG_YACC