autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Precious YACC & YFLAGS


From: Derek Price
Subject: Precious YACC & YFLAGS
Date: Thu, 16 Jun 2005 10:40:09 -0400
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

I will commit the attached patch soon if no one objects.  Previous
discussion is here: 
<http://lists.gnu.org/archive/html/bug-autoconf/2004-05/msg00011.html>.

2005-06-16  Derek Price  <address@hidden>

    * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious.

Regards,

Derek


Index: lib/autoconf/programs.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/programs.m4,v
retrieving revision 1.45
diff -u -p -r1.45 programs.m4
--- lib/autoconf/programs.m4    24 May 2005 07:29:57 -0000      1.45
+++ lib/autoconf/programs.m4    16 Jun 2005 14:39:07 -0000
@@ -741,8 +741,16 @@ AC_DEFUN([AC_PROG_SED],
 # ------------
 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.])])







reply via email to

[Prev in Thread] Current Thread [Next in Thread]