]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Fix minor testsuite issues, update docs, for Yacc/Lex changes.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 21 Jun 2010 18:56:08 +0000 (20:56 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 21 Jun 2010 19:07:57 +0000 (21:07 +0200)
* doc/automake.texi (Yacc and Lex): Mention AM_YFLAGS, YFLAGS
and AM_LFLAGS, LFLAGS in the order in which they now appear in
the rules.
* NEWS: Update.
* tests/lflags.test, tests/lflags2.test, tests/yflags.test,
tests/yflags2.test: Prefer `make -e' over `make VAR=VAL', to
please maintainer-check.  Ensure generated C files contain a
declaration, to please compilers.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
NEWS
doc/automake.texi
tests/lflags.test
tests/lflags2.test
tests/yflags.test
tests/yflags2.test

index 2605ba45a5e3e4cc22ee536bc9bd00c88eaf4b61..98e5792cb2c94cbb3b55fa23ce9ca654ac5acded 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2010-06-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Fix minor testsuite issues, update docs, for Yacc/Lex changes.
+       * doc/automake.texi (Yacc and Lex): Mention AM_YFLAGS, YFLAGS
+       and AM_LFLAGS, LFLAGS in the order in which they now appear in
+       the rules.
+       * NEWS: Update.
+       * tests/lflags.test, tests/lflags2.test, tests/yflags.test,
+       tests/yflags2.test: Prefer `make -e' over `make VAR=VAL', to
+       please maintainer-check.  Ensure generated C files contain a
+       declaration, to please compilers.
+
 2010-06-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        Fix bugs in Automake Yacc/Lex support w.r.t. $(AM_FLAGS) and
diff --git a/NEWS b/NEWS
index 4a0fa94c79443598472e9976f6946b533ea153a8..b8a0f08c8deaa35cdc4b6ccf68607cd0221bc3f1 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -21,11 +21,6 @@ Bugs fixed in 1.11.0a:
 
 * Long standing bugs:
 
-  - Automake variables $(AM_LFLAGS) and $(AM_YFLAGS) took precedence over
-    user variables $(FLAGS) and $(YFLAGS) (respectively).  This was in
-    contrast with both reasonable user's expectations and the Automake
-    manual; so the precedence is now the other way round.
-
   - On Darwin 9, `pythondir' and `pyexecdir' pointed below `/Library/Python'
     even if the `--prefix' argument pointed outside of a system directory.
     AM_PATH_PYTHON has been fixed to ignore the value returned from python's
@@ -43,6 +38,10 @@ Bugs fixed in 1.11.0a:
 
   - A per-Makefile.am setting of -Werror does not carry over to the
     handling of other Makefile.am files any more.
+
+  - The order of Yacc and Lex flags is fixed to be consistent with other
+    languages: $(AM_YFLAGS) comes before $(YFLAGS), and $(AM_LFLAGS) before
+    $(LFLAGS), so that the user variables override the developer variables.
 \f
 New in 1.11:
 
index 2bf32912a77bbf840e91573c829a4c081e5dbdaf..ea500a91569a435f633959eec3f7cb529392f8cf 100644 (file)
@@ -6029,8 +6029,8 @@ Program Checks, autoconf, The Autoconf Manual}).
 
 @vindex YFLAGS
 @vindex AM_YFLAGS
-When @code{yacc} is invoked, it is passed @code{YFLAGS} and
-@code{AM_YFLAGS}.  The former is a user variable and the latter is
+When @code{yacc} is invoked, it is passed @code{AM_YFLAGS} and
+@code{YFLAGS}.  The latter is a user variable and the former is
 intended for the @file{Makefile.am} author.
 
 @code{AM_YFLAGS} is usually used to pass the @option{-d} option to
@@ -6058,8 +6058,8 @@ autoconf, The Autoconf Manual}), but using @code{AM_PROG_LEX} macro
 
 @vindex LFLAGS
 @vindex AM_LFLAGS
-When @command{lex} is invoked, it is passed @code{LFLAGS} and
-@code{AM_LFLAGS}.  The former is a user variable and the latter is
+When @command{lex} is invoked, it is passed @code{AM_LFLAGS} and
+@code{LFLAGS}.  The latter is a user variable and the former is
 intended for the @file{Makefile.am} author.
 
 When @code{AM_MAINTAINER_MODE} (@pxref{maintainer-mode}) is used, the
index 5027f1c6a76157e086d8e20eb43feffcafdfde52..97de608513e207632bca060ef3b8840d5f038743 100755 (executable)
@@ -26,6 +26,7 @@ set -e
 cat >fake-lex <<'END'
 #!/bin/sh
 echo '/*' "$*" '*/' >lex.yy.c
+echo 'extern int dummy;' >> lex.yy.c
 END
 chmod a+x fake-lex
 
@@ -58,7 +59,7 @@ echo 'int main(void){ return 0; }' > main.c
 
 $AUTOCONF
 ./configure
-$MAKE LFLAGS=__user_flags__
+env LFLAGS=__user_flags__ $MAKE -e
 
 ls -l
 
index e50678e8726f9399ce45048aba03fd712812f73f..df766b2b6adf855df0405c50e9307d71810660a8 100755 (executable)
@@ -27,6 +27,7 @@ set -e
 cat >fake-lex <<'END'
 #!/bin/sh
 echo '/*' "$*" '*/' >lex.yy.c
+echo 'extern int dummy;' >> lex.yy.c
 END
 chmod a+x fake-lex
 
@@ -59,7 +60,7 @@ echo 'int main(void) { return 0; }' > main.cc
 
 $AUTOCONF
 ./configure
-$MAKE LFLAGS=__user_flags__
+env LFLAGS=__user_flags__ $MAKE -e
 
 ls -l
 
index d7d3fca5603afe75d11661b8f80c38c77866406b..fcb0c64a91f2cea59af2f0fec604e980de425902 100755 (executable)
@@ -26,6 +26,7 @@ set -e
 cat >fake-yacc <<'END'
 #!/bin/sh
 echo '/*' "$*" '*/' >y.tab.c
+echo 'extern int dummy;' >> y.tab.c
 END
 chmod a+x fake-yacc
 
@@ -56,7 +57,7 @@ echo 'int main(void){ return 0; }' > main.c
 
 $AUTOCONF
 ./configure
-$MAKE YFLAGS=__user_flags__
+env YFLAGS=__user_flags__ $MAKE -e
 
 ls -l
 
index 5d5be1c497714bcb826f9852522e8a2d0b87d0ac..346c2e4b35310352c12f673a92d6f6c39d1f5c13 100755 (executable)
@@ -27,6 +27,7 @@ set -e
 cat >fake-yacc <<'END'
 #!/bin/sh
 echo '/*' "$*" '*/' >y.tab.c
+echo 'extern int dummy;' >> y.tab.c
 END
 chmod a+x fake-yacc
 
@@ -57,7 +58,7 @@ echo 'int main(void) { return 0; }' > main.cc
 
 $AUTOCONF
 ./configure
-$MAKE YFLAGS=__user_flags__
+env YFLAGS=__user_flags__ $MAKE -e
 
 ls -l