renameat: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 18:53:14 +0000 (20:53 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:43 +0000 (00:06 +0200)
* m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
here...
* modules/renameat (configure.ac): ... to here.

ChangeLog
m4/renameat.m4
modules/renameat

index ca585d5a9f882ac19a345e8e22180c0b58b8f3d8..24caa7687c3f9ab959b251e17745462f6d10c81b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+       renameat: Move AC_LIBOBJ invocations to module description.
+       * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
+       here...
+       * modules/renameat (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
        rename: Respect rules for use of AC_LIBOBJ.
index 2fa2b8cfa3686c5270345075287d99af1fe59751..fcaae79a1c2760f0579f28ba2848078ca96491d1 100644 (file)
@@ -1,4 +1,4 @@
-# serial 2
+# serial 3
 # See if we need to provide renameat replacement.
 
 dnl Copyright (C) 2009-2011 Free Software Foundation, Inc.
@@ -17,12 +17,8 @@ AC_DEFUN([gl_FUNC_RENAMEAT],
   AC_CHECK_FUNCS_ONCE([renameat])
   if test $ac_cv_func_renameat = no; then
     HAVE_RENAMEAT=0
-    AC_LIBOBJ([renameat])
-    AC_LIBOBJ([at-func2])
   elif test $REPLACE_RENAME = 1; then
     dnl Solaris 9 and 10 have the same bugs in renameat as in rename.
     REPLACE_RENAMEAT=1
-    AC_LIBOBJ([renameat])
-    AC_LIBOBJ([at-func2])
   fi
 ])
index cefdb1306a04ce81974afb59c4307c3b8917e583..6e1012a32bebb991e7b499dcdba447b26760ae5a 100644 (file)
@@ -20,6 +20,10 @@ save-cwd         [test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1]
 
 configure.ac:
 gl_FUNC_RENAMEAT
+if test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1; then
+  AC_LIBOBJ([renameat])
+  AC_LIBOBJ([at-func2])
+fi
 gl_STDIO_MODULE_INDICATOR([renameat])
 
 Makefile.am: