]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: don't try to prevent flex from including unistd.h.
authorFrédéric Bérat <fberat@redhat.com>
Tue, 29 Aug 2023 01:32:53 +0000 (18:32 -0700)
committerKarl Berry <karl@freefriends.org>
Tue, 29 Aug 2023 01:32:53 +0000 (18:32 -0700)
This patch is from https://bugs.gnu.org/59994.

* t/cond35.sh: This patch is related to an effort to prepare
Automake for future GCC/Clang versions which set c99 as default
standard to be used.

In the current version of flex, not having unistd.h leads to
implicit function declarations that are not compatible with C99.

A future version of flex will (hopefully) make the "NO_UNISTD"
flag a no-op, and include unistd.h by default.

Also, while flex-dedicated tests had this macro set,
yacc tests did not, despite their use of flex.

For consistency, all the yacc/flex related tests now have the
"--never-interactive" option set in AM_LFLAGS, and do not try
define an isatty function.

* t/lex-clean-cxx.sh: Likewise.
* t/lex-clean.sh: Likewise.
* t/lex-depend-cxx.sh: Likewise.
* t/lex-depend.sh: Likewise.
* t/lex-header.sh: Likewise.
* t/lex-lib-external.sh: Likewise.
* t/lex-lib.sh: Likewise.
* t/lex-libobj.sh: Likewise.
* t/lex-line.sh: Likewise.
* t/lex-multiple.sh: Likewise.
* t/lex-nodist.sh: Likewise.
* t/lex-noyywrap.sh: Likewise.
* t/lex-pr204.sh: Likewise.
* t/lex-subobj-nodep.sh: Likewise.
* t/lex3.sh: Likewise.
* t/lex5.sh: Likewise.
* t/lexvpath.sh: Likewise.
* t/silent-lex.sh: Likewise.
* t/silent-many-languages.sh: Likewise.
* t/silent-yacc-headers.sh: Likewise.
* t/silent-yacc.sh: Likewise.
* t/subpkg-yacc.sh: Likewise.
* t/suffix10.tap: Likewise.
* t/yacc-auxdir.sh: Likewise.
* t/yacc-basic.sh: Likewise.
* t/yacc-bison-skeleton-cxx.sh: Likewise.
* t/yacc-bison-skeleton.sh: Likewise.
* t/yacc-clean-cxx.sh: Likewise.
* t/yacc-clean.sh: Likewise.
* t/yacc-cxx-grepping.sh: Likewise.
* t/yacc-cxx.sh: Likewise.
* t/yacc-d-basic.sh: Likewise.
* t/yacc-d-cxx.sh: Likewise.
* t/yacc-d-vpath.sh: Likewise.
* t/yacc-deleted-headers.sh: Likewise.
* t/yacc-depend.sh: Likewise.
* t/yacc-depend2.sh: Likewise.
* t/yacc-dist-nobuild-subdir.sh: Likewise.
* t/yacc-dist-nobuild.sh: Likewise.
* t/yacc-dry.sh: Likewise.
* t/yacc-grepping.sh: Likewise.
* t/yacc-grepping2.sh: Likewise.
* t/yacc-headers-and-dist-pr47.sh: Likewise.
* t/yacc-line.sh: Likewise.
* t/yacc-misc.sh: Likewise.
* t/yacc-mix-c-cxx.sh: Likewise.
* t/yacc-nodist.sh: Likewise.
* t/yacc-pr204.sh: Likewise.
* t/yacc-subdir.sh: Likewise.
* t/yacc-vpath.sh: Likewise.
* t/yacc-weirdnames.sh: Likewise.
* t/yflags-cmdline-override.sh: Likewise.
* t/yflags-cxx.sh: Likewise.
* t/yflags-d-false-positives.sh: Likewise.
* t/yflags-force-conditional.sh: Likewise.
* t/yflags-force-override.sh: Likewise.
* t/yflags-var-expand.sh: Likewise.
* t/yflags.sh: Likewise.

