From: Bruno Haible Date: Sat, 7 May 2011 11:34:55 +0000 (+0200) Subject: fsync: Move AC_LIBOBJ invocations to module description. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ca9e7e59bc89fa30eb0c8693e67253db90b0ab6;p=pspp 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. --- diff --git a/ChangeLog b/ChangeLog index 9546161918..18546a2c74 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +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. diff --git a/m4/fsync.m4 b/m4/fsync.m4 index 1aacdfaed3..c0b601a496 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 fa01e9b122..0092226ca8 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: