summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2020-07-15 13:29:29 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2020-07-15 13:30:56 -0700
commitd45c2e2f5b8af08c1d0fe3164612a6d2057ea112 (patch)
tree9379836b507d1938c805dad895a187f0598924d2
parente70c99a92f3d01999565aa6ba0ab95df9df92fe4 (diff)
downloadautoconf-d45c2e2f5b8af08c1d0fe3164612a6d2057ea112.tar.gz
Revert mistaken patch for Bison
Problem reported by Bruno Haible in: https://savannah.gnu.org/support/?110266 * lib/autoconf/programs.m4 (AC_PROG_YACC): Go back to using bison -y instead of bison -o y.tab.c.
-rw-r--r--NEWS4
-rw-r--r--doc/autoconf.texi2
-rw-r--r--lib/autoconf/programs.m44
3 files changed, 3 insertions, 7 deletions
diff --git a/NEWS b/NEWS
index 49361280..3c5dfec2 100644
--- a/NEWS
+++ b/NEWS
@@ -104,10 +104,6 @@ GNU Autoconf NEWS - User visible changes.
- AC_PROG_CC_STDC, AC_PROG_CC_C89, AC_PROG_CC_C99 have been marked as obsolete.
Applications should use AC_PROG_CC.
-- AC_PROG_YACC now uses 'bison -o y.tab.c' instead of 'bison -y', so that
- by default it no longer warns about Bison extensions. Add -Wyacc to
- YFLAGS to enable these warnings.
-
- AC_USE_SYSTEM_EXTENSIONS now enables more extensions on HP-UX,
macOS, and MINIX, as well as on systems conforming to recent
ISO/IEC C technical reports and specifications.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 64129db2..c8d3cb6c 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -4287,7 +4287,7 @@ and is cached in the @code{ac_cv_path_SED} variable.
@ovindex YACC
@caindex prog_YACC
If @code{bison} is found, set output variable @code{YACC} to @samp{bison
--o y.tab.c}. Otherwise, if @code{byacc} is found, set @code{YACC} to
+-y}. Otherwise, if @code{byacc} is found, set @code{YACC} to
@samp{byacc}. Otherwise set @code{YACC} to @samp{yacc}.
The result of this test can be influenced by setting the variable
@code{YACC} or the cache variable @code{ac_cv_prog_YACC}.
diff --git a/lib/autoconf/programs.m4 b/lib/autoconf/programs.m4
index 9deb62e8..43f3b14e 100644
--- a/lib/autoconf/programs.m4
+++ b/lib/autoconf/programs.m4
@@ -899,10 +899,10 @@ AN_PROGRAM([yacc], [AC_PROG_YACC])
AN_PROGRAM([byacc], [AC_PROG_YACC])
AN_PROGRAM([bison], [AC_PROG_YACC])
AC_DEFUN([AC_PROG_YACC],
-[AC_CHECK_PROGS(YACC, 'bison -o y.tab.c' byacc, yacc)dnl
+[AC_CHECK_PROGS(YACC, 'bison -y' byacc, yacc)dnl
AC_ARG_VAR(YACC,
[The `Yet Another Compiler Compiler' implementation to use. Defaults to
-the first program found out of: `bison -o y.tab.c', `byacc', `yacc'.])dnl
+the first program found out of: `bison -y', `byacc', `yacc'.])dnl
AC_ARG_VAR(YFLAGS,
[The list of arguments that will be passed by default to $YACC. This script
will default YFLAGS to the empty string to avoid a default value of `-d' given