]> Savannah Git Hosting - gnulib.git/commitdiff
More systematic m4 quoting and indentation.
authorBruno Haible <bruno@clisp.org>
Tue, 11 Jul 2017 11:58:01 +0000 (13:58 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 11 Jul 2017 11:58:01 +0000 (13:58 +0200)
* m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
* m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
* m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
* m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
* m4/host-os.m4 (gl_HOST_OS): Likewise.
* m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
gl_WINSIZE_IN_PTEM): Likewise.
* m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
* m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
* m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
* m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
Correct indentation.
* m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
* m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
* m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
* m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
* m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
* m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.

17 files changed:
ChangeLog
m4/chdir-long.m4
m4/d-ino.m4
m4/d-type.m4
m4/dirfd.m4
m4/fchownat.m4
m4/getcwd-abort-bug.m4
m4/getcwd-path-max.m4
m4/host-os.m4
m4/jm-winsz1.m4
m4/jm-winsz2.m4
m4/mbrtowc.m4
m4/physmem.m4
m4/pselect.m4
m4/rmdir-errno.m4
m4/tzset.m4
m4/unlink-busy.m4

index 4fcc254b4f4c2b49b8a48189c4548ad8b8fcd99b..32c254f5b38f0221c74cc442d78f316a9958d9ea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,25 @@
+2017-07-11  Bruno Haible  <bruno@clisp.org>
+
+       More systematic m4 quoting and indentation.
+       * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
+       * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
+       * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
+       * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
+       * m4/host-os.m4 (gl_HOST_OS): Likewise.
+       * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
+       gl_WINSIZE_IN_PTEM): Likewise.
+       * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
+       * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
+       * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
+       * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
+       Correct indentation.
+       * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
+       * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
+       * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
+       * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
+       * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
+       * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
+
 2017-07-10  Bruno Haible  <bruno@clisp.org>
 
        round, roundf: Avoid compiler warning in configure test.
index c7363c693626ecb9634b5b42c24cec5372a2f495..c4c07b5003796388333ff4ecf32e45c85a3134af 100644 (file)
@@ -1,4 +1,4 @@
-#serial 15
+#serial 16
 
 # Use Gnulib's robust chdir function.
 # It can handle arbitrarily long directory names, which means
@@ -17,14 +17,14 @@ AC_DEFUN([gl_FUNC_CHDIR_LONG],
 [
   AC_REQUIRE([gl_PATHMAX_SNIPPET_PREREQ])
   AC_CACHE_CHECK([whether this system has an arbitrary file name length limit],
-    gl_cv_have_arbitrary_file_name_length_limit,
+    [gl_cv_have_arbitrary_file_name_length_limit],
     [AC_EGREP_CPP([have_arbitrary_file_name_length_limit],
                   gl_PATHMAX_SNIPPET[
 #ifdef PATH_MAX
 have_arbitrary_file_name_length_limit
 #endif],
-    gl_cv_have_arbitrary_file_name_length_limit=yes,
-    gl_cv_have_arbitrary_file_name_length_limit=no)])
+    [gl_cv_have_arbitrary_file_name_length_limit=yes],
+    [gl_cv_have_arbitrary_file_name_length_limit=no])])
 ])
 
 AC_DEFUN([gl_PREREQ_CHDIR_LONG], [:])
index 65cd4d85809408b9c5d403d57eee12060980a8a0..fa599ed56d968c6f9a72871073440883aefc4244 100644 (file)
@@ -1,4 +1,4 @@
-# serial 16
+# serial 17
 
 dnl From Jim Meyering.
 dnl
@@ -15,7 +15,7 @@ dnl
 AC_DEFUN([gl_CHECK_TYPE_STRUCT_DIRENT_D_INO],
   [AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
    AC_CACHE_CHECK([for d_ino member in directory struct],
-                  gl_cv_struct_dirent_d_ino,
+                  [gl_cv_struct_dirent_d_ino],
      [AC_RUN_IFELSE(
         [AC_LANG_PROGRAM(
            [[#include <sys/types.h>
index 64457c8e6a49af9302ac035a1be86f1ad113e34a..c819fc02f84fc186cd28b2d6e67b56b1ef874ea3 100644 (file)
@@ -1,4 +1,4 @@
-# serial 11
+# serial 12
 
 dnl From Jim Meyering.
 dnl
@@ -13,7 +13,7 @@ dnl
 
 AC_DEFUN([gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE],
   [AC_CACHE_CHECK([for d_type member in directory struct],
-                  gl_cv_struct_dirent_d_type,
+                  [gl_cv_struct_dirent_d_type],
      [AC_LINK_IFELSE([AC_LANG_PROGRAM([[
 #include <sys/types.h>
 #include <dirent.h>
index 86c1cb38501d72fa1b7b7a3e1161c341f4b72584..d472c38549dd609930daa8336d4067ac17d6d847 100644 (file)
@@ -1,4 +1,4 @@
-# serial 25   -*- Autoconf -*-
+# serial 26   -*- Autoconf -*-
 
 dnl Find out how to get the file descriptor associated with an open DIR*.
 
@@ -26,15 +26,15 @@ AC_DEFUN([gl_FUNC_DIRFD],
   fi
 
   AC_CACHE_CHECK([whether dirfd is a macro],
-    gl_cv_func_dirfd_macro,
+    [gl_cv_func_dirfd_macro],
     [AC_EGREP_CPP([dirent_header_defines_dirfd], [
 #include <sys/types.h>
 #include <dirent.h>
 #ifdef dirfd
  dirent_header_defines_dirfd
 #endif],
-       gl_cv_func_dirfd_macro=yes,
-       gl_cv_func_dirfd_macro=no)])
+       [gl_cv_func_dirfd_macro=yes],
+       [gl_cv_func_dirfd_macro=no])])
 
   # Use the replacement if we have no function or macro with that name,
   # or if OS/2 kLIBC whose dirfd() does not work.
index 32b01f5a5fbcd4bb3250838ddf08b0e8731dedb8..58eee3b3204992237565f211f1d68ecb3bf7b6c5 100644 (file)
@@ -1,4 +1,4 @@
-# fchownat.m4 serial 1
+# fchownat.m4 serial 2
 dnl Copyright (C) 2004-2017 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -43,7 +43,7 @@ AC_DEFUN([gl_FUNC_FCHOWNAT_DEREF_BUG],
   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
 
   AC_CACHE_CHECK([whether fchownat works with AT_SYMLINK_NOFOLLOW],
-    gl_cv_func_fchownat_nofollow_works,
+    [gl_cv_func_fchownat_nofollow_works],
     [
      gl_dangle=conftest.dangle
      # Remove any remnants of a previous test.
@@ -67,10 +67,9 @@ main ()
           && errno == ENOENT);
 }
           ]])],
-    [gl_cv_func_fchownat_nofollow_works=yes],
-    [gl_cv_func_fchownat_nofollow_works=no],
-    [gl_cv_func_fchownat_nofollow_works=no],
-    )
+       [gl_cv_func_fchownat_nofollow_works=yes],
+       [gl_cv_func_fchownat_nofollow_works=no],
+       [gl_cv_func_fchownat_nofollow_works=no])
   ])
   AS_IF([test $gl_cv_func_fchownat_nofollow_works = no], [$1], [$2])
 ])
index 84ecf8596d5dffa4b41553e9126bd06ea2abf469..b16bb5abbb1a07c040a7dc7f72f6ded2e33551b1 100644 (file)
@@ -1,4 +1,4 @@
-# serial 7
+# serial 8
 # Determine whether getcwd aborts when the length of the working directory
 # name is unusually large.  Any length between 4k and 16k trigger the bug
 # when using glibc-2.4.90-9 or older.
@@ -18,7 +18,7 @@ AC_DEFUN([gl_FUNC_GETCWD_ABORT_BUG],
   AC_REQUIRE([gl_PATHMAX_SNIPPET_PREREQ])
   AC_CHECK_FUNCS([getpagesize])
   AC_CACHE_CHECK([whether getcwd aborts when 4k < cwd_length < 16k],
-    gl_cv_func_getcwd_abort_bug,
+    [gl_cv_func_getcwd_abort_bug],
     [# Remove any remnants of a previous test.
      rm -rf confdir-14B---
      # Arrange for deletion of the temporary directory this test creates.
@@ -121,20 +121,20 @@ main ()
   return fail;
 }
           ]])],
-    [gl_cv_func_getcwd_abort_bug=no],
-    [dnl An abort will provoke an exit code of something like 134 (128 + 6).
-     dnl An exit code of 4 can also occur (in OpenBSD 4.9, NetBSD 5.1 for
-     dnl example): getcwd (NULL, 0) fails rather than returning a string
-     dnl longer than PATH_MAX.  This may be POSIX compliant (in some
-     dnl interpretations of POSIX).  But gnulib's getcwd module wants to
-     dnl provide a non-NULL value in this case.
-     ret=$?
-     if test $ret -ge 128 || test $ret = 4; then
-       gl_cv_func_getcwd_abort_bug=yes
-     else
-       gl_cv_func_getcwd_abort_bug=no
-     fi],
-    [gl_cv_func_getcwd_abort_bug=yes])
-  ])
+       [gl_cv_func_getcwd_abort_bug=no],
+       [dnl An abort will provoke an exit code of something like 134 (128 + 6).
+        dnl An exit code of 4 can also occur (in OpenBSD 4.9, NetBSD 5.1 for
+        dnl example): getcwd (NULL, 0) fails rather than returning a string
+        dnl longer than PATH_MAX.  This may be POSIX compliant (in some
+        dnl interpretations of POSIX).  But gnulib's getcwd module wants to
+        dnl provide a non-NULL value in this case.
+        ret=$?
+        if test $ret -ge 128 || test $ret = 4; then
+          gl_cv_func_getcwd_abort_bug=yes
+        else
+          gl_cv_func_getcwd_abort_bug=no
+        fi],
+       [gl_cv_func_getcwd_abort_bug=yes])
+    ])
   AS_IF([test $gl_cv_func_getcwd_abort_bug = yes], [$1], [$2])
 ])
