From 7fc5292a291dab4a1b5bf5370de1e083003dd18b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 30 Dec 2008 19:16:08 +0100 Subject: improve M4 quoting * configure.ac: Add quotes. * gl/m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise. * m4/boottime.m4 (GNULIB_BOOT_TIME): Likewise. * m4/check-decl.m4 (gl_CHECK_DECLS): Likewise. * m4/gmp.m4 (cu_GMP): Likewise. * m4/jm-macros.m4 (coreutils_MACROS, gl_CHECK_ALL_HEADERS): Likewise. (gl_CHECK_ALL_TYPES): Likewise. * m4/lib-check.m4 (cu_LIB_CHECK): Likewise. * m4/stat-prog.m4 (cu_PREREQ_STAT_PROG): Likewise. FYI, I first ran this command: git ls-files | grep -E '\.(m4|ac)$' | xargs perl -pi \ -e 's/(AC_[A-Z_]+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \ -e 's/(AC_[A-Z_]+\(\[[^,]+?\], )([^,[()]+?)([,)])/$1\[$2]$3/g;' \ -e 's/(AC_[A-Z_]+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g' Then I updated serial numbers and copyright dates manually. Also, I manually added two pairs of quotes in boottime.m4. --- m4/boottime.m4 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'm4/boottime.m4') diff --git a/m4/boottime.m4 b/m4/boottime.m4 index 863eb02c3..ca4b85e40 100644 --- a/m4/boottime.m4 +++ b/m4/boottime.m4 @@ -1,7 +1,7 @@ -# boottime.m4 serial 3 +# boottime.m4 serial 4 # Determine whether this system has infrastructure for obtaining the boot time. -# Copyright (C) 1996, 2000, 2002, 2003, 2004, 2006 Free Software Foundation, Inc. +# Copyright (C) 1996, 2000, 2002-2004, 2006, 2008 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 @@ -20,14 +20,14 @@ * ---------------------------------------------------------- AC_DEFUN([GNULIB_BOOT_TIME], [ - AC_CHECK_FUNCS(sysctl) - AC_CHECK_HEADERS_ONCE(sys/param.h) - AC_CHECK_HEADERS(sys/sysctl.h, [], [], + AC_CHECK_FUNCS([sysctl]) + AC_CHECK_HEADERS_ONCE([sys/param.h]) + AC_CHECK_HEADERS([sys/sysctl.h], [], [], [AC_INCLUDES_DEFAULT [#if HAVE_SYS_PARAM_H #include #endif]]) - AC_CHECK_HEADERS_ONCE(utmp.h utmpx.h OS.h) + AC_CHECK_HEADERS_ONCE([utmp.h utmpx.h OS.h]) AC_CACHE_CHECK( [whether we can get the system boot time], [gnulib_cv_have_boot_time], @@ -57,8 +57,8 @@ AC_DEFUN([GNULIB_BOOT_TIME], please_tell_us_how_to_determine_boot_time_on_your_system #endif ]])], - gnulib_cv_have_boot_time=yes, - gnulib_cv_have_boot_time=no) + [gnulib_cv_have_boot_time=yes], + [gnulib_cv_have_boot_time=no]) ]) AS_IF([test $gnulib_cv_have_boot_time = yes], [$1], [$2]) ]) -- cgit v1.2.3-54-g00ecf