changeset 15174:839690b99cab

write: Move AC_LIBOBJ invocations to module description. * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here... * modules/write (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 May 2011 20:51:00 +0200
parents eb33ef582ed0
children 3a3c589d2407
files ChangeLog m4/write.m4 modules/write
diffstat 3 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+	write: Move AC_LIBOBJ invocations to module description.
+	* m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
+	* modules/write (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
 	wmemset: Move AC_LIBOBJ invocations to module description.
--- a/m4/write.m4
+++ b/m4/write.m4
@@ -1,4 +1,4 @@
-# write.m4 serial 2
+# write.m4 serial 3
 dnl Copyright (C) 2008-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -22,7 +22,4 @@
       REPLACE_WRITE=1
     fi
   ])
-  if test $REPLACE_WRITE = 1; then
-    AC_LIBOBJ([write])
-  fi
 ])
--- a/modules/write
+++ b/modules/write
@@ -11,6 +11,9 @@
 
 configure.ac:
 gl_FUNC_WRITE
+if test $REPLACE_WRITE = 1; then
+  AC_LIBOBJ([write])
+fi
 gl_UNISTD_MODULE_INDICATOR([write])
 
 Makefile.am: