summaryrefslogtreecommitdiff
path: root/bootstrap.conf
Commit message (Collapse)AuthorAgeFilesLines
* build: use gnulib's iswctype wcscollJim Meyering2011-12-121-0/+2
| | | | | | | | | * bootstrap.conf (gnulib_modules): Add iswctype and wcscoll. * configure.ac: Remove explicit checks for those functions. * src/mbsupport.h (MBS_SUPPORT): Define to 1 if not already defined. Remove the conditional, now that we're guaranteed by gnulib to have wcscoll and iswctype. Suggested by Alan Hourihane in http://savannah.gnu.org/bugs/?34930
* build: use largefile module and update to latest gnulibJim Meyering2011-08-201-0/+1
| | | | | | * configure.ac: Remove AC_SYS_LARGEFILE, subsumed by ... * bootstrap.conf (gnulib_modules): ...this. Use largefile module. * gnulib: Update to latest.
* exit 2 (rather than infloop) when an input file is also on stdoutJim Meyering2011-07-241-1/+2
| | | | | | | | | | | | | | | | | This avoids a potential "infinite" disk-filling loop. Reported in http://savannah.gnu.org/patch/?5316 and http://savannah.gnu.org/bugs/?17457. * src/main.c: Include "quote.h". (out_stat): New global. (grepfile): Compare each regular file's dev/ino/etc. with those from the file on stdout (if it too is regular). (main): Set out_stat, if stdout is a regular file. * src/system.h: Include "same-inode.h". (same_file_attributes): Define. From diffutils. (SAME_REGULAR_FILE): Define. * bootstrap.conf (gnulib_modules): Use quote, not quotearg. Use same-inode. * NEWS (Bug fixes): Mention it.
* build: avoid configure/gnulib-related errorsJim Meyering2011-06-211-32/+0
| | | | | * bootstrap.conf: Remove now-unnecessary code to exclude gettext/intl-related m4 tests.
* gnulib: adjust included modulesPaolo Bonzini2011-06-071-2/+1
| | | | | * bootstrap.conf (gnulib_modules): Drop strtoul, rename wctype to wctype-h.
* maint: use gnulib's new readme-release moduleJim Meyering2011-05-071-0/+2
| | | | | | | | * bootstrap.conf (gnulib_modules): Add readme-release. (bootstrap_epilogue): Add the recommended perl one-liner. * README-release: Remove file; it is now generated from gnulib. * .gitignore: Add it. * gnulib: Update submodule to latest.
* maint: remove now-unnecessary use of gnulib's strtol moduleJim Meyering2011-05-011-1/+0
| | | | * bootstrap.conf (gnulib_modules): Remove now-obsolete "strtol".
* maint: update copyright year ranges to include 2011Jim Meyering2011-01-031-1/+1
| | | | Run "make update-copyright", so "make syntax-check" works in 2011.
* maint: avoid obsolete gnulib modulesJim Meyering2010-09-211-3/+2
| | | | | * bootstrap.conf (gnulib_modules): Don't use obsolete atexit module. Use malloc-gnu and realloc-gnu -- malloc and realloc are obsolete.
* maint: use gnulib's standard --version-printing codeJim Meyering2010-08-301-0/+2
| | | | | | | | This includes author names and keeps the copyright year up to date. * bootstrap.conf (gnulib_modules): Add propername and version-etc-fsf. * src/main.c (AUTHORS): Define. (main): Use version_etc, rather than hard-coding the copyright text. Prompted by a patch from Paolo Bonzini.
* search: fix "grep -Fif /dev/null"Paolo Bonzini2010-08-271-0/+1
| | | | | | * bootstrap.conf: Include gnulib module minmax. * src/searchutils.c (mbtolower): Handle *N == 0 case. * src/system.h: Include minmax.h from gnulib.
* build: use latest gettext: 0.18Jim Meyering2010-05-261-1/+1
| | | | | | | * configure.ac: Use gettext-0.18. * bootstrap.conf (gnulib_modules): Use gettext-h, not gettext. since the latter drags in a depedency on gettext 0.18. Suggested by Bruno Haible.
* build: use gnulib's isblank moduleJim Meyering2010-04-081-0/+1
| | | | | * bootstrap.conf (gnulib_modules): Use gnulib's isblank module, now that we rely on the function by that name.
* maint: use argmatch, for better --directories=INVAL diagnosticsJim Meyering2010-04-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | Before, you'd see this: grep: unknown directories method Now, you'll see this: grep: invalid argument `INVAL' for `--directories' Valid arguments are: - `read' - `recurse' - `skip' Usage: src/grep [OPTION]... PATTERN [FILE]... Try `src/grep --help' for more information. * bootstrap.conf: Add argmatch. * configure.ac: Define ARGMATCH_DIE and ARGMATCH_DIE_DECL. * src/main.c (directories_type): Define. (directories_args, directories_types) Define. All of the above so we can... (main): Use XARGMATCH. (usage): Declare extern, now that argmatch calls it via ARGMATCH_DIE.
* cleanup and improvement: parse command line arguments consistentlyJim Meyering2010-04-021-0/+1
| | | | | | | | | | | | * src/main.c: Include c-ctype.h, for this: (prepend_args): Use c_isspace, not ISSPACE. This is important so that we parse arguments consistently, and independently of the current locale. * bootstrap.conf (gnulib_modules): Add c-ctype. * src/system.h: Remove IS* definitions here, too. * src/dfasearch.c (WCHAR): Use isalnum, not ISALNUM. * src/kwsearch.c (WCHAR): Likewise. * src/searchutils.c (kwsinit): Use tolower, not TOLOWER.
* portability: use gnulib's lseek wrapperJim Meyering2010-03-241-0/+1
| | | | | | * bootstrap.conf (gnulib_modules): Use gnulib's lseek wrapper, for improved portability. lseek does not fail with ESPIPE on pipes on some systems.
* build: avoid link failure on Solaris 8Jim Meyering2010-03-241-0/+1
| | | | | | * bootstrap.conf (gnulib_modules): Add wctob. * NEWS (Portability): Mention this. Reported by Dagobert Michelsen in <http://sv.gnu.org/bugs/?29325>.
* build: use the fcntl-h module, not "fcntl"Jim Meyering2010-03-211-1/+1
| | | | | * bootstrap.conf (gnulib_modules): We might need fcntl.h somewhere, but don't use the fcntl function. Reported by Bruno Haible.
* build: avoid link failure on systems using gnulib's fcntl but not openJim Meyering2010-03-211-0/+1
| | | | | | | * bootstrap.conf (gnulib_modules): Using gnulib's fcntl module and including <fcntl.h>, but not also using gnulib's "open" module would result in link failure due to references to rpl_open on systems requiring the replacement (e.g., Cygwin and Darwin).
* maint: use gnulib's fcntl module, just in caseJim Meyering2010-03-211-0/+1
| | | | | * bootstrap.conf (gnulib_modules): Add fcntl. Grep uses at least O_BINARY, which may be defined therein.
* maint: remove TYPE_* definitions from src/system.hJim Meyering2010-03-211-0/+1
| | | | | | | * src/system.h (TYPE_MAXIMUM, TYPE_MINIMUM, TYPE_SIGNED): Remove definitions. They are provided by intprops.h. * src/grep.c: Include "intprops.h" * bootstrap.conf (gnulib_modules): Add intprops.
* build: stop using gnulib's memmove moduleJim Meyering2010-03-201-1/+0
| | | | * bootstrap.conf (gnulib_modules): Remove obsolete module: memmove
* build: reinstate gnulib's fcntl-h-testsJim Meyering2010-03-201-1/+0
| | | | | * bootstrap.conf (gnulib_tool_option_extras): Do not avoid the fcntl-h-tests. I cannot reproduce the failure.
* build: update gnulib submodule to latestJim Meyering2010-03-201-0/+1
| | | | | | | | | This pulls in the latest regex module from gnulib, including a fix to make it honor the RE_NO_EMPTY_RANGES syntax bit. tests: temporarily disable irrelevant-to-grep failing C++ fcntl-h-tests * bootstrap.conf (gnulib_tool_option_extras): Temporarily add --avoid=fcntl-h-tests, until the C++ part of that test is fixed.
* build: record build-from-clone tool requirementsJim Meyering2010-03-091-0/+13
| | | | | | * bootstrap.conf (buildreq): This makes bootstrap fail with a clear explanation of the problem. Otherwise, you'd get into the build process and fail with something far more cryptic.
* maint: use regex from gnulib, rather than our bit-rotting oneJim Meyering2010-02-031-0/+1
| | | | | | | | | | * bootstrap.conf (gnulib_modules): Add regex. * configure.ac: Don't use jm_INCLUDED_REGEX. Update use of cache variable. * lib/regex.c: Remove file. * lib/regex.h: Likewise. * m4/regex.m4: Likewise. * POTFILES.in: Update to match.
* build: add configure-time --enable-gcc-warnings option; avoid warningsJim Meyering2010-01-061-0/+1
| | | | | | | * bootstrap.conf (gnulib_modules): Add "manywarnings" module. * configure.ac: Add --enable-gcc-warnings, derived from code in bison. * src/Makefile.am (AM_CFLAGS): Set to $(WARN_CFLAGS) $(WERROR_CFLAGS) * lib/Makefile.am (AM_CFLAGS): Likewise, but append.
* maint: avoid compilation warningsJim Meyering2010-01-061-0/+1
| | | | | | | | | | | | * bootstrap.conf (gnulib_modules): Add ignore-value. * src/search.c (check_multibyte_string_no_icase): A variant of check_multibyte_string that does *not* convert case, and hence does not modify its BUF parameter. (check_multibyte_string): Use xcalloc in place of xmalloc+memset. Use ignore_value to ignore the return value from wcrtomb. This is ok, since we know the input is a valid upper case wide character. (Fexecute, EGexecute): Update callers of check_multibyte_string to use both it and check_multibyte_string_no_icase.
* maint: avoid warnings about unused fwrite return valueJim Meyering2010-01-061-0/+1
| | | | | * bootstrap.conf (gnulib_modules): Add unlocked-io. * src/system.h: Include "unlocked-io.h".
* build: run gnulib's tests, tooJim Meyering2010-01-051-0/+10
| | | | | | | | * Makefile.am (SUBDIRS): Add gnulib-tests. * gnulib-tests/Makefile.am: New file. * bootstrap.conf (bootstrap_epilogue): New function, from coreutils. (gnulib_tool_option_extras): Define. * configure.ac: Add gnulib-tests/Makefile.
* maint: update all FSF copyright year lists to include 2010Jim Meyering2010-01-011-1/+1
| | | | | | Use this command: git ls-files |grep -vE '^(\..*|COPYING|gnulib)$' |xargs \ env UPDATE_COPYRIGHT_USE_INTERVALS=1 build-aux/update-copyright
* maint: use gnulib's progname module; enable set_program_name checkJim Meyering2009-11-301-0/+1
| | | | | | | | * bootstrap.conf (gnulib_modules): Add progname. * src/grep.c: Include "progname.h". (program_name): Remove declaration. (main): Call set_program_name. * cfg.mk (local-checks-to-skip): Add sc_program_name.
* build: add several build- and release-related gnulib modulesJim Meyering2009-11-301-0/+8
| | | | | | * bootstrap.conf (gnulib_modules): Add announce-gen update-copyright do-release-commit-and-tag git-version-gen gnu-web-doc-update gnupload maintainer-makefile useless-if-before-free
* build: get more lib/* files from gnulib, adjust savedirJim Meyering2009-11-301-0/+5
| | | | | | | | | | | | | | * bootstrap.conf (gnulib_modules): Add the following: closeout exclude hard-locale isdir strtoumax. * lib/.gitignore, m4/.gitignore: Update. * lib/closeout.c, lib/closeout.h: Remove. * lib/exclude.c, lib/exclude.h: Remove. * lib/hard-locale.c, lib/hard-locale.h: Remove. * lib/strtoumax.c: Remove. * lib/isdir.c: Remove. * lib/Makefile.am: Remove here, too. * lib/savedir.c: Adapt to new exclude module: s/excluded_filename/excluded_file_name/ and remove 3rd argument.
* maint: generate ChangeLog from git logsJim Meyering2009-11-301-0/+4
| | | | | | | | | * Makefile.am (dist-hook, gen-ChangeLog): New rules. * bootstrap.conf (gnulib_modules): Add gitlog-to-changelog. Ensure that ChangeLog exists. * ChangeLog-2009: Rename from ChangeLog * ChangeLog: Remove file. * .gitignore: Add ChangeLog.
* maint: list gnulib modules one per lineJim Meyering2009-11-301-6/+40
| | | | * bootstrap.conf (gnulib_modules): List them one per line.
* replace AC_DOSFILE with gnulib modulesPaolo Bonzini2009-11-261-2/+2
| | | | | | | | * bootstrap.conf: Add binary-io, dirname. * configure.ac: Remove check for setmode, AC_DOSFILE. * m4/dosfile.m4: Remove. * src/grep.c: Adjust for dirname.h. * src/system.h: Adjust for new gnulib modules.
* replace AC_CHECK_* with gnulib modulesPaolo Bonzini2009-11-261-3/+5
| | | | | | | | | | | | | | | | * bootstrap.conf: Add gnulib modules for replacement functions and headers. * configure.ac: Remove macros subsumed by gnulib. * lib/hard-locale.c: Remove guards for headers/functions provided by gnulib. * lib/regex.c: Likewise. * lib/savedir.c: Likewise. * src/dfa.c: Likewise. * src/dfa.h: Do not look at PROTOTYPES. * src/grep.c: Likewise. * src/mbsupport.h: Likewise. * src/system.h: Likewise. * m4/mbstate_t.m4: Remove. * src/getpagesize.h: Remove.
* add gnulib modulesPaolo Bonzini2009-11-261-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bootstrap.conf: Add gnulib modules and build libgreputils.a. * configure.ac: Remove macros subsumed by gnulib. * lib/Makefile.am: Remove files subsumed by gnulib. * lib/alloca.c: Remove. * lib/atexit.c: Remove. * lib/error.c: Remove. * lib/error.h: Remove. * lib/fnmatch.c: Remove. * lib/fnmatch.h: Remove. * lib/getopt.c: Remove. * lib/getopt.h: Remove. * lib/getopt1.c: Remove. * lib/gettext.h: Remove. * lib/malloc.c: Remove. * lib/memchr.c: Remove. * lib/obstack.c: Remove. * lib/obstack.h: Remove. * lib/quotearg.c: Remove. * lib/quotearg.h: Remove. * lib/realloc.c: Remove. * lib/stpcpy.c: Remove. * lib/strtol.c: Remove. * lib/strtoul.c: Remove. * lib/strtoull.c: Remove. * lib/xalloc.h: Remove. * lib/xmalloc.c: Remove. * lib/xstrtol.c: Remove. * lib/xstrtol.h: Remove. * lib/xstrtoumax.c: Remove. * m4/error.m4: Remove. * m4/inttypes_h.m4: Remove. * m4/malloc.m4: Remove. * m4/realloc.m4: Remove. * m4/uintmax_t.m4: Remove. * m4/ulonglong.m4: Remove. * m4/xstrtoumax.m4: Remove. * src/system.h: Remove strerror, sys_nerr, sys_errlist.
* add gnulibPaolo Bonzini2009-11-261-0/+62
* bootstrap: Use gnulib's build-aux/bootstrap. * configure.ac: Add gl_INIT and gl_EARLY.