From: Paul Eggert Date: Mon, 3 May 2004 06:20:09 +0000 (+0000) Subject: * configure.ac (AC_PROG_GREP): Add. X-Git-Tag: AUTOCONF-2.59c~703 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ca60bb81fc5a1a7029df2ec8f87a145f82acbe5;p=thirdparty%2Fautoconf.git * configure.ac (AC_PROG_GREP): Add. * lib/freeze.mk (GREP): New macro. --- diff --git a/ChangeLog b/ChangeLog index 563bb0954..69b21c497 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,8 @@ Solaris. * tests/local.at (AC_STATE_SAVE): Use $GREP, not grep. Define it with AC_PROG_GREP. + * configure.ac (AC_PROG_GREP): Add. + * lib/freeze.mk (GREP): New macro. 2004-05-02 Eric Sunshine diff --git a/configure.ac b/configure.ac index ff8b7763d..bd5b9a159 100644 --- a/configure.ac +++ b/configure.ac @@ -1,9 +1,9 @@ # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. -# Copyright (C) 1992, 1993, 1994, 1995, 1999, 2000, 2001, 2002, 2003 -# Free Software Foundation, Inc. -# +# Copyright (C) 1992, 1993, 1994, 1995, 1999, 2000, 2001, 2002, 2003, +# 2004 Free Software Foundation, Inc. + # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) @@ -163,6 +163,12 @@ AC_SUBST([EMACS], [$TEST_EMACS]) AM_PATH_LISPDIR +## ------ ## +## Grep. ## +## ------ ## +AC_PROG_GREP + + ## ------------ ## ## Conclusion. ## ## ------------ ## diff --git a/lib/freeze.mk b/lib/freeze.mk index f40c60992..4522d0f14 100644 --- a/lib/freeze.mk +++ b/lib/freeze.mk @@ -1,6 +1,6 @@ ## Freeze M4 files. -## Copyright (C) 2002 Free Software Foundation, Inc. +## Copyright (C) 2002, 2004 Free Software Foundation, Inc. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -113,13 +113,20 @@ ETAGS_FOR_AUTOCONF = \ --regex='/AN_\(FUNCTION\|HEADER\|IDENTIFIER\|LIBRARY\|MAKEVAR\|PROGRAM\)(\[\([^]]*\)\]/\2/' +## ---------- ## +## Run GREP. ## +## ---------- ## + +GREP = @GREP@ + + ## -------------------------------- ## ## Looking for forbidden patterns. ## ## -------------------------------- ## check-forbidden-patterns: if (cd $(srcdir) && \ - grep $(forbidden_patterns) $(forbidden_patterns_files)) \ + $(GREP) $(forbidden_patterns) $(forbidden_patterns_files)) \ >forbidden.log; then \ echo "ERROR: forbidden patterns were found:" >&2; \ sed "s,^,$*.m4: ," &2; \