changeset 15075:810f3ecf645c

readlinkat: Move AC_LIBOBJ invocations to module description. * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from here... * modules/readlinkat (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 18:01:35 +0200
parents 79164b84def4
children 19b4041d8566
files ChangeLog m4/readlinkat.m4 modules/readlinkat
diffstat 3 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+	readlinkat: Move AC_LIBOBJ invocations to module description.
+	* m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
+	here...
+	* modules/readlinkat (configure.ac): ... to here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
 	readlink: Move AC_LIBOBJ invocations to module description.
 	* m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
 	gl_PREREQ_READLINK invocations from here...
--- a/m4/readlinkat.m4
+++ b/m4/readlinkat.m4
@@ -1,4 +1,4 @@
-# serial 1
+# serial 2
 # See if we need to provide readlinkat replacement.
 
 dnl Copyright (C) 2009-2011 Free Software Foundation, Inc.
@@ -16,6 +16,5 @@
   AC_CHECK_FUNCS_ONCE([readlinkat])
   if test $ac_cv_func_readlinkat = no; then
     HAVE_READLINKAT=0
-    AC_LIBOBJ([readlinkat])
   fi
 ])
--- a/modules/readlinkat
+++ b/modules/readlinkat
@@ -14,6 +14,9 @@
 
 configure.ac:
 gl_FUNC_READLINKAT
+if test $HAVE_READLINKAT = 0; then
+  AC_LIBOBJ([readlinkat])
+fi
 gl_UNISTD_MODULE_INDICATOR([readlinkat])
 
 Makefile.am: