* lib/freeze.mk (GREP): New macro.
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 <sunshine@sunshineco.com>
# -*- 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)
AM_PATH_LISPDIR
+## ------ ##
+## Grep. ##
+## ------ ##
+AC_PROG_GREP
+
+
## ------------ ##
## Conclusion. ##
## ------------ ##
## 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
--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: ," <forbidden.log >&2; \