On Mon, 29 Aug 2011, Rafa�~B Muży�~Bo wrote:

On Sun, Aug 28, 2011 at 10:15:05AM -0400, Gaetan Nadon wrote:

        "AM_YFLAGS is usually used to pass the -d option to yacc.
        Automake knows what this means and will automatically adjust its rules
        to update and distribute the header file built by ‘yacc -d’."


./configure --help:

          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.


It would appear there is a long story behind this. Not to mention
platforms we don't use,
different versions of yacc and bison, make programs, backward
compatibility, etc..., etc...

There are a couple of apps and the xserver using it as well and I find
it reassuring when the same situations are coded the same way and have
been reviewed.

I can't say that I've used yacc, but 'bison -y -Wall' doesn't print any
compatibility warnings about '%defines', so it should have been OK.

It's bison-specific, as you might have discovered by checking the documention. A quick check of the source shows it was added in bison
1.29

awai

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to