]> git.ipfire.org Git - thirdparty/automake.git/commit
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)
commitc1f34ffe129323ec7ccebf77bc1eee89f97f971e
tree96f823890b09011bf3d88a74833d5b0fc2da04ff
parent6c10512cce14d8537b33c2026aadbdbb1ff215c8
tests: don't try to prevent flex from including unistd.h.

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