summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--m4/pipe.m43
-rw-r--r--modules/pipe-posix3
3 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 26513d5249..f2cd4ef831 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
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.
* m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
diff --git a/m4/pipe.m4 b/m4/pipe.m4
index ae00049977..901317470f 100644
--- 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_DEFUN([gl_FUNC_PIPE],
AC_CHECK_FUNCS_ONCE([pipe])
if test $ac_cv_func_pipe != yes; then
HAVE_PIPE=0
- AC_LIBOBJ([pipe])
fi
])
diff --git a/modules/pipe-posix b/modules/pipe-posix
index e29f92da7a..e8520d03c8 100644
--- a/modules/pipe-posix
+++ b/modules/pipe-posix
@@ -10,6 +10,9 @@ unistd
configure.ac:
gl_FUNC_PIPE
+if test $HAVE_PIPE = 0; then
+ AC_LIBOBJ([pipe])
+fi
gl_UNISTD_MODULE_INDICATOR([pipe])
Makefile.am: