+Fri Oct 24 23:15:09 1997 Tom Tromey <tromey@cygnus.com>
+
+ * automake.in (output_yacc_build_rule): Use YFLAGS again.
+ (handle_yacc_lex_cxx): Error if YACCFLAGS used.
+
Wed Aug 27 19:26:45 1997 Rob Savoye <rob@chinadoll.cygnus.com>
* compile.am: Add suffix rules for ".s.o" and ".S.o" so assembler
* @LEXLIB@ no longer required when lex source seen
* Built-in support for assembly
* aclocal gives error if `AM_' macro not found
+* Passed YFLAGS, not YACCFLAGS, to yacc
\f
New in 1.2:
* Bug fixes
{
&am_error ("yacc source seen but \`YACC' not defined in \`configure.in'");
}
+ if (&variable_defined ('YACCFLAGS'))
+ {
+ &am_line_error ('YACCFLAGS',
+ "\`YACCFLAGS' obsolete; use \`YFLAGS' instead");
+ }
}
if ($lex_count)
{
{
$output_rules .= ('$(SHELL) $(YLWRAP)'
. ' "$(YACC)" $< y.tab.c $*' . $c_suffix
- . ' y.tab.h $*.h -- $(YACCFLAGS)');
+ . ' y.tab.h $*.h -- $(YFLAGS)');
}
else
{
- $output_rules .= ('$(YACC) $(YACCFLAGS) $< && mv y.tab.c $@' . "\n"
+ $output_rules .= ('$(YACC) $(YFLAGS) $< && mv y.tab.c $@' . "\n"
. "\tif test -f y.tab.h; then \\\n"
. "\tif cmp -s y.tab.h \$*.h; then rm -f y.tab.h; else mv y.tab.h \$*.h; fi; \\\n"
. "\telse :; fi");
@samp{AC_DECL_YYTEXT} macro---automake needs to know the value of
@samp{LEX_OUTPUT_ROOT}.
-Any program including a lex source file must be linked against
-@samp{@@LEXLIB@@}. You can do this by putting @samp{@@LEXLIB@@} into
-the appropriate @samp{LDADD} variable.
-
Automake makes it possible to include multiple yacc (or lex) source
files in a single program. Automake uses a small program called
@code{ylwrap} to run @code{yacc} (or @code{lex}) in a subdirectory.