lchown: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 10:59:37 +0000 (12:59 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:24 +0000 (00:06 +0200)
* m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
* modules/lchown (configure.ac): ... to here.

ChangeLog
m4/lchown.m4
modules/lchown

index ffaa7cb..263c496 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       lchown: Move AC_LIBOBJ invocations to module description.
+       * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
+       AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
+       * modules/lchown (configure.ac): ... to here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
        iswctype: Move AC_LIBOBJ invocations to module description.
        * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
        here...
index b567d81..21ac47f 100644 (file)
@@ -1,4 +1,4 @@
-# serial 15
+# serial 16
 # Determine whether we need the lchown wrapper.
 
 dnl Copyright (C) 1998, 2001, 2003-2007, 2009-2011 Free Software Foundation,
@@ -17,13 +17,12 @@ AC_DEFUN([gl_FUNC_LCHOWN],
   AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_CHOWN])
   AC_CHECK_FUNCS_ONCE([lchmod])
-  AC_REPLACE_FUNCS([lchown])
+  AC_CHECK_FUNCS([lchown])
   if test $ac_cv_func_lchown = no; then
     HAVE_LCHOWN=0
   elif test "$gl_cv_func_chown_slash_works" != yes \
       || test "$gl_cv_func_chown_ctime_works" != yes; then
     dnl Trailing slash and ctime bugs in chown also occur in lchown.
-    AC_LIBOBJ([lchown])
     REPLACE_LCHOWN=1
   fi
 ])
index d9d140e..1ddecca 100644 (file)
@@ -15,6 +15,9 @@ sys_stat        [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
 
 configure.ac:
 gl_FUNC_LCHOWN
+if test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1; then
+  AC_LIBOBJ([lchown])
+fi
 gl_UNISTD_MODULE_INDICATOR([lchown])
 
 Makefile.am: