changeset 15473:27fad4bab496

fcntl: Move AC_LIBOBJ invocation to module description. * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ. * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
author Bruno Haible <bruno@clisp.org>
date Tue, 26 Jul 2011 00:39:35 +0200
parents 284a8cc10af0
children 51231c56c0a1
files ChangeLog m4/fcntl.m4 modules/fcntl
diffstat 3 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2011-07-25  Bruno Haible  <bruno@clisp.org>
 
+	fcntl: Move AC_LIBOBJ invocation to module description.
+	* m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
+	* modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
+
 	fcntl: Remove call-in from fchdir.m4.
 	* m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
 	* m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
--- a/m4/fcntl.m4
+++ b/m4/fcntl.m4
@@ -92,5 +92,4 @@
   else
     REPLACE_FCNTL=1
   fi
-  AC_LIBOBJ([fcntl])
 ])
--- a/modules/fcntl
+++ b/modules/fcntl
@@ -13,6 +13,9 @@
 
 configure.ac:
 gl_FUNC_FCNTL
+if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
+  AC_LIBOBJ([fcntl])
+fi
 gl_FCNTL_MODULE_INDICATOR([fcntl])
 
 Makefile.am: