Hello all, There is a question about bison and automake in the automake maillist, maybe a bison user has an answer to it:
http://lists.gnu.org/archive/html/automake/2010-03/msg00055.html Here is the text of the message: I have a problem with some Lex and Yacc files. They require newer versions of flex/bison/m4 be present on the system to correctly generate code, and that's not something that can always be assumed. I've cooked up some configure logic to check the version of flex available in configure.ac. What I'm trying to do is have the build run flex and bison if the versions available are high enough, and if that's not possible I'd like to fall back to building alternate static copies of the generated source code. This functions in normal build situations, but a make distcheck on a machine where flex and yacc are not up to par still results in make attempting to process the .ll and .yy files, despite the conditional logic. Is there a way at the Makefile.am level to prevent the distcheck target running flex and bison on these files? ps. and wondering how the configure.ac logic looks like for the bison version checks and deciding to run bison or not to run bison and use supplied copy of generated code. Thanks, Tys Lefering. -- "Some day Linux will run out of silly names for often used programs." _______________________________________________ [email protected] http://lists.gnu.org/mailman/listinfo/help-bison
