diff m4/perl.m4 @ 11007:f6cba5a556ce

many *.m4 files: improve m4 quoting 99% of this change was performed by running the following commands: git ls-files | grep '\.m4$' | xargs perl -pi \ -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \ -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \ -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \ -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g' perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4 The remainder were to add Copyright dates, increment serial numbers, undo some changes in comments, exclude m4/intl.m4, and add quotes around the "1" in ",1" where the unusual spacing prohibited the above regexps from doing the job. For more details, see <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
author Jim Meyering <meyering@redhat.com>
date Tue, 13 Jan 2009 08:48:48 +0100
parents a02426de7f27
children c2cbabec01dd
line wrap: on
line diff
--- a/m4/perl.m4
+++ b/m4/perl.m4
@@ -1,9 +1,9 @@
-#serial 8
+# serial 9
 
 dnl From Jim Meyering.
 dnl Find a new-enough version of Perl.
 
-# Copyright (C) 1998-2001, 2003, 2004, 2007 Free Software Foundation, Inc.
+# Copyright (C) 1998-2001, 2003-2004, 2007, 2009 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -23,7 +23,7 @@
   fi
 
   found=no
-  AC_SUBST(PERL)
+  AC_SUBST([PERL])
   PERL="$am_missing_run perl"
   for perl in $candidate_perl_names; do
     # Run test in a subshell; some versions of sh will print an error if
@@ -35,7 +35,7 @@
     fi
   done
 
-  AC_MSG_RESULT($found)
+  AC_MSG_RESULT([$found])
   test $found = no && AC_MSG_WARN([
 WARNING: You don't seem to have perl5.005 or newer installed, or you lack
          a usable version of the Perl File::Compare module.  As a result,