comparison m4/tzset.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 b7a83a69ac23
children e8d2c6fc33ad
comparison
equal deleted inserted replaced
11006:76da4c1dc4a9 11007:f6cba5a556ce
1 #serial 3 1 # serial 4
2 2
3 # Copyright (C) 2003, 2007 Free Software Foundation, Inc. 3 # Copyright (C) 2003, 2007, 2009 Free Software Foundation, Inc.
4 # This file is free software; the Free Software Foundation 4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it, 5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved. 6 # with or without modifications, as long as this notice is preserved.
7 7
8 # See if we have a working tzset function. 8 # See if we have a working tzset function.
43 ]])], 43 ]])],
44 [gl_cv_func_tzset_clobber=no], 44 [gl_cv_func_tzset_clobber=no],
45 [gl_cv_func_tzset_clobber=yes], 45 [gl_cv_func_tzset_clobber=yes],
46 [gl_cv_func_tzset_clobber=yes])]) 46 [gl_cv_func_tzset_clobber=yes])])
47 47
48 AC_DEFINE(HAVE_RUN_TZSET_TEST, 1, 48 AC_DEFINE([HAVE_RUN_TZSET_TEST], [1],
49 [Define to 1 if you have run the test for working tzset.]) 49 [Define to 1 if you have run the test for working tzset.])
50 50
51 if test $gl_cv_func_tzset_clobber = yes; then 51 if test $gl_cv_func_tzset_clobber = yes; then
52 gl_GETTIMEOFDAY_REPLACE_LOCALTIME 52 gl_GETTIMEOFDAY_REPLACE_LOCALTIME
53 53
54 AC_DEFINE(tzset, rpl_tzset, 54 AC_DEFINE([tzset], [rpl_tzset],
55 [Define to rpl_tzset if the wrapper function should be used.]) 55 [Define to rpl_tzset if the wrapper function should be used.])
56 AC_DEFINE([TZSET_CLOBBERS_LOCALTIME], 1, 56 AC_DEFINE([TZSET_CLOBBERS_LOCALTIME], [1],
57 [Define if tzset clobbers localtime's static buffer.]) 57 [Define if tzset clobbers localtime's static buffer.])
58 fi 58 fi
59 ]) 59 ])