changeset 15072:a30201cdf27e

read: Move AC_LIBOBJ invocations to module description. * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here... * modules/read (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 18:03:38 +0200
parents 98ec1e084801
children 5235b13c9a16
files ChangeLog m4/read.m4 modules/read
diffstat 3 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+	read: Move AC_LIBOBJ invocations to module description.
+	* m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
+	* modules/read (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
 	rawmemchr: Move AC_LIBOBJ invocations to module description.
--- a/m4/read.m4
+++ b/m4/read.m4
@@ -1,4 +1,4 @@
-# read.m4 serial 1
+# read.m4 serial 2
 dnl Copyright (C) 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,
@@ -14,7 +14,6 @@
     gl_NONBLOCKING_IO
     if test $gl_cv_have_nonblocking != yes; then
       REPLACE_READ=1
-      AC_LIBOBJ([read])
     fi
   ])
 ])
--- a/modules/read
+++ b/modules/read
@@ -10,6 +10,9 @@
 
 configure.ac:
 gl_FUNC_READ
+if test $REPLACE_READ = 1; then
+  AC_LIBOBJ([read])
+fi
 gl_UNISTD_MODULE_INDICATOR([read])
 
 Makefile.am: