From 1ca9e7e59bc89fa30eb0c8693e67253db90b0ab6 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 7 May 2011 13:34:55 +0200 Subject: [PATCH] fsync: Move AC_LIBOBJ invocations to module description. * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC invocations from here... * modules/fsync (configure.ac): ... to here. --- ChangeLog | 7 +++++++ m4/fsync.m4 | 4 +--- modules/fsync | 4 ++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 954616191..18546a2c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-05-07 Bruno Haible + fsync: Move AC_LIBOBJ invocations to module description. + * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC + invocations from here... + * modules/fsync (configure.ac): ... to here. + +2011-05-07 Bruno Haible + fsusage: Move AC_LIBOBJ invocations to module description. * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FSUSAGE_EXTRA invocations from here... diff --git a/m4/fsync.m4 b/m4/fsync.m4 index 1aacdfaed..c0b601a49 100644 --- a/m4/fsync.m4 +++ b/m4/fsync.m4 @@ -1,4 +1,4 @@ -# fsync.m4 serial 1 +# fsync.m4 serial 2 dnl Copyright (C) 2008-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, @@ -10,8 +10,6 @@ AC_DEFUN([gl_FUNC_FSYNC], AC_CHECK_FUNCS_ONCE([fsync]) if test $ac_cv_func_fsync = no; then HAVE_FSYNC=0 - AC_LIBOBJ([fsync]) - gl_PREREQ_FSYNC fi ]) diff --git a/modules/fsync b/modules/fsync index fa01e9b12..0092226ca 100644 --- a/modules/fsync +++ b/modules/fsync @@ -10,6 +10,10 @@ unistd configure.ac: gl_FUNC_FSYNC +if test $HAVE_FSYNC = 0; then + AC_LIBOBJ([fsync]) + gl_PREREQ_FSYNC +fi gl_UNISTD_MODULE_INDICATOR([fsync]) Makefile.am: -- 2.11.0