From ccc2db08ab28dd8b03de8f2e361d12359b4cd2f4 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 21 May 2011 16:54:22 +0200 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ m4/pipe.m4 | 3 +-- modules/pipe-posix | 3 +++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 26513d524..f2cd4ef83 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2011-05-21 Bruno Haible + 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 + 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 ae0004997..901317470 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 e29f92da7..e8520d03c 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: -- 2.11.0