* 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.
16 lines
814 B
C++
16 lines
814 B
C++
// 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"
|