From e585fc6b5f908f3e783fa23a1dfc492b82af8298 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 21 May 2011 17:12:12 +0200 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ m4/pread.m4 | 5 +---- modules/pread | 3 +++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index cad7c70e8..edb2ee831 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2011-05-21 Bruno Haible + 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 + posix_spawn*: Move AC_LIBOBJ invocations to module description. * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here... diff --git a/m4/pread.m4 b/m4/pread.m4 index 92e8da360..09a970760 100644 --- 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 @@ changequote([,])dnl else HAVE_PREAD=0 fi - if test $HAVE_PREAD = 0 || test $REPLACE_PREAD = 1; then - AC_LIBOBJ([pread]) - fi ]) diff --git a/modules/pread b/modules/pread index 5fcb47ca2..537563a9d 100644 --- a/modules/pread +++ b/modules/pread @@ -13,6 +13,9 @@ read [test $HAVE_PREAD = 0 || test $REPLACE_PREAD = 1] 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: -- 2.11.0