From 4beda9accf84c2205d772bff1af2fe5c86867a5c Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 5 Jan 2003 06:25:35 +0000 Subject: [PATCH] (AC_ARG_ENABLE): Add --disable-yacc. (YACC_SCRIPT, YACC_LIBRARY): New vars to AC_SUBST. --- configure.ac | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/configure.ac b/configure.ac index a6dc0cee..3897c5b3 100644 --- a/configure.ac +++ b/configure.ac @@ -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 -- 2.47.2