From 5788587b43884f0a61770d4d8fb03f8fe78ba726 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 7 May 2011 13:32:46 +0200 Subject: [PATCH] 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... * modules/fsusage (configure.ac): ... to here. --- ChangeLog | 7 +++++++ m4/fsusage.m4 | 6 +----- modules/fsusage | 4 ++++ 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 137725760..954616191 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 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... + * modules/fsusage (configure.ac): ... to here. + +2011-05-07 Bruno Haible + freopen: Move AC_LIBOBJ invocations to module description. * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN invocations from here... diff --git a/m4/fsusage.m4 b/m4/fsusage.m4 index 4592ff888..3459e63b3 100644 --- a/m4/fsusage.m4 +++ b/m4/fsusage.m4 @@ -1,4 +1,4 @@ -# serial 27 +# serial 28 # Obtaining file system usage information. # Copyright (C) 1997-1998, 2000-2001, 2003-2011 Free Software Foundation, Inc. @@ -19,10 +19,6 @@ AC_DEFUN([gl_FSUSAGE], #include #endif]]) gl_FILE_SYSTEM_USAGE([gl_cv_fs_space=yes], [gl_cv_fs_space=no]) - if test $gl_cv_fs_space = yes; then - AC_LIBOBJ([fsusage]) - gl_PREREQ_FSUSAGE_EXTRA - fi ]) # Try to determine how a program can obtain file system usage information. diff --git a/modules/fsusage b/modules/fsusage index cdefb60cf..33d956f2d 100644 --- a/modules/fsusage +++ b/modules/fsusage @@ -13,6 +13,10 @@ full-read [test $gl_cv_fs_space = yes] configure.ac: gl_FSUSAGE +if test $gl_cv_fs_space = yes; then + AC_LIBOBJ([fsusage]) + gl_PREREQ_FSUSAGE_EXTRA +fi Makefile.am: -- 2.11.0