summaryrefslogtreecommitdiff
path: root/bootstrap
Commit message (Collapse)AuthorAgeFilesLines
* maint: don't update copyright years in bootstrap.Joel E. Denny2011-01-031-1/+1
| | | | | | | | | * .x-update-copyright: Add entry for bootstrap. * bootstrap: Remove 2011 from copyright years. The bootstrap version we're currently using comes from an older version of gnulib. * bootstrap.conf (bootstrap_sync): Add comments explaining this issue.
* maint: run "make update-copyright".Joel E. Denny2011-01-021-1/+1
|
* build: use gnulib's new bootstrap_sync option.Joel E. Denny2010-11-211-9/+34
| | | | | | | | Now, whenever we update bison's copy of gnulib, bootstrap will update itself the next time it's run. * bootstrap: Copy from latest gnulib for bootstrap_sync support. * bootstrap.conf (bootstrap_sync): Set to true. * gnulib: Update to latest so bootstrap is in sync now.
* maint: re-anchor all .gitignore entries.Joel E. Denny2010-10-171-5/+20
| | | | | | | | | * bootstrap: Copy from gnulib's latest for the fix to automatically anchor entries it constructs. * gnulib: Update to latest just so it has the same bootstrap. * .gitignore, build-aux/.gitignore, doc/.gitignore: * lib/.gitignore, m4/.gitignore, po/.gitignore: * runtime-po/.gitignore: Re-anchor all entries.
* Adjust to recent changes to gnulib bootstrap.Paul Eggert2010-10-081-96/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | * .cvsignore, build-aux/.cvsignore, doc/.cvsignore, etc/.cvsignore: * examples/calc++/.cvsignore, lib/.cvsignore, m4/.cvsignore: * po/.cvsignore, runtime-po/.cvsignore, src/.cvsignore: * tests/.cvsignore: Remove; I don't use CVS to maintain Bison anymore and don't know of anybody else who does. If someone needs these files, they can resurrect them. * .gitignore, build-aux/.gitignore, doc/.gitignore, lib/.gitignore: * m4/.gitignore, po/.gitignore, runtime-po/.gitignore: Omit leading '/', since bootstrap omits it. Adjust file names to match current contents better. * bootstrap: Sync from gnulib: this contains the new gnulib_mk_hook installed just for us. * bootstrap.conf (excluded_files): Don't exclude codeset.m4, glibc21.m4, inttypes_h.m4, size_max.m4, xsize.m4, as they are now needed somehow. Don't have time to look into why. (gnulib_modules): Change malloc to malloc-gnu. Do we really assume the GNU malloc behavior, where malloc (0) != NULL unless we're out of storage? If not, we can omit malloc-gnu; but for now I left it in to be safe. (vc_ignore): Remove. (gnulib_mk_hook): New function. * README-hacking: Renamed from HACKING, since gnulib bootstrap now uses that convention.
* Do not use date ranges in copyright notices.Paul Eggert2010-06-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See http://www.gnu.org/prep/maintain/maintain.html#Copyright-Notices * HACKING, Makefile.am, NEWS, PACKAGING, README, README-alpha: * TODO, bootstrap, bootstrap.conf: * build-aux/update-b4-copyright, cfg.mk, configure.ac: * data/README, data/bison.m4, data/c++-skel.m4, data/c++.m4: * data/c-skel.m4, data/c.m4, data/glr.c, data/glr.cc: * data/java-skel.m4, data/java.m4, data/lalr1.cc: * data/lalr1.java, data/local.mk, data/location.cc: * data/stack.hh, data/variant.hh, data/xslt/bison.xsl: * data/xslt/xml2dot.xsl, data/xslt/xml2text.xsl: * data/xslt/xml2xhtml.xsl, data/yacc.c, djgpp/Makefile.maint: * djgpp/README.in, djgpp/config.bat, djgpp/config.sed: * djgpp/config.site, djgpp/config_h.sed, djgpp/djunpack.bat: * djgpp/local.mk, djgpp/subpipe.c, djgpp/subpipe.h: * djgpp/testsuite.sed, doc/bison.texinfo, doc/local.mk: * doc/refcard.tex, etc/README, etc/bench.pl.in, etc/local.mk: * examples/calc++/Makefile.am, examples/extexi: * examples/local.mk, lib/abitset.c, lib/abitset.h: * lib/bbitset.h, lib/bitset.c, lib/bitset.h: * lib/bitset_stats.c, lib/bitset_stats.h, lib/bitsetv-print.c: * lib/bitsetv-print.h, lib/bitsetv.c, lib/bitsetv.h: * lib/ebitset.c, lib/ebitset.h, lib/get-errno.c: * lib/get-errno.h, lib/lbitset.c, lib/lbitset.h: * lib/libiberty.h, lib/local.mk, lib/main.c, lib/timevar.c: * lib/timevar.def, lib/timevar.h, lib/vbitset.c: * lib/vbitset.h, lib/yyerror.c, m4/bison-i18n.m4: * m4/c-working.m4, m4/cxx.m4, m4/subpipe.m4, m4/timevar.m4: * src/AnnotationList.c, src/AnnotationList.h: * src/InadequacyList.c, src/InadequacyList.h, src/LR0.c: * src/LR0.h, src/Sbitset.c, src/Sbitset.h, src/assoc.c: * src/assoc.h, src/closure.c, src/closure.h, src/complain.c: * src/complain.h, src/conflicts.c, src/conflicts.h: * src/derives.c, src/derives.h, src/files.c, src/files.h: * src/flex-scanner.h, src/getargs.c, src/getargs.h: * src/gram.c, src/gram.h, src/graphviz.c, src/ielr.c: * src/ielr.h, src/lalr.c, src/lalr.h, src/local.mk: * src/location.c, src/location.h, src/main.c: * src/muscle-tab.c, src/muscle-tab.h, src/named-ref.c: * src/named-ref.h, src/nullable.c, src/nullable.h: * src/output.c, src/output.h, src/parse-gram.y: * src/print-xml.c, src/print-xml.h, src/print.c, src/print.h: * src/print_graph.c, src/print_graph.h, src/reader.c: * src/reader.h, src/reduce.c, src/reduce.h, src/relation.c: * src/relation.h, src/scan-code.h, src/scan-code.l: * src/scan-gram.h, src/scan-gram.l, src/scan-skel.h: * src/scan-skel.l, src/state.c, src/state.h, src/symlist.c: * src/symlist.h, src/symtab.c, src/symtab.h, src/system.h: * src/tables.c, src/tables.h, src/uniqstr.c, src/uniqstr.h: * tests/actions.at, tests/atlocal.in, tests/c++.at: * tests/calc.at, tests/conflicts.at, tests/cxx-type.at: * tests/existing.at, tests/glr-regression.at: * tests/headers.at, tests/input.at, tests/java.at: * tests/local.at, tests/local.mk, tests/named-refs.at: * tests/output.at, tests/push.at, tests/reduce.at: * tests/regression.at, tests/sets.at, tests/skeletons.at: * tests/synclines.at, tests/testsuite.at, tests/torture.at: Don't use date ranges in copyright notices. Copyright (C) 1987, 1988, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
* * bootstrap: Import improvements from latest gnulib.Joel E. Denny2010-01-201-161/+316
| | | | | | | | (cherry picked from commit 73edad9a25ff7dd15f276a071a39e95bc8cca07a) Conflicts: bootstrap
* maint: run "make update-copyright"Joel E. Denny2010-01-041-2/+1
|
* bootstrap: fix/improve find_tool.Akim Demaille2009-09-031-6/+14
| | | | | * bootstrap (find_tool): Improve error messages. Fix typo about find_tool_names.
* bootstrap: --help to stdout.Akim Demaille2009-03-311-2/+2
| | | | | * bootstrap (usage): Don't send --help to stderr. Use a here doc instead of a long string.
* bootstrap: README-hacking no longer existsAkim Demaille2009-03-311-3/+3
| | | | * bootstrap (checkout_only_file): Set to HACKING.
* Convert lib/Makefile.am into lib/local.mk.Akim Demaille2008-11-261-5/+4
| | | | | | | | | | | | | | | The real problem is rather gnulib.mk, which itself is extracted from a Makefile.am that gnulib expects to the "recursive". The tool prefix-gnulib-mk converts such a gnulib.mk to be non-recursive. Also, some AC_SUBST variables need to be adjusted. * etc/prefix-gnulib-mk: New. * bootstrap (slurp): Use it to convert further gnulib.mk. * lib/Makefile.am: Rename as... * lib/local.mk: this. Adjust to be prefixed. * Makefile.am, configure.ac: Adjust. * src/local.mk (AM_CPPFLAGS): Extend it, don't define it.
* Better error message.Akim Demaille2008-11-151-2/+2
| | | | * bootstrap (find_tool): Fix the error message.
* Update for recent .gitignore fix in Gnulib.Joel E. Denny2008-08-021-6/+0
| | | | | * bootstrap: Back out 2008-07-18 hack now that gnulib-tool creates anchored .gitignore entries.
* document and support usage of git-merge-changelogPaolo Bonzini2008-07-311-0/+14
| | | | | | | | | | 2008-07-31 Paolo Bonzini <bonzini@gnu.org> Support usage of git-merge-changelog. * .gitattributes: New. * HACKING: Document usage of git-merge-changelog. * bootstrap: Install git-merge-changelog entries in .git/config if appropriate.
* Use git-version-gen for version names between releases.Joel E. Denny2008-07-181-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * .cvsignore (.tarball-version, GNUmakefile, *~): Add. * .gitignore (/.tarball-version, /GNUmakefile, /*~): Add. * .prev-version: New. * .version.in: Remove. * ChangeLog: Remove the $Id$ previously used for capturing the CVS revision. * GNUmakefile: Remove, now copied from Gnulib. * Makefile.am: Add code suggested by comments in build-aux/git-version-gen. (EXTRA_DIST): Remove GNUmakefile, handled by Gnulib. Add maint.mk, .prev-version, and .version. * NEWS (2.3b+): Rename to... (?.?): ... this because we're dropping the "+" version naming scheme, but, in general, we still can't be sure of our next release name. * bootstrap: Add a quick hack to remove from .gitignore the GNUmakefile entry that gnulib adds. We already have a /GNUmakefile entry. This should really be fixed in gnulib instead. * bootstrap.conf (gnulib_modules): Add gnumakefile. * configure.ac (AC_INIT): Set version name by invoking build-aux/git-version-gen. (AC_CONFIG_FILES): Remove .version, now generated by build-aux/git-version-gen. * maint.mk: New, copied from coreutils. * doc/.cvsignore (bison.1): Add. * doc/.gitignore (/bison.1): Add. * doc/bison.1: Remove, generated. * src/.cvsignore (revision.c): Remove. * src/.gitignore (/revision.c): Remove. * src/Makefile.am (bison_SOURCES): Remove revision.c and revision.h. (BUILT_SOURCES): Remove revision.c. (revision.c): Remove. * src/getargs.c (version): Don't print revision after the VERSION. * src/revision.h: Remove.
* Fix some .gitignore and .cvsignore problems.Joel E. Denny2008-07-161-6/+21
| | | | | | | | | | | | | | | | | | | * bootstrap (insert_sorted_if_absent): Replace all uses with... (insert_vc_ignore): ... this new function, which prepends `/' to all .gitignore entries before passing them to insert_sorted_if_absent. * bootstrap.conf (vc_ignore): Set to '.cvsignore .gitignore' so that .cvsignore files are maintained even though Bison developers run bootstrap while using Git. * .cvsignore (*.patch *.log log patches applied): Remove, apparently unneeded by Bison. (gnulib): Add. * .gitignore (/*.patch *.log log patches applied): Remove, broken and unneeded. Reported by Eric Blake. * lib/.gitignore (/*~): Add. * po/.cvsignore, runtime-po/.cvsignore: Sync with .gitignore. * examples/calc++/.gitignore (/calc++.exe): Add. Reported by Eric Blake. * src/.gitignore (/bison.exe): Add. Reported by Eric Blake.
* Update to the current gnulib CVS repository, and fix trigraph handlingJoel E. Denny2008-04-211-18/+26
| | | | | | | | | | | | | | | | | | | in Bison. * bootstrap: Update gnulib CVS repository URL. (symlink_to_dir): Encapsulate the code that guarantees the destination directory exists into... (check_dst_dir): ... this new function, and... (cp_mark_as_generated): ... reuse it here so that bootstrap doesn't fail when copying files into lib/uniwidth/. * src/output.c (prepare_symbols): When writing yytname muscles, where symbol names will be encoded in C-string literals, tell quotearg to escape trigraphs. This used to be the default in gnulib. * tests/regression.at (Token definitions): Because of the change in gnulib's quotearg behavior, string_as_id in parse-gram.y no longer escapes trigraphs in symbol names. Thus, yytname no longer has trigraphs unnecessarily doubly escaped. Update test case output. Extend test case to be sure Bison's own error messages will no longer have trigraphs in symbol names unnecessarily escaped once.
* Find sha1sum when named gsha1sum.Akim Demaille2007-11-041-10/+41
| | | | | * bootstrap (find_tool): New. ($SHA1SUM): New.
* * GNUmakefile: Switch to coreutils's version.Paul Eggert2007-09-211-78/+136
| | | | | | | | | | | | | | * bootstrap: Likewise. * Makefile.cfg: Adjust to new GNUmakefile. * README-hacking: Likewise. Import from gnulib: 2006-08-18 Paul Eggert <eggert@cs.ucla.edu> Bruno Haible <bruno@clisp.org> * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists and is a script that invokes bison. Tighten the code. Add comments.
* Update to GPLv3.Paul Eggert2007-08-151-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/gpl-3.0.texi: New file. * doc/gpl.texi: Remove. * COPYING, GNUmakefile, HACKING, Makefile.am, Makefile.cfg: * Makefile.maint, NEWS, PACKAGING, README, README-alpha: * README-hacking, TODO, bootstrap, bootstrap.conf: * configure.ac, data/Makefile.am, data/README, data/bison.m4: * data/c++-skel.m4, data/c++.m4, data/c-skel.m4, data/c.m4: * data/glr.c, data/glr.cc, data/java-skel.m4, data/java.m4: * data/lalr1.cc, data/lalr1.java, data/location.cc: * data/push.c, data/yacc.c, data/m4sugar/m4sugar.m4: * djgpp/Makefile.maint, djgpp/README.in, djgpp/config.bat: * djgpp/config.sed, djgpp/config.site, djgpp/config_h.sed: * djgpp/djunpack.bat, djgpp/subpipe.c, djgpp/subpipe.h: * djgpp/testsuite.sed, doc/Makefile.am, doc/bison.texinfo: * doc/fdl.texi, doc/refcard.tex, etc/Makefile.am, etc/README: * etc/bench.pl.in, examples/Makefile.am, examples/extexi: * examples/calc++/Makefile.am, lib/Makefile.am, lib/abitset.c: * lib/abitset.h, lib/bbitset.h, lib/bitset.c, lib/bitset.h: * lib/bitset_stats.c, lib/bitset_stats.h, lib/bitsetv-print.c: * lib/bitsetv-print.h, lib/bitsetv.c, lib/bitsetv.h: * lib/ebitset.c, lib/ebitset.h, lib/get-errno.c: * lib/get-errno.h, lib/lbitset.c, lib/lbitset.h: * lib/libiberty.h, lib/main.c, lib/subpipe.c, lib/subpipe.h: * lib/timevar.c, lib/timevar.def, lib/timevar.h: * lib/vbitset.c, lib/vbitset.h, lib/yyerror.c: * m4/c-working.m4, m4/cxx.m4, m4/m4.m4, m4/subpipe.m4: * m4/timevar.m4, src/LR0.c, src/LR0.h, src/Makefile.am: * src/assoc.c, src/assoc.h, src/closure.c, src/closure.h: * src/complain.c, src/complain.h, src/conflicts.c: * src/conflicts.h, src/derives.c, src/derives.h, src/files.c: * src/files.h, src/flex-scanner.h, src/getargs.c: * src/getargs.h, src/gram.c, src/gram.h, src/graphviz.c: * src/lalr.c, src/lalr.h, src/location.c, src/location.h: * src/main.c, src/muscle_tab.c, src/muscle_tab.h: * src/nullable.c, src/nullable.h, src/output.c, src/output.h: * src/parse-gram.c, src/parse-gram.h, src/parse-gram.y: * src/print.c, src/print.h, src/print_graph.c: * src/print_graph.h, src/reader.c, src/reader.h, src/reduce.c: * src/reduce.h, src/relation.c, src/relation.h: * src/revision.h, src/scan-code.h, src/scan-code.l: * src/scan-gram.h, src/scan-gram.l, src/scan-skel.h: * src/scan-skel.l, src/state.c, src/state.h, src/symlist.c: * src/symlist.h, src/symtab.c, src/symtab.h, src/system.h: * src/tables.c, src/tables.h, src/uniqstr.c, src/uniqstr.h: * tests/Makefile.am, tests/actions.at, tests/c++.at: * tests/calc.at, tests/conflicts.at, tests/cxx-type.at: * tests/existing.at, tests/glr-regression.at: * tests/headers.at, tests/input.at, tests/java.at: * tests/local.at, tests/output.at, tests/push.at: * tests/reduce.at, tests/regression.at, tests/sets.at: * tests/skeletons.at, tests/synclines.at, tests/testsuite.at: * tests/torture.at: Update to GPLv3.
* * bootstrap (slurp): Create target directories that don't exist.Joel E. Denny2007-07-171-1/+6
| | | | Specifically, we need lib/uniwidth/ because of recent Gnulib changes.
* * README-hacking: New file, taken mostly from coreutils, with changesPaul Eggert2007-04-041-60/+114
| | | | | | | | | | | for Bison. Contains much of the contents of: * README-cvs: Remove. * bootstrap: Sync from gnulib. * build-aux/.cvsignore: Remove *.t, mkinstalldirs. * lib/.cvsignore: Add wchar.h, wctype.h. Remove exit.h. SCALAR(0x82833fc) redefinitions.
* * bootstrap: Remove occurrences of .#bootmp from lib/Makefile.Joel E. Denny2007-02-191-1/+4
|
* Implement support for relative and absolute skeleton file names.Joel E. Denny2007-01-181-1/+1
| | | | | | | | | | | | | | | | | | | | Discussed starting at <http://lists.gnu.org/archive/html/bison-patches/2006-12/msg00071.html>. * doc/bison.texinfo (Decl Summary): Document in %skeleton entry. (Bison Options): Document in --skeleton entry. * src/output.c (output_skeleton): Use strncpy rather than strcpy since full_skeleton can't necessarily hold all of pkgdatadir. If the specified skeleton file name contains a `/', don't prepend pkgdatadir. * src/parse-gram.y (prologue_declaration): If the specified skeleton file name contains a `/', prepend the grammar file directory. * tests/Makefile.am (TESTSUITE_AT): Add skeletons.at. * skeletons.at: New file. (relative skeleton file names): New test case. (installed skeleton file names): New test case. * tests/testsuite.at: Include skeletons.at. * bootstrap: Update copyright to 2007.
* 2007-01-17 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini2007-01-171-2/+2
| | | | * bootstrap: Remove occurrences of .#bootmp from the files.
* * bootstrap: Sync from coreutils.Paul Eggert2006-12-181-5/+8
| | | | | | | (gnulib_extra_files): Add build-aux/announce.gen. (slurp): Adjust .gitignore files like .cvsignore files. * build-aux/announce-gen: Remove from CVS, since bootstrap now creates this.
* * bootstrap (runtime-po/Makevars): Derive from po/MakevarsPaul Eggert2006-11-081-10/+5
| | | | | | instead of from the template, to simplify configuration a bit. * bootstrap.conf (excluded_files): Don't exclude m4/codeset.m4 and m4/wint_t.m4, as they are needed with the latest gnulib.
* * lib/Makefile.am (AM_CFLAGS): Remove $(WERROR_CFLAGS).Paul Eggert2006-10-151-8/+23
| | | | | | | | | | | | | | | | | Problem reported by Joel E. Denny. 2006-10-14 Jim Meyering <jim@meyering.net> (Sync from coreutils.) Work also when the working directory (with e.g. coreutils sources) is version controlled with git, rather than CVS. * bootstrap (CVS_only_file): Test for the existence of README-cvs, rather than CVS. In messages and comments, say e.g., "checked-out sources", rather than "CVS sources". (version_controlled_file): New function. Work for git as well as for CVS. Don't use grep's -q option. (slurp): Call it here, in place of CVS-specific code.
* * bootstrap: Sync from coreutils, as follows:Paul Eggert2006-10-131-26/+43
| | | | | | | | | | | | | | | | | | 2006-10-11 Paul Eggert <eggert@cs.ucla.edu> * bootstrap (symlink_to_gnulib): Fix bug: the dot_dots shell variable was sometimes used without being initialized. This messed up the installation of the INSTALL file in some cases. 2006-10-09 Paul Eggert <eggert@cs.ucla.edu> * bootstrap (usage, main program, symlink_to_gnulib): Add option --copy. Inspired by a suggestion from Bruno Haible. 2006-10-03 Jim Meyering <jim@meyering.net> * bootstrap: Undo last change to this file, since now gnulib-tool sticks with the automake default in generating dependencies.
* Fix problems with translating English-language diagnostics.Paul Eggert2006-10-011-5/+10
| | | | | | | | | * bootstrap: Fix bug introduced in recent bootstrap changes, with respect to bison-runtime pot generation. The YY_ stuff wasn't being captured. * bootstrap.conf (XGETTEXT_OPTIONS_RUNTIME): New var. * po/POTFILES.in: Add src/location.c, src/scan-code.l. * runtime-po/POTFILES.in: Add data/push.c.
* Merge bootstrap changes from coreutils.Paul Eggert2006-09-301-3/+40
| | | | | | | | | | | | | | | | | | | 2006-09-28 Jim Meyering <jim@meyering.net> Automatically generated dependencies are important even when all of the sources in a directory come from gnulib. * bootstrap (gnulib_tool): Remove the "no-dependencies" automake option that gnulib-tool adds to what becomes our lib/gnulib.mk. 2006-09-23 Jim Meyering <jim@meyering.net> * bootstrap (gnulib_tool_options): Add "--local-dir gl". 2006-09-20 Paul Eggert <eggert@cs.ucla.edu> * bootstrap: Add support for --force. (usage): New function. Describe usage less tersely. (CVS_only_file): New var.
* * stamp-h.in: Remove; no longer needed.Paul Eggert2006-09-201-29/+73
| | | | | | | | | * .cvsignore: Replace autom4te.cache and config.cache with *.cache. Remove config.h, config.hin, intl (no longer created). * lib/.cvsignore: Add config.h, config.hin, configmake.h, inttypes.h, stamp-h1. Sync bootstrap from coreutils.
* Use some of gnulib's new modules, taken from coreutils.Paul Eggert2006-09-151-203/+235
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bootstrap: Sync from coreutils, except add support for gnulib_files. * bootstrap.conf: New file. (gnulib_modules): Add configmake, inttypes, unistd. (XGETTEXT_OPTIONS): Add complain, complain_at, fatal, fatal_at, warn, warn_at, unexpected_end. * configure.ac (AC_CONFIG_HEADERS): config.h is now in lib, not here. (gl_USE_SYSTEM_EXTENSIONS): Remove; gl_EARLY now does this. (gl_EARLY): Add. (AM_STDBOOL_H): Remove; gl_INIT now dows this. (gl_INIT): Add (GNULIB_AUTOCONF_SNIPPET): Remove. (AM_GNU_GETTEXT): Add; require formatstring macros since that's the pickiest. * lib/.cvsignore: Add inttypes_.h. * lib/Makefile.am: Include gnulib.mk first so we can append to it. (AM_CFLAGS): Add WERROR_CFLAGS, to be more like coreutils. (BUILT_SOURCES, EXTRA_DIST, MOSTLYCLEANFILES): Remove no-longer-necessary initializations. (lib_SOURCES): Remove, replacing by libbison_a_SOURCES. * lib/subpipe.c: Include <unistd.h> unconditionally, now that we use the unistd module. * src/system.h: Likewise. * m4/.cvsignore: Remove *_gl.m4, gnulib.m4, inttypes_h.m4, uintmax_t.m4, ulonglong.m4. Add gettext.m4, gnulib-cache.m4, gnulib-comp.m4, gnulib-tool.m4, inttypes-h.m4, inttypes-pri.m4, inttypes.m4. * src/Makefile.am (DEFS): Remove, since configmake does this for us. (AM_CPPFLAGS): Remove -I../lib, since Automake does that for us. * src/system.h: Include inttypes.h unconditionally, now that we use the inttypes module. Don't bother to include stdint.h, since inttypes.h now does that for us. (LOCALEDIR): Remove, now that we use the configmake module. * src/getargs.c: Include configmake.h. * src/main.c: Likewise. * src/output.c: Likewise. * tests/atlocal.in (CPPFLAGS): Include from $abs_top_builddir/lib, not from $abs_top_builddir, since config.h moved.
* * bootstrap: Put in need-ngettext argument to AM_GNU_GETTEXT,Paul Eggert2006-08-111-4/+17
| | | | | | | | to prevent failures when building on older platforms. Check for autopoint failure. Set XGETTEXT_OPTIONS to values that check for C format strings, so that translators are warned about them (this also helps prevent core dumps).
* * m4/.cvsignore: Add inttypes_h.m4,lib-ld.m4, lib-prefix.m4,Paul Eggert2006-08-021-3/+3
| | | | | | | | | po.m4, stdint_h.m4, uintmax_t.m4, ulonglong.m4, warning.m4. * bootstrap (gnulib_tool): Stop using --assume-autoconf; the latest gnulib does this a different way. (get_translations): Sharuzzaman Ahmat Raslan reported that the ms translation was patched, so stop omitting it.
* Update to latest gnulib and gettext versions.Paul Eggert2006-07-251-37/+32
| | | | | | | | | | | | | | | | | | | | | | | | * bootstrap (gnulib-modules): Remove hard-locale, stdio-safer. Add fopen-safer. (gnulib_files): Add m4/warning.m4. Don't worry about files overwritten by autopoint. Replace gt_INTL_SUBDIR_CORE with an empty body in m4/gettext_gl.m4. Suppress "id", "ms", "tr" translations for now, since gettext 0.15 rejects them. Don't use autoreconf; instead, invoke autopoint etc. by hand, so that we can remove the intl files at a better time. (intl_files_to_remove): Remove aclocal.m4, since it gets rebuilt anyway. Remove m4/inttypes_h.m4, m4/inttypes.m4, m4/isc-posix.m4, m4/lib-ld.m4, m4/lib-prefix.m4, m4/po.m4, m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4. Add m4/inttypes-h.m4, m4/lock.m4, m4/visibility.m4. Remove datarootdir hack; no longer needed. * configure.ac: Use gl_WARNING_CFLAGS rather than BISON_WARNING. (AM_GNU_GETTEXT_VERSION): Bump from 0.12 to 0.15. * lib/.cvsignore: Remove hard-locale.c, hard-locale.h, strdup.c, strdup.h. * m4/.cvsignore: Remove hard-locale.m4, strdup.m4. * m4/warning.m4: Remove from CVS, since we now use gnulib's version.
* * bootstrap: Adjust to today's change to gnulib-tool by invokingPaul Eggert2006-07-201-4/+5
| | | | it with --assume-autoconf='latest-stable'.
* Adjust to Autoconf 2.60 and today's gnulib.Paul Eggert2006-07-091-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bootstrap (gnulib_modules): Add stdint. Remove special case for m4/onceonly_2_57.m4, since gnulib-tool no longer copies it. (intl_files_to_remove): Remove m4/longlong.m4 and m4/wchar_t.m4, since stdint needs the former and wcwidth (which is now required by mbswidth) needs the latter. Append 'datarootdir = @datarootdir@' to po/Makefile.in.in, to work around a compatibility glitch between gettext 0.14.6 and Autoconf 2.60. * configure.ac (AC_PREREQ): Require Autoconf 2.60. Do not check for uintptr_t, since new stdint module does the right thing. * lib/.cvsignore: Remove alloca.c, alloca.h, alloca_.h. Add stdint.h, stdint_.h, wcwidth.h. * m4/.cvsignore: Remove alloca.m4, onceonly.m4. Add absolute-header.m4, double-slash-root.m4, longlong.m4, stdint.m4, wchar_t.m4, wcwidth.m4. * src/files.c: Include <dirname.h> and <stdio-safer.h> in the usual order for ../lib/*.h files. (file_name_split): Use last_component, not base_name, to adjust to gnulib changes. * src/parse-gram.h: Include <strverscmp.h> in the usual order for ../lib/*.h files. (YYTYPE_INT16, YYTYPE_INT8, YYTYPE_UINT16, YYTYPE_UINT8): Define unconditionally, since we now assume the stdint module. * src/scan-skel.l: Include <dirname.h>. (BASE_QPUTS): Use last_component, not base_name. * src/system.h: Include <unlocked-io.h> in the usual order for ../lib/*.h files. Include <stdint.h> unconditionally, since we now use the stdint module. (uintptr_t): Declare if UINTPTR_MAX is not defined, not HAVE_UINTPTR_T, since we now use the stdint module. (base_name): Remove decl, since files now include <dirname.h> to get the decl.
* * bootstrap (TP_URL, WGET_COMMAND): New vars.Paul Eggert2006-06-191-42/+36
| | | | | | | | (get_translations): New function, which uses HTML scraping to deduce locations of latest translations. Use this function to grab both bison and bison-runtime .po files. Don't bother priming the pump for the runtime-po domain any more, as it's now translated better than bison is.
* * bootstrap: Comment out the AM_CPPFLAGS line, since we don't usePaul Eggert2006-04-251-1/+2
| | | | that variable and the line breaks the bootstrap.
* Undo changes to gnulib files that autoreconf made.Paul Eggert2006-01-201-1/+10
|
* (build_cvs_prefix): Remove; unused.Paul Eggert2005-12-121-11/+4
| | | | | (CVS_PREFIX): Adjust to yesterday's Savannah reorganization when getting gnulib.
* * bootstrap (cleanup_gnulib): New function. Use it to clean upPaul Eggert2005-10-311-5/+11
| | | | | | gnulib when interrupted. This fixes some race conditions and works around some portability problems (one noted by Paul Hilfinger).
* Use unlocked I/O for a minor performance improvement on hosts likePaul Eggert2005-10-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | GNU/Linux and Solaris that support unlocked I/O. The basic idea is to use the gnlib unlocked-io module, and to prefer putc and puts to printf when either will work (since the latter doesn't come in an unlocked flavor). * bootstrap (gnulib_modules): Add unlocked-io. * data/c.m4 (yysymprint): Prefer puts and putc to printf. * data/glr.c (YYFPUTC, YYFPUTS, YYDPUTS): New macros. Prefer them to YYFPRINTF and YYDPRINTF if either will do, and similarly for puts and putc and printf. * data/yacc.c: Likewise. * lib/bitset.c (bitset_print): Likewise. * lib/bitset.h [USE_UNLOCKED_IO]: Include unlocked-io.h. * lib/bitsetv.c (bitsetv_dump, debug-bitsetv): Prefer putc and puts to printf. * lib/lbitset.c (debug_lbitset): Likewise. * src/closure.c (print_firsts, print_fderives): Likewise. * src/gram.c (grammar_dump): Likewise. * src/lalr.c (look_ahead_tokens_print): Likewise. * src/output.c (escaped_output): Likewise. (user_actions_output): Coalesce two printfs. * src/parse-gram.h (%printer): Prefer putc and puts to printf. * src/reduce.c (reduce_print): Likewise. * src/state.c (state_rule_look_ahead_tokens_print): Likewise. * src/system.h: Include unlocked-io.h rathe than stdio.h.
* * bootstrap (gnulib_modules): Add strverscmp.Akim Demaille2005-10-021-0/+1
| | | | | | | | | | | | * lib/.cvsignore: Add strverscmp.c, strverscmp.h. * m4/.cvsignore: Add strverscmp.m4. * src/parse-gram.y (%require): New token, new rule. (version_check): New. * src/scan-gram.l (%require): Adjust. * tests/input.at (AT_REQUIRE): New. Use it. * doc/bison.texinfo (Require Decl): New. (Calc++ Parser): Use %require.
* Port to SunOS 4.1.4, which lacks strtoul and strerror.Paul Eggert2005-09-291-0/+2
| | | | | | * bootstrap (gnulib_modules): Add strerror, strtoul. * lib/.cvsignore: Add strerror.c, strtol.c, strtoul.c * m4/.cvsignore: Add strerror.m4, strtol.m4, strtoul.m4.
* * bootstrap (gnulib_modules): Add verify.Paul Eggert2005-09-271-0/+1
| | | | | | | | * lib/.cvsignore: Add verify.h. * src/getargs.c: Use ARGMATCH_VERIFY rather than verify. * src/system.h (verify): Remove. Include verify.h instead. * src/tables.c (tables_generate): Use new API for 'verify'.
* More alloca cleanups.Paul Eggert2005-09-211-1/+0
| | | | | | | | | | | | | | * bootstrap (gnulib_modules): Remove alloca. Bison doesn't need it itself. * src/main.c (main) [C_ALLOCA]: Don't flush alloca'ed memory; we don't use alloca any more. * data/yacc.c [YYSTACK_USE_ALLOCA && !defined __GNUC__ && ! defined __BUILTIN_VA_ARG_INCR && ! defined _AIX && ! defined _MSC_VER && (defined alloca || defined _ALLOCA_H)]: Don't include <stdlib.h>; not needed in this case. * tests/torture.at (Exploding the Stack Size with Alloca): Adjust to match yacc.c, to test more hosts.
* Undo previous change, then add comment as to why thePaul Eggert2005-09-081-0/+8
| | | | AM_LANGINFO_CODESET hack is needed.