59 files changed:
t/cond35.sh
t/lex-clean-cxx.sh
t/lex-clean.sh
t/lex-depend-cxx.sh
t/lex-depend.sh
t/lex-header.sh
t/lex-lib-external.sh
t/lex-lib.sh
t/lex-libobj.sh
t/lex-line.sh
t/lex-multiple.sh
t/lex-nodist.sh
t/lex-noyywrap.sh
t/lex-pr204.sh
t/lex-subobj-nodep.sh
t/lex3.sh
t/lex5.sh
t/lexvpath.sh
t/silent-lex.sh
t/silent-many-languages.sh
t/silent-yacc-headers.sh
t/silent-yacc.sh
t/subpkg-yacc.sh
t/suffix10.tap
t/yacc-auxdir.sh
t/yacc-basic.sh
t/yacc-bison-skeleton-cxx.sh
t/yacc-bison-skeleton.sh
t/yacc-clean-cxx.sh
t/yacc-clean.sh
t/yacc-cxx-grepping.sh
t/yacc-cxx.sh
t/yacc-d-basic.sh
t/yacc-d-cxx.sh
t/yacc-d-vpath.sh
t/yacc-deleted-headers.sh
t/yacc-depend.sh
t/yacc-depend2.sh
t/yacc-dist-nobuild-subdir.sh
t/yacc-dist-nobuild.sh
t/yacc-dry.sh
t/yacc-grepping.sh
t/yacc-grepping2.sh
t/yacc-headers-and-dist-pr47.sh
t/yacc-line.sh
t/yacc-misc.sh
t/yacc-mix-c-cxx.sh
t/yacc-nodist.sh
t/yacc-pr204.sh
t/yacc-subdir.sh
t/yacc-vpath.sh
t/yacc-weirdnames.sh
t/yflags-cmdline-override.sh
t/yflags-cxx.sh
t/yflags-d-false-positives.sh
t/yflags-force-conditional.sh
t/yflags-force-override.sh
t/yflags-var-expand.sh
t/yflags.sh

index dc3b8aae97366c9621d25a890ba39b70b0c254d1..8b044644e8551585705decab77f7b4f602b92c9f 100644 (file)
@@ -30,6 +30,7 @@ EOF
 
 cat > Makefile.am <<'EOF'
 AM_YFLAGS               =       -d
+AM_LFLAGS               =       --never-interactive
 
 BUILT_SOURCES           =       tparse.h
 
@@ -58,9 +59,6 @@ $FGREP 'tparse.h' Makefile.in # For debugging.
 test $($FGREP -c 'tparse.h:' Makefile.in) -eq 1
 
 cat > tscan.l << 'END'
-%{
-#define YY_NO_UNISTD_H 1
-%}
 %%
 "END"   return EOF;
 %%
index 8a086304f9a2c8ac23a4aa7fefb0f6d9b76966cc..fea054457f344331938f069f5b4434255b374e1d 100644 (file)
@@ -29,6 +29,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foo bar baz qux
 
 foo_SOURCES = mainfoo.cc parsefoo.lxx
@@ -60,8 +62,6 @@ cat > parsefoo.lxx << 'END'
 extern "C"
 #endif
 YY_DECL;
-#define YY_NO_UNISTD_H 1
-int isatty (int fd) { return 0; }
 %}
 %%
 "GOOD"   return EOF;
index 1ee7d8f5bda43073f5048b067337dbf147647718..4668e97c7fd27a38feb576b256b40d99d75a5047 100644 (file)
@@ -29,6 +29,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foo bar baz qux
 
 foo_SOURCES = main.c lexer.l
@@ -52,9 +54,6 @@ LDADD = $(LEXLIB)
 END
 
 cat > lexer.l << 'END'
-%{
-#define YY_NO_UNISTD_H 1
-%}
 %%
 "GOOD"   return EOF;
 .
index 682b2ccc5de5c222f8783e059b1f8a77888e3e0b..cc7004eab5358a286e20b897f3d7f5109e5dd305 100644 (file)
@@ -27,6 +27,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 noinst_PROGRAMS = joe moe
 joe_SOURCES = joe.ll
 moe_SOURCES = moe.l++
@@ -53,8 +55,6 @@ cat > joe.ll << 'END'
 extern "C"
 #endif
 YY_DECL;
-#define YY_NO_UNISTD_H 1
-int isatty (int fd) { return 0; }
 %}
 %%
 "foo" return EOF;
index 16f937ef1f2353d0c9fdc3225c14788770adc3e7..68cc5ee7b9eddbc7187156f2413b394e3fd476ee 100644 (file)
@@ -27,6 +27,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = zoo
 zoo_SOURCES = joe.l
 LDADD = $(LEXLIB)
