better AC_REQUIRE expanded-before-required-warning avoidance
authorJim Meyering <meyering@redhat.com>
Mon, 16 Nov 2009 18:26:35 +0000 (19:26 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 16 Nov 2009 18:29:47 +0000 (19:29 +0100)
* m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
which is no longer needed.

ChangeLog
m4/chown.m4
modules/chown
modules/euidaccess
modules/faccessat

index de93143ab761f18a3bb77191c3ac87952586a1de..259f983bc7cdf12862fd6c1b7a4628d182406385 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-11-16  Jim Meyering  <meyering@redhat.com>
+
+       better AC_REQUIRE expanded-before-required-warning avoidance
+       * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
+       with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
+       Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
+       which is no longer needed.
+
 2009-11-16  Eric Blake  <ebb9@byu.net>
 
        test-freading: clean up temporary file
index 983dde8ddf897767f7fb1ae01a352146a0f02994..5bedfa192bafb5dc42137e7f7b3d653eabc4f502 100644 (file)
@@ -1,4 +1,4 @@
-# serial 20
+# serial 21
 # Determine whether we need the chown wrapper.
 
 dnl Copyright (C) 1997-2001, 2003-2005, 2007, 2009
@@ -14,7 +14,7 @@ dnl with or without modifications, as long as this notice is preserved.
 
 # From Jim Meyering.
 
-AC_DEFUN([gl_FUNC_CHOWN],
+AC_DEFUN_ONCE([gl_FUNC_CHOWN],
 [
   AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
   AC_REQUIRE([AC_TYPE_UID_T])
@@ -63,7 +63,7 @@ AC_DEFUN([gl_FUNC_CHOWN],
 ])
 
 # Determine whether chown follows symlinks (it should).
-AC_DEFUN([gl_FUNC_CHOWN_FOLLOWS_SYMLINK],
+AC_DEFUN_ONCE([gl_FUNC_CHOWN_FOLLOWS_SYMLINK],
 [
   AC_CACHE_CHECK(
     [whether chown dereferences symlinks],
index 57331c3916163fe6514c2e972c16e5ea260a078a..88d0cd458fe35b7d2bd4a55c55af0a70843ad4b4 100644 (file)
@@ -13,7 +13,7 @@ stat
 sys_stat
 
 configure.ac:
-AC_REQUIRE([gl_FUNC_CHOWN])
+gl_FUNC_CHOWN
 gl_UNISTD_MODULE_INDICATOR([chown])
 
 Makefile.am:
index c313da34f4f50a4e52ee3ded81c229fa041105c9..bf329c64d8303056a2a1e118ab3de41ce35bcb18 100644 (file)
@@ -13,7 +13,7 @@ stat
 sys_stat
 
 configure.ac:
-AC_REQUIRE([gl_FUNC_EUIDACCESS])
+gl_FUNC_EUIDACCESS
 gl_UNISTD_MODULE_INDICATOR([euidaccess])
 
 Makefile.am:
index 57f9497d7e5a3328ae19986829465564c8647efe..92d818556b8428fa6653b3620ba3a6aedab22a88 100644 (file)
@@ -13,7 +13,7 @@ openat
 unistd
 
 configure.ac:
-AC_REQUIRE([gl_FUNC_FACCESSAT])
+gl_FUNC_FACCESSAT
 gl_MODULE_INDICATOR([faccessat])
 gl_UNISTD_MODULE_INDICATOR([faccessat])