index 6d58d69d5206c7f43d5fee6d0e512f2772beef89..71e7cd075e85ea8369f6ef19332280ad0bf42136 100644 (file)
@@ -1,4 +1,4 @@
-# serial 19
+# serial 20
 # Check for several getcwd bugs with long file names.
 # If so, arrange to compile the wrapper function.
 
@@ -21,7 +21,7 @@ AC_DEFUN([gl_FUNC_GETCWD_PATH_MAX],
   AC_CHECK_HEADERS_ONCE([unistd.h])
   AC_REQUIRE([gl_PATHMAX_SNIPPET_PREREQ])
   AC_CACHE_CHECK([whether getcwd handles long file names properly],
-    gl_cv_func_getcwd_path_max,
+    [gl_cv_func_getcwd_path_max],
     [# Arrange for deletion of the temporary directory this test creates.
      ac_clean_files="$ac_clean_files confdir3"
      dnl Please keep this in sync with tests/test-getcwd.c.
@@ -202,16 +202,16 @@ main ()
 #endif
 }
           ]])],
-    [gl_cv_func_getcwd_path_max=yes],
-    [case $? in
-     10|11|12) gl_cv_func_getcwd_path_max='no, but it is partly working';;
-     31) gl_cv_func_getcwd_path_max='no, it has the AIX bug';;
-     32) gl_cv_func_getcwd_path_max='yes, but with shorter paths';;
-     *) gl_cv_func_getcwd_path_max=no;;
-     esac],
-    [case "$host_os" in
-       aix*) gl_cv_func_getcwd_path_max='no, it has the AIX bug';;
-       *) gl_cv_func_getcwd_path_max=no;;
-     esac])
-  ])
+       [gl_cv_func_getcwd_path_max=yes],
+       [case $? in
+        10|11|12) gl_cv_func_getcwd_path_max='no, but it is partly working';;
+        31) gl_cv_func_getcwd_path_max='no, it has the AIX bug';;
+        32) gl_cv_func_getcwd_path_max='yes, but with shorter paths';;
+        *) gl_cv_func_getcwd_path_max=no;;
+        esac],
+       [case "$host_os" in
+          aix*) gl_cv_func_getcwd_path_max='no, it has the AIX bug';;
+          *) gl_cv_func_getcwd_path_max=no;;
+        esac])
+    ])
 ])
index 9bce9a81368bc44eaaff5718ef1baaa720199614..0f1a1040df022df7fa22ac1fd67b886798c96159 100644 (file)
@@ -1,4 +1,4 @@
-# serial 9
+# serial 10
 
 # Copyright (C) 2001, 2003-2004, 2006, 2009-2017 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -14,7 +14,7 @@ AC_DEFUN([gl_HOST_OS],
 [
   AC_REQUIRE([AC_CANONICAL_HOST])dnl
   AC_CACHE_CHECK([host operating system],
-    gl_cv_host_operating_system,
+    [gl_cv_host_operating_system],
 
     [[case $host_os in
 
index daee16a25ae2b1e972a5ca5ad32e25f16be734df..cad70a1b8fa942abed21af46d0701c39f1664ebb 100644 (file)
@@ -1,4 +1,4 @@
-# serial 11
+# serial 12
 
 # Copyright (C) 1996, 1999, 2001-2002, 2004, 2006, 2009-2017 Free Software
 # Foundation, Inc.
@@ -10,7 +10,7 @@ dnl From Jim Meyering and Paul Eggert.
 AC_DEFUN([gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H],
 [AC_REQUIRE([AC_SYS_POSIX_TERMIOS])
  AC_CACHE_CHECK([whether use of TIOCGWINSZ requires termios.h],
-                gl_cv_sys_tiocgwinsz_needs_termios_h,
+                [gl_cv_sys_tiocgwinsz_needs_termios_h],
   [gl_cv_sys_tiocgwinsz_needs_termios_h=no
 
    if test $ac_cv_sys_posix_termios = yes; then
@@ -20,15 +20,16 @@ AC_DEFUN([gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H],
 #      ifdef TIOCGWINSZ
          yes
 #      endif
-     ], gl_cv_sys_tiocgwinsz_needs_termios_h=yes)
+     ], [gl_cv_sys_tiocgwinsz_needs_termios_h=yes])
    fi
   ])
 ])
 
 AC_DEFUN([gl_WINSIZE_IN_PTEM],
-  [AC_REQUIRE([AC_SYS_POSIX_TERMIOS])
+[
+   AC_REQUIRE([AC_SYS_POSIX_TERMIOS])
    AC_CACHE_CHECK([whether use of struct winsize requires sys/ptem.h],
-     gl_cv_sys_struct_winsize_needs_sys_ptem_h,
+     [gl_cv_sys_struct_winsize_needs_sys_ptem_h],
      [gl_cv_sys_struct_winsize_needs_sys_ptem_h=yes
       if test $ac_cv_sys_posix_termios = yes; then
         AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <termios.h>]],
@@ -45,4 +46,5 @@ AC_DEFUN([gl_WINSIZE_IN_PTEM],
    if test $gl_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
      AC_DEFINE([WINSIZE_IN_PTEM], [1],
        [Define if sys/ptem.h is required for struct winsize.])
-   fi])
+   fi
+])
index cc1ba9f0ad1ea4edb717f171fa419cf8e5b4bb88..ebf2d601dd6ecf838004d1b4494c061871aab77a 100644 (file)
@@ -1,4 +1,4 @@
-# serial 7
+# serial 8
 
 # Copyright (C) 1996, 1999, 2001, 2004, 2009-2017 Free Software Foundation,
 # Inc.
@@ -9,18 +9,18 @@
 AC_DEFUN([gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL],
 [AC_REQUIRE([gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H])
  AC_CACHE_CHECK([whether use of TIOCGWINSZ requires sys/ioctl.h],
-                gl_cv_sys_tiocgwinsz_needs_sys_ioctl_h,
+                [gl_cv_sys_tiocgwinsz_needs_sys_ioctl_h],
   [gl_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
 
-  if test $gl_cv_sys_tiocgwinsz_needs_termios_h = no; then
-    AC_EGREP_CPP([yes],
-    [#include <sys/types.h>
-#     include <sys/ioctl.h>
-#     ifdef TIOCGWINSZ
-        yes
-#     endif
-    ], gl_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes)
-  fi
+   if test $gl_cv_sys_tiocgwinsz_needs_termios_h = no; then
+     AC_EGREP_CPP([yes],
+       [#include <sys/types.h>
+#        include <sys/ioctl.h>
+#        ifdef TIOCGWINSZ
+           yes
+#        endif
+       ], [gl_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes])
+   fi
   ])
   if test $gl_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
     AC_DEFINE([GWINSZ_IN_SYS_IOCTL], [1],
index 536183f4f89ca61b7501f5faf4810bed8e2658cc..4982b4bf9ec5974b787bacb28a8201a28a34cbdf 100644 (file)
@@ -1,4 +1,4 @@
-# mbrtowc.m4 serial 27  -*- coding: utf-8 -*-
+# mbrtowc.m4 serial 28  -*- coding: utf-8 -*-
 dnl Copyright (C) 2001-2002, 2004-2005, 2008-2017 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
@@ -639,7 +639,7 @@ AC_DEFUN([AC_FUNC_MBRTOWC],
 [
   dnl Same as AC_FUNC_MBRTOWC in autoconf-2.60.
   AC_CACHE_CHECK([whether mbrtowc and mbstate_t are properly declared],
-    gl_cv_func_mbrtowc,
+    [gl_cv_func_mbrtowc],
     [AC_LINK_IFELSE(
        [AC_LANG_PROGRAM(
             [[/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
@@ -655,8 +655,8 @@ AC_DEFUN([AC_FUNC_MBRTOWC],
               size_t n = 1;
               mbstate_t state;
               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));]])],
-       gl_cv_func_mbrtowc=yes,
-       gl_cv_func_mbrtowc=no)])
+       [gl_cv_func_mbrtowc=yes],
+       [gl_cv_func_mbrtowc=no])])
   if test $gl_cv_func_mbrtowc = yes; then
     AC_DEFINE([HAVE_MBRTOWC], [1],
       [Define to 1 if mbrtowc and mbstate_t are properly declared.])
index 38b86bc26421fe121a1fc4781d717f6318d6eee8..2851a636008419cc954698a85f884716306b0324 100644 (file)
@@ -1,4 +1,4 @@
-# physmem.m4 serial 11
+# physmem.m4 serial 12
 dnl Copyright (C) 2002-2003, 2005-2006, 2008-2017 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
@@ -9,7 +9,7 @@ dnl with or without modifications, as long as this notice is preserved.
 # a struct with member 'physmem'.
 AC_DEFUN([gl_SYS__SYSTEM_CONFIGURATION],
   [AC_CACHE_CHECK([for external symbol _system_configuration],
-                  gl_cv_var__system_configuration,
+                  [gl_cv_var__system_configuration],
     [AC_LINK_IFELSE([AC_LANG_PROGRAM(
                       [[#include <sys/systemcfg.h>
                       ]],
index ea925cb0ea0ea2c7867e7a039a35c5f30981dd7c..eb1ad115cc2b47a7c7881151fb8c890e5c979aa5 100644 (file)
@@ -1,4 +1,4 @@
-# pselect.m4 serial 3
+# pselect.m4 serial 4
 dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -13,7 +13,7 @@ AC_DEFUN([gl_FUNC_PSELECT],
 
   if test $ac_cv_func_pselect = yes; then
     AC_CACHE_CHECK([whether signature of pselect conforms to POSIX],
-      gl_cv_sig_pselect,
+      [gl_cv_sig_pselect],
       [AC_LINK_IFELSE(
          [AC_LANG_PROGRAM(
               [[#include <sys/select.h>
index a389329da0054a087386e9832926ebff4817bf74..65fb8a88f9d2c4b843e8fbed2c1f3ae76eab0b47 100644 (file)
@@ -1,4 +1,4 @@
-# serial 11
+# serial 12
 
 # Copyright (C) 2000-2001, 2005-2006, 2009-2017 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -14,7 +14,7 @@ AC_DEFUN([gl_FUNC_RMDIR_NOTEMPTY],
 [dnl
   AC_CHECK_HEADERS_ONCE([unistd.h])
   AC_CACHE_CHECK([for rmdir-not-empty errno value],
-    gl_cv_func_rmdir_errno_not_empty,
+    [gl_cv_func_rmdir_errno_not_empty],
     [
       # Arrange for deletion of the temporary directory this test creates.
       ac_clean_files="$ac_clean_files confdir2"
@@ -37,10 +37,9 @@ AC_DEFUN([gl_FUNC_RMDIR_NOTEMPTY],
           return 0;
         }
         ]])],
-      [gl_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`],
-      [gl_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'],
-      [gl_cv_func_rmdir_errno_not_empty=ENOTEMPTY]
-      )
+        [gl_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`],
+        [gl_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'],
+        [gl_cv_func_rmdir_errno_not_empty=ENOTEMPTY])
     ]
   )
 
index 08362fea739acd0f94920feca3020c3cedd3f9e0..f8f7736548e7ecb5748ae1bd288f5c1fd50c2ad2 100644 (file)
@@ -1,4 +1,4 @@
-# serial 8
+# serial 9
 
 # Copyright (C) 2003, 2007, 2009-2017 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -42,9 +42,8 @@ AC_DEFUN([gl_FUNC_TZSET_CLOBBER],
 [
   AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   AC_CACHE_CHECK([whether tzset clobbers localtime buffer],
-                 gl_cv_func_tzset_clobber,
-  [
-  AC_RUN_IFELSE([AC_LANG_SOURCE([[
+                 [gl_cv_func_tzset_clobber],
+    [AC_RUN_IFELSE([AC_LANG_SOURCE([[
 #include <time.h>
 #include <stdlib.h>
 
@@ -74,7 +73,8 @@ main ()
                   # If we don't know, assume the worst.
           *)      gl_cv_func_tzset_clobber="guessing yes" ;;
         esac
-       ])])
+       ])
+    ])
 
   AC_DEFINE([HAVE_RUN_TZSET_TEST], [1],
     [Define to 1 if you have run the test for working tzset.])
index a6498a66be3015413a0bc9ce8d4c4756a85d4030..331ac7a61ca44acea6fb175861a0347ef7f26d5d 100644 (file)
@@ -1,4 +1,4 @@
-#serial 12
+#serial 13
 
 dnl From J. David Anglin.
 
@@ -12,7 +12,7 @@ dnl HPUX and other systems can't unlink shared text that is being executed.
 AC_DEFUN([gl_FUNC_UNLINK_BUSY_TEXT],
 [dnl
   AC_CACHE_CHECK([whether a running program can be unlinked],
-    gl_cv_func_unlink_busy_text,
+    [gl_cv_func_unlink_busy_text],
     [
       AC_RUN_IFELSE(
         [AC_LANG_SOURCE(
@@ -27,9 +27,9 @@ AC_DEFUN([gl_FUNC_UNLINK_BUSY_TEXT],
                 result |= 2;
               return result;
             }]])],
-      gl_cv_func_unlink_busy_text=yes,
-      gl_cv_func_unlink_busy_text=no,
-      gl_cv_func_unlink_busy_text=no
+        [gl_cv_func_unlink_busy_text=yes],
+        [gl_cv_func_unlink_busy_text=no],
+        [gl_cv_func_unlink_busy_text=no]
       )
     ]
   )