@@ -42,9 +44,6 @@ test-obj-updated: joe.$(OBJEXT)
 END
 
 cat > joe.l << 'END'
-%{
-#define YY_NO_UNISTD_H 1
-%}
 %%
 "foo" return EOF;
 .
index 22567642e30c8bb953deb2cbaeb55bce0feb8965..48b42457acfa2d95c0488aabbef537f7e6e6b27f 100644 (file)
@@ -33,6 +33,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foo
 foo_SOURCES = lexer.l main.c mylex.h
 foo_LFLAGS = --header-file=mylex.h
@@ -45,9 +47,6 @@ END
 
 cat > lexer.l << 'END'
 %option noyywrap
-%{
-#define YY_NO_UNISTD_H 1
-%}
 %%
 "GOOD"   return EOF;
 .
@@ -55,7 +54,6 @@ cat > lexer.l << 'END'
 END
 
 cat > main.c <<'END'
-#define YY_NO_UNISTD_H 1
 #include "mylex.h"
 int main (void)
 {
index 85403612fd5851e804cc42f2f3820421b7a7a589..25ad2a39b0493fe2219e2033aecdc39929219da6 100644 (file)
@@ -28,6 +28,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = lexer
 lexer_SOURCES = foo.l
 lexer_LDADD = $(LEXLIB)
@@ -42,9 +44,6 @@ have-lexlib:
 END
 
 cat > foo.l <<'END'
-%{
-#define YY_NO_UNISTD_H 1
-%}
 %%
 "GOOD"   return EOF;
 .
index f0a0d37f603edb2650224ea272375c8703706239..7734fd228b92e78f3a2636294dd03dd917b25e02 100644 (file)
@@ -31,6 +31,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = lexer
 lexer_SOURCES = foo.l
 lexer_LDADD = $(LEXLIB)
@@ -47,9 +49,6 @@ int yywrap (void)
 END
 
 cat > foo.l <<'END'
-%{
-#define YY_NO_UNISTD_H 1
-%}
 %%
 "END" return EOF;
 .
index b26381fcf8ffe2fa54a0c90056427fd7d1e5e357..6e36a98ed033108b42fd86588d7f3abeec6fe799 100644 (file)
@@ -32,6 +32,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 noinst_PROGRAMS = foo
 foo_SOURCES = foo.l
 foo_LDADD = $(LEXLIB) $(LIBOBJS)
@@ -45,9 +47,6 @@ int yywrap (void)
 END
 
 cat > foo.l <<'END'
-%{
-#define YY_NO_UNISTD_H 1
-%}
 %%
 "END" return EOF;
 .
index 340800ef29aa107b99e0ac9b46b97d1e3bf86119..5f914584770693b491ccead4f5511ef79c76fbc1 100644 (file)
@@ -32,6 +32,8 @@ END
 mkdir dir sub sub/dir
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 SUBDIRS = sub
 bin_PROGRAMS = foo bar
 LDADD = $(LEXLIB)
@@ -44,6 +46,8 @@ bar-quux.@OBJEXT@: bar-quux.c
 END
 
 cat > sub/Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 AUTOMAKE_OPTIONS = subdir-objects
 noinst_PROGRAMS = foo bar
 ## We already used $(LEXLIB) above, so try @LEXLIB@ now.
@@ -57,9 +61,6 @@ dir/quux.@OBJEXT@: dir/quux.c
 END
 
 cat > zardoz.l << 'END'
-%{
-#define YY_NO_UNISTD_H 1
-%}
 %%
 "END"  return EOF;
 .
index 9565bd6b821b7afd36a33206b772bed44a56184f..6486a012f822788aa547407b773fa2f29cfa057f 100644 (file)
@@ -31,7 +31,9 @@ AC_PROG_RANLIB
 AC_OUTPUT
 END
 
-cat > Makefile.am << 'END'
+cat > Makefile.am <<  'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = zardoz
 
 zardoz_SOURCES = main.c
@@ -72,9 +74,6 @@ int main (int argc, char *argv[])
 END
 
 cat > 0.l << 'END'
-%{
-#define YY_NO_UNISTD_H 1
-%}
 %%
 "VANILLA" { printf (":%s:\n", yytext); return 121; }
 . { printf (":%s:\n", yytext); return 1; }
index 73e23a13ec621f9a70bf6336e8ebb42527a143b9..d499aea7f332b127319463a6c6e1e0e879450759 100644 (file)
@@ -31,6 +31,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 .PHONY: test-build test-dist
 test-build: all
        ls -l
@@ -45,9 +47,6 @@ check-local: test-build test-dist
 lexer.l:
        rm -f $@ $@-t
        :; { : \
-         && echo '%{' \
-         && echo '#define YY_NO_UNISTD_H 1' \
-         && echo '%}' \
          && echo '%%' \
          && echo '"GOOD" return EOF;' \
          && echo '.'; \
index 1c61a1ab3acec4730cab86c245c6a8cf22db93f1..5ec68b9ba0afe62b7dafa9a418773459e4ca8636 100644 (file)
@@ -26,6 +26,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foo
 foo_SOURCES = foo.l
 
@@ -37,9 +39,6 @@ END
 
 cat > foo.l << 'END'
 %option noyywrap
-%{
-#define YY_NO_UNISTD_H 1
-%}
 %%
 "GOOD"   return EOF;
 .
index ebfaafef512221eae659f5700c49325ef8a2d7a1..cbad1c266bd9c14aa52d7b5878f863f69dd65368 100644 (file)
@@ -35,6 +35,8 @@ EOF
 # The LEXER2 intermediate variable is there to make sure Automake
 # matches 'nodist_' against the right variable name...
 cat > Makefile.am << 'EOF'
+AM_LFLAGS = --never-interactive
+
 EXTRA_PROGRAMS = foo
 LEXER2 = lexer2.l
 nodist_foo_SOURCES = lexer.l $(LEXER2)
@@ -49,9 +51,6 @@ distdirtest: distdir
 EOF
 
 cat > lexer.l << 'END'
-%{
-#define YY_NO_UNISTD_H 1
-%}
 %%
 "GOOD"   return EOF;
 .
index f8bb87a9c2655eac0a195131cb87631e0f9268eb..8ef4d68b16d96004fa8147e78bad1d15b1bf9eab 100644 (file)
@@ -28,6 +28,8 @@ END
 
 cat >Makefile.am <<\END
 AUTOMAKE_OPTIONS = subdir-objects
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = p1 p2
 p1_SOURCES = sub1/s1.l
 p2_SOURCES = sub2/s2.l
@@ -37,9 +39,6 @@ END
 mkdir sub1 sub2
 
 cat >sub1/s1.l <<\END
-%{
-#define YY_NO_UNISTD_H 1
-%}
 %%
 "END"   return EOF;
 .
index 41b87dc06a246b213e02c1feb96c98d094b9eaf3..4a20f85dadbb7dae3e57724d3aedb3b8dc2984e0 100644 (file)
--- a/t/lex3.sh
+++ b/t/lex3.sh
@@ -28,14 +28,13 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 noinst_PROGRAMS = foo
 foo_SOURCES = foo.l
 END
 
 cat > foo.l << 'END'
-%{
-#define YY_NO_UNISTD_H 1
-%}
 %%
 "GOOD"   return EOF;
 .
index 3d84d9b412e1a27642ad2ace262cb79708bf5f87..687903e650f50961b525a03881824bc665a74484 100644 (file)
--- a/t/lex5.sh
+++ b/t/lex5.sh
@@ -28,6 +28,7 @@ END
 cat > Makefile.am << 'END'
 AUTOMAKE_OPTIONS  = subdir-objects
 LDADD             = @LEXLIB@
+AM_LFLAGS         = --never-interactive
 
 bin_PROGRAMS    = foo/foo
 foo_foo_SOURCES = foo/foo.l
@@ -36,9 +37,6 @@ END
 mkdir foo
 
 cat > foo/foo.l << 'END'
-%{
-#define YY_NO_UNISTD_H 1
-%}
 %%
 "END"   return EOF;
 .
index 5185a1f717968e393dfa708bfa746f5f464e7756..d064fd2bd536c380feb96c3665824ea73f0ea0c1 100644 (file)
@@ -37,6 +37,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foo
 foo_SOURCES = lexer.l foo.c
 LDADD = $(LEXLIB)
@@ -44,9 +46,6 @@ END
 
 # Original lexer, with a "foobar" comment
 cat > lexer.l << 'END'
-%{
-#define YY_NO_UNISTD_H 1
-%}
 %%
 "END" return EOF;
 .
@@ -89,9 +88,6 @@ $sleep
 
 # New lexer, with 'fubar' comment.
 cat > ../lexer.l << 'END'
-%{
-#define YY_NO_UNISTD_H 1
-%}
 %%
 "END" return EOF;
 .
@@ -112,9 +108,6 @@ $sleep
 
 # New lexer, with 'maude' comment.
 cat > ../lexer.l << 'END'
-%{
-#define YY_NO_UNISTD_H 1
-%}
 %%
 "END" return EOF;
 .
index cfe1a9b5d3f3d83acfd04efd11af8ad0e5a3edb6..e424afc3844cb567135a13ab488ff501a64f0f71 100644 (file)
@@ -28,6 +28,8 @@ AC_OUTPUT
 EOF
 
 cat > Makefile.am <<'EOF'
+AM_LFLAGS = --never-interactive
+
 # Need generic and non-generic rules.
 bin_PROGRAMS = foo1 foo2
 foo1_SOURCES = foo.l
@@ -40,6 +42,8 @@ EOF
 
 cat > sub/Makefile.am <<'EOF'
 AUTOMAKE_OPTIONS = subdir-objects
+AM_LFLAGS = --never-interactive
+
 # Need generic and non-generic rules.
 bin_PROGRAMS = bar1 bar2
 bar1_SOURCES = bar.l
@@ -50,9 +54,6 @@ LDADD = $(LEXLIB)
 EOF
 
 cat > foo.l <<'EOF'
-%{
-#define YY_NO_UNISTD_H 1
-%}
 %%
 "END"   return EOF;
 .
index 4edb468840a8d332df9a7fb1d1d5beb9c11ae0d8..85773d339aa9c61cc4d9882ff28899c6bd4d7cf6 100644 (file)
@@ -151,6 +151,7 @@ ba2_YFLAGS = -v
 ba2_LFLAGS = -n
 ba2_LDADD = $(LEXLIB)
 AM_YFLAGS = -d
+AM_LFLAGS = --never-interactive
 BUILT_SOURCES = baz6.h
 EOF
 
index 98ae45b8a77aa6e4b34d784033110d26b2887bf8..f64342c82149caabaa915152f9da18b98acddc31 100644 (file)
@@ -31,6 +31,7 @@ EOF
 cat > Makefile.am <<'EOF'
 # Need generic and non-generic rules.
 AM_YFLAGS = -d
+AM_LFLAGS = --never-interactive
 bin_PROGRAMS = foo bar
 foo_SOURCES = parse.y
 bar_SOURCES = $(foo_SOURCES)
index 9645aff83b7e63c531f36a1918bf4f83cba6667f..d89ff49a79d4b6fae9109f3cb979e15c95e60781 100644 (file)
@@ -29,6 +29,8 @@ AC_OUTPUT
 EOF
 
 cat > Makefile.am <<'EOF'
+AM_LFLAGS = --never-interactive
+
 # Need generic and non-generic rules.
 bin_PROGRAMS = foo1 foo2
 foo1_SOURCES = foo.y
@@ -40,6 +42,8 @@ EOF
 
 cat > sub/Makefile.am <<'EOF'
 AUTOMAKE_OPTIONS = subdir-objects
+AM_LFLAGS = --never-interactive
+
 # Need generic and non-generic rules.
 bin_PROGRAMS = bar1 bar2
 bar1_SOURCES = bar.y
index edd14532b85981ea2d5167ee3fc33641d872e7b4..782ee0957d86f1a9796b00430cd489fa8f82840d 100644 (file)
@@ -61,6 +61,8 @@ AC_OUTPUT
 EOF
 
 cat >lib/Makefile.am <<'EOF'
+AM_LFLAGS = --never-interactive
+
 noinst_LIBRARIES = liblib.a
 liblib_a_SOURCES = src/x.c foo.y
 EXTRA_liblib_a_SOURCES = bar.y
index 3869d07fdefcd8e57069a656968d046baeb414c5..8d3dc175652d74d2e5a7f9f0fd72a18b9dca35a7 100644 (file)
@@ -31,6 +31,8 @@ AC_OUTPUT
 EOF
 
 cat >Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 lib_LTLIBRARIES = libfoo.la
 libfoo_la_SOURCES = foo.x_
 .x_.y:
index be8ac4fd4142413004e6c9893fc606bbb59df704..f6ff7de48de1dafbd7c2af4498845d602752f9f9 100644 (file)
@@ -35,12 +35,16 @@ cat > Makefile.am << 'END'
 SUBDIRS = sub
 bin_PROGRAMS = foo
 AM_YFLAGS = -d
+AM_LFLAGS = --never-interactive
+
 foo_SOURCES = foo.y
 END
 
 cat > sub/Makefile.am << 'END'
 bin_PROGRAMS = bar
 AM_YFLAGS = -d
+AM_LFLAGS = --never-interactive
+
 bar_SOURCES = bar.y main.c
 END
 
index b7a35bd3909440f303211324d5dce3feaf16c400..51ee5f6a305108d04b00f278d6e57cee86e2cc64 100644 (file)
@@ -27,6 +27,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foo bar
 foo_SOURCES = parse.y foo.c
 bar_SOURCES = $(foo_SOURCES)
index bded1a34f3f0538f84ea24b733885c2b2010f00f..da76238fa7d86d91883beaa7c19295b8b955bb46 100644 (file)
@@ -27,6 +27,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = zardoz
 zardoz_SOURCES = zardoz.yy foo.cc
 
index b77b29f1e3d622175e4968326c209b66d86fba3e..11b64b831ea48b64eeff96fa39240dad06d0bcac 100644 (file)
@@ -31,6 +31,8 @@ cat > Makefile.am << 'END'
 bin_PROGRAMS = zardoz
 zardoz_SOURCES = zardoz.y foo.c
 AM_YFLAGS = -d --skeleton glr.c
+AM_LFLAGS = --never-interactive
+
 BUILT_SOURCES = zardoz.h
 END
 
index d12e02308630ae567dec18302ad02711b78b2fc4..71eb4f3159681f9bcca35aec838bcb190fb5d463 100644 (file)
@@ -39,6 +39,8 @@ END
 mkdir sub1 sub2
 
 cat > sub1/Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foo bar baz qux
 
 foo_SOURCES = mainfoo.cc parsefoo.yxx
index 0baf0afd8dcd47c0bc32313a806ab21bec29b0aa..d0f793843ad11b073fb3495c681a49a4e3d2ebf8 100644 (file)
@@ -38,6 +38,8 @@ END
 mkdir sub1 sub2
 
 cat > sub1/Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foo bar baz qux
 
 foo_SOURCES = main.c parse.y
index 7b3a6bc5eaea9f844da38696f30151018f36deab..e094d5f163274fe6ece2b3306b4392dde0ed9cc6 100644 (file)
@@ -27,6 +27,8 @@ AC_PROG_YACC
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foo bar baz qux
 foo_SOURCES = foo.y++
 bar_SOURCES = bar.ypp
index 5b385870c3c25e1aed508cf328ded38f3af289e3..0ce4116dd360e0cf3f7d3457f2159cf54bfe087b 100644 (file)
@@ -28,6 +28,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foo1 foo2 foo3 foo4
 foo1_SOURCES = parse1.yy  foo.cc
 foo2_SOURCES = parse2.y++ bar.c++
index fe80a0888528e5a02f45f9c990c081af7027ccd7..166111fdb50a20da586cdbd9d373f27c397e305e 100644 (file)
@@ -35,6 +35,8 @@ END
 mkdir foo bar baz
 
 cat > foo/Makefile.am <<'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = zardoz
 zardoz_SOURCES = parse.y main.c
 .PHONY: echo-distcom
index 576e8e2aa162c5764ff51a8cc0e817b65b398cb9..40247d3c84d1eae507d99f96d53b865316d807bf 100644 (file)
@@ -70,6 +70,8 @@ mkdir foo bar baz qux baz/sub
 
 # These makefiles will be extended later.
 cat > Makefile.am <<'END'
+AM_LFLAGS = --never-interactive
+
 .PHONY: echo-distcom
 echo-distcom:
        @echo ' ' $(DIST_COMMON) ' '
index dced4818f41e81588b7a36c584d9e353079731a9..3dcf17adecde0af25eb6f72efc907608906124f5 100644 (file)
@@ -32,6 +32,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foo
 foo_SOURCES = parse.y foo.c
 AM_YFLAGS = -d
index c3fdbeee419d76437c21339c46ba50732e28c80b..8c27dcefb537c1651f919fdb531263c68e525ebf 100644 (file)
@@ -26,6 +26,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am <<'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = p1 p2 p3 p4
 # The order in which files are listed in the p*_SOURCES variables
 # below is significant, since it causes make failures whenever
index cf544359f7be3fbd3db9c1724e7ffd01c7fbda63..d1e09bc3986059ada598e30b28e3b7d24b99a6ec 100644 (file)
@@ -29,6 +29,8 @@ END
 cat > Makefile.am << 'END'
 bin_PROGRAMS = foo
 AM_YFLAGS = -d
+AM_LFLAGS = --never-interactive
+
 foo_SOURCES = foo.y main.c
 BUILT_SOURCES = foo.h
 END
index a61e4957d03a2e17f8c905170766d12ae1701609..a52d4489ff3708ca73f35f0ef9185eb5d32c1918 100644 (file)
@@ -28,6 +28,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foo
 AM_YFLAGS = -d
 foo_SOURCES = foo.y main.c
index d1788811fefade823b9e8c35d24fc971232ed213..56320fe486deb85b9ccbc587b07fd15f0c707dcd 100644 (file)
@@ -49,6 +49,8 @@ END
 
 cat > Makefile.am <<'END'
 AUTOMAKE_OPTIONS = subdir-objects
+AM_LFLAGS = --never-interactive
+
 noinst_PROGRAMS = foo bar
 foo_SOURCES = sub/parse.y
 bar_SOURCES = $(foo_SOURCES)
index a30fefec23e1d60c47f635bf20fed55fb3b86dde..71be0d52c990983212b6b05848b269b41b0971d6 100644 (file)
@@ -28,6 +28,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foobar zardoz
 foobar_SOURCES = parse.y main.c
 zardoz_SOURCES = $(foobar_SOURCES)
index 9b08d386344216a3b167225c5caca6ee01a9204a..6500ba811e48b1723b600c53845d62d1f3a78e93 100644 (file)
@@ -26,6 +26,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 AM_YFLAGS = -d
 bin_PROGRAMS = foo
 foo_SOURCES = foo.c parse.y
index b0cf913533dcfcd8338ba1eafd8662e7b37dc9b4..67381ba891d5abc94d5b96d7086c7fd48e59bef0 100644 (file)
@@ -35,6 +35,8 @@ END
 $ACLOCAL
 
 cat > Makefile.am <<'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = zardoz
 zardoz_SOURCES = zardoz.y
 END
index 159dd3e15c3f36ce93ce9955fa0e69764fa3b29d..4af321fbe32dafd0bf0a644c478aed856ddf0f46 100644 (file)
@@ -25,6 +25,8 @@ AC_PROG_YACC
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = maude
 maude_SOURCES = sub/maude.y
 END
index 57c8251ad8fd8fe14c3f4b46087f00208ec86618..74ec525f9a586e2f98132eacebf34f7b4fdd9314 100644 (file)
@@ -30,6 +30,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foo
 foo_SOURCES = foo.y
 AM_YFLAGS = -d
index e7a4d6244347c16632d58779ad92673abd4b99d4..2319c979109fa491d6b1a59815744feece891c3a 100644 (file)
@@ -32,6 +32,8 @@ END
 mkdir dir sub sub/dir
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 SUBDIRS = sub
 bin_PROGRAMS = foo bar
 AM_YFLAGS = -d
@@ -45,6 +47,8 @@ END
 
 cat > sub/Makefile.am << 'END'
 AUTOMAKE_OPTIONS = subdir-objects
+AM_LFLAGS = --never-interactive
+
 noinst_PROGRAMS = foo bar
 foo_YFLAGS = -d
 foo_SOURCES = zardoz.y
index 2bfb0c55ea65ffd37753ce06dfbceae32a0e42d4..fcc19aa4926ada6001183efd53f66a7d10b21b83 100644 (file)
@@ -26,6 +26,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foo bar
 foo_SOURCES = parse.y foo.c
 bar_SOURCES = bar.y foo.c
index 7c44e092606cda03de6edb5970ea71b7edc4394d..de05cdab8825c2ae751d516be0f06259273b4bf9 100644 (file)
@@ -28,6 +28,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = c1 c2 cxx1 cxx2 cxx3
 AM_YFLAGS = -d
 
index dbb86bdb2fc6139e294e110bdc88a247e21801b8..8e5338e9441f203eb3af042353a92e906c0dfc74 100644 (file)
@@ -31,6 +31,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 SUBDIRS = sub1 sub2
 .PHONY: test-build test-dist
 test-build: all
index 91882e4d7695ad20d5b3c5f00fa9d3484905af11..89acb1ee016b73bcf8399db65bb6b37009ab602b 100644 (file)
@@ -34,6 +34,8 @@ EOF
 # sure Automake match 'nodist_' against the right
 # variable name...
 cat > Makefile.am << 'EOF'
+AM_LFLAGS = --never-interactive
+
 AM_YFLAGS = -d
 EXTRA_PROGRAMS = foo
 PARSE2 = parse2.y
index df31a3c51b7edb3a347a98c3a253f1fbb7702596..d6c3f0cc8ffd2690857633ceee4ca4a8a41a29c5 100644 (file)
@@ -28,6 +28,8 @@ END
 
 cat > Makefile.am << 'END'
 AUTOMAKE_OPTIONS = subdir-objects
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foo/foo
 foo_foo_SOURCES = foo/parse.y
 AM_YFLAGS = -d
index 52d2c45bde28c7b9a9301e72bd09c396233c5e60..42044ecf2fd80dad75cacc25dee4a4dc2720408f 100644 (file)
@@ -32,6 +32,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foo
 foo_SOURCES = parse.y foo.c
 END
index 60f199d2d936dbfa0874ee34ee357cb53b65b6de..8397bc6368a6b9c767c3f3f6c40551d1d45d7801 100644 (file)
@@ -27,6 +27,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foo bar foo2 bar2
 
 foo_SOURCES = parse.y.y
index 37304645c6f0b2dcb631b47cf2a6918f99539989..73982753ad46ae9391b5dca630e04bb308e8975c 100644 (file)
@@ -27,6 +27,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am <<'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foo
 foo_SOURCES = foo.y
 # A minor automake wart: automake doesn't generate code to clean
index 9bd28b8ced9612f3a5c996e3d7222d35111d1778..2596a95e3d59976491aa2dfc96b09b03e7e75489 100644 (file)
@@ -39,6 +39,8 @@ END
 
 cat > Makefile.am <<'END'
 AUTOMAKE_OPTIONS = no-dependencies
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foo bar
 foo_SOURCES = main.cc foo.yy
 bar_SOURCES = main.cc bar.y++
index 21efb23451838c5c63f80e36a5895f14def21921..666dbe93826f04cb8df4d23c031df058554558e6 100644 (file)
@@ -26,6 +26,8 @@ END
 $ACLOCAL
 
 cat > Makefile.am <<'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = zardoz foobar
 zardoz_SOURCES = zardoz.y
 foobar_SOURCES = foobar.y
index 3f9a13293584a985ddaae8649177c73f9fefb8f4..976b6f7826097d6f053483edd8811383e42d39e5 100644 (file)
@@ -38,6 +38,8 @@ YACC=fake-yacc; export YACC
 
 cat > Makefile.am <<'END'
 AUTOMAKE_OPTIONS = no-dependencies
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foo bar
 foo_SOURCES = foo.y main.c
 bar_SOURCES = $(foo_SOURCES)
index b1c36ef0f49a61eab7191d6fefcf4ab7cb430f38..7c865935bad495bd3a02f3df17c9d4ef1c6216b7 100644 (file)
@@ -28,6 +28,8 @@ AC_OUTPUT
 END
 
 cat > Makefile.am <<'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foo
 foo_SOURCES = foo.y
 # Don't do this in a real-life Makefile.am!
index 0e06e0d9c943f7842a7a48fd6e6d2a1c195495cb..bf34922a69b99ba99c3ef95ee7970a06a4bb4d8b 100644 (file)
@@ -29,6 +29,8 @@ END
 $ACLOCAL
 
 cat > Makefile.am <<'END'
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foo bar
 foo_SOURCES = foo.y
 bar_SOURCES = bar.y
index 1f73776f879d61470bf814f59c26c31845eb9a08..2359a76b7d069b282a5ce91985a0fdb42a79fcf7 100644 (file)
@@ -39,6 +39,8 @@ END
 
 cat > Makefile.am <<'END'
 AUTOMAKE_OPTIONS = no-dependencies
+AM_LFLAGS = --never-interactive
+
 bin_PROGRAMS = foo bar
 foo_SOURCES = main.c foo.y
 bar_SOURCES = main.c bar.y