[lbtt] Adjust parsers to accommodate old and new versions of Automake.
* src/Config-parse.yy, src/Ltl-parse.yy, src/NeverClaim-parse.yy: Rename these as.. * src/Config-parse.y, src/Ltl-parse.y, src/NeverClaim-parse.y: ... these. * src/Config-parse_.cc, src/Ltl-parse_.cc, src/NeverClaim-parse_.cc: New files to hack around incompatibilities between Automake 1.12 and Automake 1.11. * src/Makefile.am: Adjust. * NEWS: Mention this change.
This commit is contained in:
parent
b98c47246c
commit
e9e132dd29
9 changed files with 70 additions and 7 deletions
16
lbtt/src/Config-parse_.cc
Normal file
16
lbtt/src/Config-parse_.cc
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// This is a hack to support both Automake <= 1.11.x, and Automake >=
|
||||
// 1.12.x The problem with is that old versions used to create
|
||||
// parse.h, and parse.cc from a parse.yxx grammar, while new versions
|
||||
// create parse.hxx and parse.cc.
|
||||
//
|
||||
// We want to support both version of Automake, because 1.11.x is
|
||||
// fairly well distributed, and 1.12 did not make it into Debian 7.0.
|
||||
//
|
||||
// Yet it's difficult to support both versions because of the name
|
||||
// change. Our hack is to rename parse.yxx as parse.y, so that
|
||||
// automake will generate rule to build parse.h and parse.c, and then
|
||||
// this parse_.cc file is used to compile parse.c in C++. This way we
|
||||
// always have a parse.h file regardless of the Automake version.
|
||||
//
|
||||
// We can fix this mess once Automake 1.12 is available everywhere.
|
||||
#include "Config-parse.c"
|
||||
Loading…
Add table
Add a link
Reference in a new issue