bison-patches
[Top][All Lists]
Advanced

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

FYI: master: calc++: rely on Automake


From: Akim Demaille
Subject: FYI: master: calc++: rely on Automake
Date: Wed, 15 Feb 2012 11:36:13 +0100

Rely on $(YACC) being the bison being built, and let Automake do the
rest.  It turned out to be much more difficult than anticipated, for
various reasons, including some bad behavior from Automake 1.11.2
which (i) generates calc++-parser.h instead of calc++-parser.hh, and
(ii) leaves an #include "y.tab.h" in the generated parser instead
of #include "calc++-parser.h".

The authors of Automake appear to be aware of the problem,
http://lists.gnu.org/archive/html/automake/2011-05/msg00008.html
so a simple work around will suffice for the time being.

        * examples/calc++/y.tab.h, examples/calc++/calc++-parser.hh: New.
        To work around Automake 1.11.2 issues.
        * examples/calc++/local.mk: Remove all the rules for compilation
        with bison, leave them to Automake.
        So provide it with "calc++-parse.yy" as a source file.
        (calc_sources_generated, calc_sources_extracted): Rename as.
        (calc_generated, calc_extracted): these.
        (calc_sources): New.
        Fix them.

Attachment: 0001-calc-rely-on-Automake.patch
Description: Binary data


reply via email to

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