symlinkat: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 12:53:42 +0000 (14:53 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:59 +0000 (00:06 +0200)
* m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
here...
* modules/symlinkat (configure.ac): ... to here.

ChangeLog
m4/symlinkat.m4
modules/symlinkat

index 0eb217b..b30a82b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
+       symlinkat: Move AC_LIBOBJ invocations to module description.
+       * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
+       here...
+       * modules/symlinkat (configure.ac): ... to here.
+
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
        symlink: Move AC_LIBOBJ invocations to module description.
        * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
        here...
index 4839568..e227566 100644 (file)
@@ -1,4 +1,4 @@
-# serial 4
+# serial 5
 # See if we need to provide symlinkat replacement.
 
 dnl Copyright (C) 2009-2011 Free Software Foundation, Inc.
@@ -16,6 +16,5 @@ AC_DEFUN([gl_FUNC_SYMLINKAT],
   AC_CHECK_FUNCS_ONCE([symlinkat])
   if test $ac_cv_func_symlinkat = no; then
     HAVE_SYMLINKAT=0
-    AC_LIBOBJ([symlinkat])
   fi
 ])
index f2666af..7636b29 100644 (file)
@@ -14,6 +14,9 @@ symlink         [test $HAVE_SYMLINKAT = 0]
 
 configure.ac:
 gl_FUNC_SYMLINKAT
+if test $HAVE_SYMLINKAT = 0; then
+  AC_LIBOBJ([symlinkat])
+fi
 gl_UNISTD_MODULE_INDICATOR([symlinkat])
 
 Makefile.am: