+2010-11-13 Bruno Haible <bruno@clisp.org>
+
+ openat: Ensure autoconf macro ordering.
+ * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
+ gl_USE_SYSTEM_EXTENSIONS.
+ (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
+
2010-11-13 Bruno Haible <bruno@clisp.org>
Update comments.
-# serial 30
+# serial 31
# See if we need to use our replacement for Solaris' openat et al functions.
dnl Copyright (C) 2004-2010 Free Software Foundation, Inc.
# gl_FUNC_FCHOWNAT_DEREF_BUG([ACTION-IF-BUGGY[, ACTION-IF-NOT_BUGGY]])
AC_DEFUN([gl_FUNC_FCHOWNAT_DEREF_BUG],
[
+ dnl Persuade glibc's <unistd.h> to declare fchownat().
+ AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
+
AC_CACHE_CHECK([whether fchownat works with AT_SYMLINK_NOFOLLOW],
gl_cv_func_fchownat_nofollow_works,
[
# Also use the replacement function if fchownat is simply not available.
AC_DEFUN([gl_FUNC_FCHOWNAT],
[
+ AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
AC_REQUIRE([gl_FUNC_CHOWN])
AC_CHECK_FUNC([fchownat],
[gl_FUNC_FCHOWNAT_DEREF_BUG(