Re: AC_PROG_YACC

Bruno Haible <[email protected]>
Newsgroups gmane.comp.lib.gnulib.bugs,gmane.comp.version-control.cvs.bugs,gmane.comp.sysutils.autoconf.bugs
Message-ID <[email protected]>
Derek Robert Price wrote:
> > >>My workaround will be to just stick a `YFLAGS=' line in my
> > >>Makefile.am, but I thought you might like the bug report.
> > >
> > >So this means, YFLAGS is meant as a variable through which the user can
> > >influence the compilation (like CFLAGS, CPPFLAGS, LDFLAGS etc.). By
> > >setting it to empty, you give the user less freedom.
>
> Not true.  I am _defaulting_ it to empty by setting it via configure.

That's reasonable, but for this to work as you expect, the default must
be set from configure.ac or a .m4 macro, not from Makefile.am.

> My new solution just AC_ARG_VARs both YACC & YFLAGS

Sounds OK for YFLAGS. However, for YACC it's not what we want because it
doesn't enforce the requirement that bison is used.

Bruno
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.