summaryrefslogtreecommitdiff
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* build: make the autoconf-2.63 requirement explicitJim Meyering2018-12-151-1/+1
| | | | | | * configure.ac: AC_PREREQ: Require 2.63, not 2.59. And quote properly. Autoconf-2.63 has been required for some time via gnulib. This merely makes it explicit.
* maint: update URLsPaul Eggert2018-04-211-1/+1
| | | | | Mostly this is just changing http: to https:. In one or two places it removes no-longer-useful URLs.
* maint: update gnulib and copyright dates for 2018Jim Meyering2018-01-061-1/+1
| | | | | | * gnulib: Update to latest. * all files: Run "make update-copyright". * bootstrap: Update from gnulib.
* build: suppress sig-handler.h's -Wcast-function-type warningJim Meyering2017-12-171-0/+1
| | | | | | | | | | | * configure.ac (WERROR_CFLAGS): Add -Wno-cast-function-type to suppress warning about sig-handler.h's sa_handler_t cast: sig-handler.h: In function 'get_handler': sig-handler.h:47:12: error: cast between incompatible function\ types from 'void (* const)(int, siginfo_t *, void *)'\ {aka 'void (* const)(int, struct <anonymous> *, void *)'}\ to 'void (*)(int)' [-Werror=cast-function-type] return (sa_handler_t) a->sa_sigaction;
* maint: update gnulib and copyright dates for 2017Jim Meyering2017-01-011-1/+1
| | | | | * gnulib: Update to latest. * all files: Run "make update-copyright".
* grep: simplify by using PRIuMAXPaul Eggert2016-11-191-6/+0
| | | | | * configure.ac (HAVE_PRINTF_C99_SIZES): Remove; no longer needed. * src/grep.c (print_offset): Simplify (Bug#24451).
* grep: use 'j' intmax_t printf length modifier if supportedZev Weiss2016-10-201-0/+6
| | | | | | | | * configure.ac: Use gl_PRINTF_SIZES_C99 to test printf and (conditionally) define HAVE_PRINTF_C99_SIZES. * src/grep.c (print_offset): Use printf("%j...") for printing [u]intmax_t if HAVE_PRINTF_C99_SIZES is defined; otherwise continue using the existing hand-rolled loop.
* build: reword .git old-GCC warningPaul Eggert2016-09-271-1/+1
| | | | | | * configure.ac (gl_gcc_warnings): Reword diagnostic. Suggested by Assaf Gordon in: http://lists.gnu.org/archive/html/grep-devel/2016-09/msg00024.html
* build: port .git builds to newer GCCPaul Eggert2016-09-271-3/+1
| | | | | | * configure.ac (gl_gcc_warnings): Omit duplicate copy of 'main'. Problem reported by Assaf Gordon in: http://lists.gnu.org/archive/html/grep-devel/2016-09/msg00024.html
* build: port .git builds to older GCCPaul Eggert2016-09-271-4/+11
| | | | | | | Problem reported by Dagobert Michelsen in: http://lists.gnu.org/archive/html/grep-devel/2016-09/msg00018.html * configure.ac (gl_gcc_warnings): Default to false if .git exists but GCC is too old.
* tests: add coreutils' perl-driven test frameworkJim Meyering2016-07-241-0/+7
| | | | | | | | | | | | * configure.ac: Set the AM_CONDITIONAL variable, HAVE_PERL. * tests/Coreutils.pm: New file. * tests/CuSkip.pm: New file. * tests/CuTmpdir.pm: New file. * tests/no-perl: New file. * tests/Makefile.am: Set up to use .pl tests: (TEST_EXTENSIONS, TESTSUITE_PERL, TESTSUITE_PERL_OPTIONS): Define. (SH_LOG_COMPILER, PL_LOG_COMPILER): Define. (EXTRA_DIST): Add the four new file names.
* maint: update copyright year, bootstrap, init.shJim Meyering2016-01-011-1/+1
| | | | | | | | Run "make update-copyright" and then... * gnulib: Update to latest. * tests/init.sh: Update from gnulib. * bootstrap: Likewise.
* build: use pkg-config (if available) to configure libpcrePaul Eggert2015-04-061-0/+1
| | | | | | | | | | | | | Problem reported by Mike Frysinger in: http://bugs.gnu.org/16757 * bootstrap.conf (bootstrap_post_import_hook): Copy pkg-config's pkg.m4. * configure.ac: Invoke PKG_PROG_PKG_CONFIG. * m4/pcre.m4 (gl_FUNC_PCRE): Rewrite to use pkg-config if available, and to test that pcre_compile can be linked to. * src/Makefile.am (AM_CFLAGS): Add PCRE_CFLAGS. (grep_LDADD): Add PCRE_LIBS. * src/pcresearch.c: Simply include <pcre.h> if HAVE_LIBPCRE, since 'configure' arranges for the appropriate -I option now.
* maint: update copyright year ranges to include 2015Jim Meyering2015-01-011-1/+1
| | | | | Run "make update-copyright". Also, ... * grep.texi: Update manually, converting each "--" to "-".
* build: port to GCC 4.6.4 + glibc 2.5Paul Eggert2014-11-111-3/+4
| | | | | | | | | | On platforms this old, building with _FORTIFY_SOURCE equal to 2 results in duplicate definitions of standard library functions. Problem reported by Nelson H. F. Beebe. * configure.ac (_FORTIFY_SOURCE): Sort after GNULIB_PORTCHECK. By default, do not enable this unless GNULIB_PORTCHECK is defined. This better matches the original intent, which as I recall was to enable these extra checks only with --enable-gcc-warnings.
* grep: improve performance for older glibcPaul Eggert2014-09-161-0/+5
| | | | | | | | | glibc has a bug where mbrlen and mbrtowc mishandle length-0 inputs. Working around it in gnulib slows grep down, so disable the tests for it and make sure grep works even if the bug is present. * bootstrap.conf (avoided_gnulib_modules): Add mbrtowc-tests. * configure.ac (gl_cv_func_mbrtowc_empty_input): Assume yes. * src/searchutils.c (mb_next_wc): Don't invoke mbrtowc on empty input.
* build: avoid -Wstack-protectorPaul Eggert2014-06-171-0/+1
| | | | | | | | This allows the use of --enable-gcc-warnings on Gentoo and Ubuntu. See: http://bugs.gnu.org/17793 * configure.ac (WERROR_CFLAGS): Avoid -Wstack-protector. This can be worked around, but the cure is worse than the disease.
* dist: don't distribute lib/colorize.cPaul Eggert2014-05-241-1/+2
| | | | | | | | | | | 'configure' creates this file, so it shouldn't be distributed; see: http://bugs.gnu.org/17480 * configure.ac (COLORIZE_SOURCE): New macro. Don't use AC_CONFIG_LINKS for lib/colorize.c. * lib/Makefile.am (nodist_libgreputils_a_SOURCES): New macro. (libgreputils_a_SOURCES): Remove colorize.c. (CLEANFILES): Add colorize.c (colorize.c): New rule.
* build: suppress unsafe-loop-optimizations warningsPaul Eggert2014-04-241-0/+1
| | | | | | | | I ran into one of these while trying out GCC 4.9.0's new -fsanitize=undefined option. The warning told me that GCC didn't do an unsafe optimization, but in 'grep' this is not typically a symptom of a programming error. * configure.ac (WERROR_CFLAGS): Suppress -Wunsafe-loop-optimizations.
* build: reenable some compiler warning optionsJim Meyering2014-04-191-24/+2
|
* dfa: fix pointer type conversion bugPaul Eggert2014-04-181-1/+0
| | | | | | | | | | | | | The code converted between size_t * and ptrdiff_t *, which wasn't diagnosed by modern x86-64 GCC but isn't portable. Problem reported by Norihiro Tanaka in <http://bugs.gnu.org/17136#31>. * configure.ac (WERROR_CFLAGS): Don't add -Wno-pointer-sign. We want GCC to diagnose pointer signedness problems, as they violate the C standard and other compilers no doubt complain too. * src/dfa.c (struct dfa): Change type of salloc to size_t. (realloc_trans_if_necessary): Convert signed value to size_t before passing its address to x2nrealloc. Changing the type of tralloc to size_t might have led to problems elsewhere.
* maint: update copyright dates for 2014Jim Meyering2014-01-011-1/+1
| | | | Do that by running "make update-copyright".
* maint: avoid automake deprecation warning re ACLOCAL_AMFLAGSJim Meyering2013-10-261-0/+1
| | | | | | * Makefile.am (ACLOCAL_AMFLAGS): Don't use this deprecated variable. * configure.ac (AC_CONFIG_MACRO_DIRS): Use this instead. (AUTOMAKE_OPTIONS): Require automake-1.12.
* build: avoid duplicate -funit-at-a-time etc. optionsPaul Eggert2013-10-251-3/+0
| | | | | | * configure.ac (WERROR_CFLAGS): Don't add -fdiagnostics-show-option and -funit-at-a-time, as Gnulib does that for us now, and we're merely piling on duplicats.
* build: avoid chatter from Automake 1.14Paul Eggert2013-10-201-1/+2
| | | | * configure.ac (AM_INIT_AUTOMAKE): Add subdir-objects.
* build: port shell pattern to Solaris 10Paul Eggert2013-10-201-1/+1
| | | | | | | * configure.ac: Don't use unquoted '^' in a pattern, as this breaks 'configure' on Solaris 10, whose /bin/sh complains about it, which causes 'configure' to exit even before it finds a decent shell. Unix 7th edition shell accepted '^' as an alias for '|'.
* build: port to platforms that predefine _FORTIFY_SOURCEPaul Eggert2013-10-201-1/+1
| | | | | | Problem reported by Brenton Hoff (Bug#15663). * configure.ac (_FORTIFY_SOURCE): Don't define if already defined. This is what Emacs does.
* build: update gettext version to 0.18.2Stefano Lattarini2013-01-111-1/+1
| | | | | | | | | * configure.ac (AM_GNU_GETTEXT_VERSION): Update to 0.18.2. This is necessary to have the gettext-provided m4 files to use AC_PROG_MKDIR_P rather than AM_PROG_MKDIR_P. This latter macro, planned to disappear in Automake 1.14, has already been removed in the development version of Automake, so that, without this change, grep fails to bootstrap with bleeding-edge Automake.
* maint: update all copyright year number rangesJim Meyering2013-01-041-1/+1
| | | | Run "make update-copyright".
* build: go back to AC_PROG_CCPaul Eggert2012-10-241-1/+1
| | | | | | * configure.ac: Go back to using AC_PROG_CC rather than AC_PROG_CC_STDC, as the latter is obsolescent and the Autoconf bug involving the former has been fixed.
* build: use AC_PROG_CC_STDC rather than AC_PROG_CCJim Meyering2012-10-241-1/+1
| | | | | * configure.ac: Use AC_PROG_CC_STDC rather than AC_PROG_CC, to accommodate autoconf-2.69-37+.
* build: default to --enable-gcc-warnings in a git treeEric Blake2012-10-231-1/+5
| | | | | | | | Anyone building from cloned sources can be assumed to have a new enough environment, such that enabling gcc warnings by default will be useful. Tarballs still default to no warnings, and the default can still be overridden with --disable-gcc-warnings. * configure.ac (gl_gcc_warnings): Set default based on environment.
* build: work with new glibc when not optimizingEric Blake2012-09-011-2/+7
| | | | | | | | Starting with glibc 2.15, the system headers refuse to compile unconditional use of FORTIFY_SOURCE if optimization is disabled but -Werror is in effect. * configure.ac (FORTIFY_SOURCE): Make conditional.
* maint: quote 'like this' or "like this", not `like this'Paul Eggert2012-05-061-1/+1
| | | | | | | | | | | | | | | | See <http://lists.gnu.org/archive/html/bug-grep/2012-01/msg00125.html>. * ChangeLog-2009, HACKING, NEWS, README-hacking, cfg.mk, configure.ac: * lib/colorize-w32.c, m4/pcre.m4: * src/Makefile.am, src/dfa.c, src/dosbuf.c, src/main.c: * tests/backref, tests/help-version, tests/tests: In commentary, quote 'like this' or "like this" rather than `like this' or ``like this''. * cfg.mk (old_NEWS_hash): Update due to changed old NEWS. * doc/grep.texi (General Output Control): Quote sample text with @samp, not with `...'. * src/main.c (usage): * tests/help-version: Quote 'like this' rather than `like this' in diagnostics.
* remove lib/ms/Paolo Bonzini2012-01-031-3/+3
| | | | | | | | | | * configure.ac: Create lib/colorize.c as a symbolic link. * lib/colorize-posix.c: New name of lib/colorize-impl.c. * lib/colorize-w32.c: New name of lib/ms/colorize-impl.c. * lib/colorize.c: Delete. * lib/Makefile.am (EXTRA_DIST): Adjust. * .gitignore: Adjust. * cfg.mk: Adjust syntax-check exclusions.
* maint: update all copyright year number rangesJim Meyering2012-01-011-1/+1
| | | | Run "make update-copyright".
* ms: move Microsoft-specific stuff to lib/msPaul Eggert2011-12-311-0/+6
| | | | | | | | | | | | | | | | | | | | | | | * cfg.mk (exclude_file_name_regexp--sc_prohibit_strcmp) (exclude_file_name_regexp--sc_require_config_h) (exclude_file_name_regexp--sc_require_config_h_first): New rules. * lib/colorize.c, lib/colorize.h, lib/colorize-impl.c: * lib/ms/colorize.h, lib/ms/colorize-impl.c: New files. * configure.ac (GREP_SRC_INCLUDES): New macro. * lib/Makefile.am (libgreputils_a_SOURCES): Add colorize.[ch]. (EXTRA_DIST): New macro. * src/Makefile.am (DEFAULT_INCLUDES): New macro. * src/main.c: Include colorize.h. (PR_SGR_START, PR_SGR_END, PR_SGR_START_IF, PR_SGR_END_IF): Now static functions, not macros. (hstdout, norm_attr, w32_console_init, w32_sgr2attr) (w32_clreol) [__MINGW32__]: Move to lib/ms/colorize-impl.c. (pr_sgr_start, pr_sgr_end): Remove; callers changed to use new print_start_colorize, print_end_colorize from colorize.h. (init_colorize): Rename from w32_console_init and move to colorize module; caller changed. (should_colorize): Move to colorize module.
* build: use gnulib's iswctype wcscollJim Meyering2011-12-121-1/+1
| | | | | | | | | * 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: accommodate -Werror=suggest-attribute=pureJim Meyering2011-11-281-0/+2
| | | | | | | | | | | Now that we're using the latest manywarnings module from gnulib, accommodate gcc's -Werror=suggest-attribute=pure option by marking suggested functions with gnulib-defined _GL_ATTRIBUTE_PURE. * src/kwset.c (hasevery): Mark function with pure attribute. (bmexec): Likewise. * src/dfa.c (nsubtoks, istrstr, find_pred, dfamusts): Likewise. * configure.ac: Disable (for lib/) options that seem not to be worth the trouble: -Wunsuffixed-float-constants and -Wformat-nonliteral.
* build: stop distributing gzip'd releases; xz is enoughJim Meyering2011-11-061-1/+1
| | | | | * configure.ac (AM_INIT_AUTOMAKE): Add no-dist-gzip. * NEWS (Build-related): Mention that we're dropping .tar.gz.
* build: use largefile module and update to latest gnulibJim Meyering2011-08-201-1/+0
| | | | | | * configure.ac: Remove AC_SYS_LARGEFILE, subsumed by ... * bootstrap.conf (gnulib_modules): ...this. Use largefile module. * gnulib: Update to latest.
* maint: update copyright year ranges to include 2011Jim Meyering2011-01-031-1/+1
| | | | Run "make update-copyright", so "make syntax-check" works in 2011.
* add comment above fn_grepPaolo Bonzini2010-12-201-1/+10
| | | | * configure.ac (fn_grep): Add comment suggested by Bruno Haible.
* configure: fix M4 quotationPaolo Bonzini2010-11-141-1/+2
| | | | * configure.ac: Add extra brackets around [...] patterns.
* configure: remove dependency on grep that supports long lines and -ePaolo Bonzini2010-11-141-0/+32
| | | | | | * configure.ac (fn_grep): New. Set GREP and EGREP to it, replace with newly-built grep before AC_OUTPUT. Reported by Florin Iucha <http://savannah.gnu.org/bugs/?31646>.
* build: compile gnulib without -Wcast-align to avoid warnings on ARMDmitry V. Levin2010-10-041-0/+1
| | | | * configure.ac (GNULIB_WARN_CFLAGS): Remove -Wcast-align.
* tests: add equiv-classesPaolo Bonzini2010-09-141-0/+1
| | | | | | | * configure.ac (USE_INCLUDED_REGEX): Add Automake conditional. * tests/equiv-classes: New test. * tests/Makefile.am (TESTS): Add it. (XFAIL_TESTS) [USE_INCLUDED_REGEX]: Mark it as expected failure.
* 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.
* maint: fix new argmatch-related syntax-check failuresJim Meyering2010-04-051-2/+2
| | | | | * configure.ac (ARGMATCH_DIE): Use usage(EXIT_FAILURE), not exit(1). * po/POTFILES.in: Add lib/argmatch.c.
* maint: use argmatch, for better --directories=INVAL diagnosticsJim Meyering2010-04-041-0/+6
| | | | | | | | | | | | | | | | | | | | | | 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.