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

ChangeLog
m4/pread.m4
modules/pread

index cad7c70..edb2ee8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       pread: Move AC_LIBOBJ invocations to module description.
+       * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
+       * modules/pread (configure.ac): ... to here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
        posix_spawn*: Move AC_LIBOBJ invocations to module description.
        * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
        gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
index 92e8da3..09a9707 100644 (file)
@@ -1,4 +1,4 @@
-# pread.m4 serial 4
+# pread.m4 serial 5
 dnl Copyright (C) 2009-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,
@@ -82,7 +82,4 @@ changequote([,])dnl
   else
     HAVE_PREAD=0
   fi
-  if test $HAVE_PREAD = 0 || test $REPLACE_PREAD = 1; then
-    AC_LIBOBJ([pread])
-  fi
 ])
index 5fcb47c..537563a 100644 (file)
@@ -13,6 +13,9 @@ read            [test $HAVE_PREAD = 0 || test $REPLACE_PREAD = 1]
 
 configure.ac:
 gl_FUNC_PREAD
+if test $HAVE_PREAD = 0 || test $REPLACE_PREAD = 1; then
+  AC_LIBOBJ([pread])
+fi
 gl_UNISTD_MODULE_INDICATOR([pread])
 
 Makefile.am: