pwrite: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 15:31:29 +0000 (17:31 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:39 +0000 (00:06 +0200)
* m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
* modules/pwrite (configure.ac): ... to here.

ChangeLog
m4/pwrite.m4
modules/pwrite

index 4bbc450..fade437 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       pwrite: Move AC_LIBOBJ invocations to module description.
+       * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
+       * modules/pwrite (configure.ac): ... to here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
        putenv: Move AC_LIBOBJ invocations to module description.
        * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
        * modules/putenv (configure.ac): ... to here.
index b6aecce..d400168 100644 (file)
@@ -1,4 +1,4 @@
-# pwrite.m4 serial 3
+# pwrite.m4 serial 4
 dnl Copyright (C) 2010-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,
@@ -100,7 +100,4 @@ changequote([,])dnl
   else
     HAVE_PWRITE=0
   fi
-  if test $HAVE_PWRITE = 0 || test $REPLACE_PWRITE = 1; then
-    AC_LIBOBJ([pwrite])
-  fi
 ])
index f2dd02f..aadce1e 100644 (file)
@@ -13,6 +13,9 @@ write           [test $HAVE_PWRITE = 0 || test $REPLACE_PWRITE = 1]
 
 configure.ac:
 gl_FUNC_PWRITE
+if test $HAVE_PWRITE = 0 || test $REPLACE_PWRITE = 1; then
+  AC_LIBOBJ([pwrite])
+fi
 gl_UNISTD_MODULE_INDICATOR([pwrite])
 
 Makefile.am: