changeset 15063:98b3afcd33e1

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.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 17:12:12 +0200
parents 79593f73a1ef
children 1b845c6de6db
files ChangeLog m4/pread.m4 modules/pread
diffstat 3 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
--- a/m4/pread.m4
+++ b/m4/pread.m4
@@ -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 @@
   else
     HAVE_PREAD=0
   fi
-  if test $HAVE_PREAD = 0 || test $REPLACE_PREAD = 1; then
-    AC_LIBOBJ([pread])
-  fi
 ])
--- a/modules/pread
+++ b/modules/pread
@@ -13,6 +13,9 @@
 
 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: