From a10a02ed33c3a5ef4541d44182a5490854b4eff6 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 21 May 2011 17:31:29 +0200 Subject: [PATCH] pwrite: Move AC_LIBOBJ invocations to module description. * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here... * modules/pwrite (configure.ac): ... to here. --- ChangeLog | 6 ++++++ m4/pwrite.m4 | 5 +---- modules/pwrite | 3 +++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4bbc4509e..fade437d8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2011-05-21 Bruno Haible + pwrite: Move AC_LIBOBJ invocations to module description. + * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here... + * modules/pwrite (configure.ac): ... to here. + +2011-05-21 Bruno Haible + putenv: Move AC_LIBOBJ invocations to module description. * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here... * modules/putenv (configure.ac): ... to here. diff --git a/m4/pwrite.m4 b/m4/pwrite.m4 index b6aecce70..d4001680d 100644 --- a/m4/pwrite.m4 +++ b/m4/pwrite.m4 @@ -1,4 +1,4 @@ -# pwrite.m4 serial 3 +# pwrite.m4 serial 4 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, @@ -100,7 +100,4 @@ changequote([,])dnl else HAVE_PWRITE=0 fi - if test $HAVE_PWRITE = 0 || test $REPLACE_PWRITE = 1; then - AC_LIBOBJ([pwrite]) - fi ]) diff --git a/modules/pwrite b/modules/pwrite index f2dd02fb2..aadce1ef3 100644 --- a/modules/pwrite +++ b/modules/pwrite @@ -13,6 +13,9 @@ write [test $HAVE_PWRITE = 0 || test $REPLACE_PWRITE = 1] configure.ac: gl_FUNC_PWRITE +if test $HAVE_PWRITE = 0 || test $REPLACE_PWRITE = 1; then + AC_LIBOBJ([pwrite]) +fi gl_UNISTD_MODULE_INDICATOR([pwrite]) Makefile.am: -- 2.11.0