changeset 15059:6645dea6c600

pipe-posix: Move AC_LIBOBJ invocations to module description. * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here... * modules/pipe-posix (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 16:54:22 +0200
parents 925e4e76213b
children 4efb4fb07ff2
files ChangeLog m4/pipe.m4 modules/pipe-posix
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>
+
+	pipe-posix: Move AC_LIBOBJ invocations to module description.
+	* m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
+	* modules/pipe-posix (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
 	openat: Respect rules for use of AC_LIBOBJ.
--- a/m4/pipe.m4
+++ b/m4/pipe.m4
@@ -1,4 +1,4 @@
-# pipe.m4 serial 1
+# pipe.m4 serial 2
 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,
@@ -11,6 +11,5 @@
   AC_CHECK_FUNCS_ONCE([pipe])
   if test $ac_cv_func_pipe != yes; then
     HAVE_PIPE=0
-    AC_LIBOBJ([pipe])
   fi
 ])
--- a/modules/pipe-posix
+++ b/modules/pipe-posix
@@ -10,6 +10,9 @@
 
 configure.ac:
 gl_FUNC_PIPE
+if test $HAVE_PIPE = 0; then
+  AC_LIBOBJ([pipe])
+fi
 gl_UNISTD_MODULE_INDICATOR([pipe])
 
 Makefile.am: