X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Ffsusage.m4;h=451a5cc8cc4d5ca6c4e71f35496af3a6bc2f7605;hb=3a318239ecc55fac810a101b8d3923356c6e71c4;hp=c9714f27b4d98b5fc4fd2951a707ea743424dda9;hpb=67020064bced85a59816beb91993abf983694ecf;p=gnulib.git diff --git a/m4/fsusage.m4 b/m4/fsusage.m4 index c9714f27b..451a5cc8c 100644 --- a/m4/fsusage.m4 +++ b/m4/fsusage.m4 @@ -1,12 +1,17 @@ -#serial 1 +#serial 8 # From fileutils/configure.in -# Determine how a program can obtain filesystems usage information. -AC_DEFUN(jm_FILE_SYSTEM_USAGE, +# Try to determine how a program can obtain filesystem usage information. +# If successful, define the appropriate symbol (see fsusage.c) and +# execute ACTION-IF-FOUND. Otherwise, execute ACTION-IF-NOT-FOUND. +# +# jm_FILE_SYSTEM_USAGE([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) + +AC_DEFUN([jm_FILE_SYSTEM_USAGE], [ -AC_CHECKING(how to get filesystem space usage) +echo "checking how to get filesystem space usage..." ac_fsusage_space=no # Perform only the link test since it seems there are no variants of the @@ -174,12 +179,15 @@ if test $ac_fsusage_space = no; then fi if test $ac_fsusage_space = no; then -# SVR2 -AC_TRY_CPP([#include ], - AC_DEFINE(STAT_READ_FILSYS, 1, -[ Define if there is no specific function for reading filesystems usage - information and you have the header file. (SVR2)]) - ac_fsusage_space=yes) + # SVR2 + AC_TRY_CPP([#include + ], + AC_DEFINE(STAT_READ_FILSYS, 1, + [Define if there is no specific function for reading filesystems usage + information and you have the header file. (SVR2)]) + ac_fsusage_space=yes) fi +AS_IF([test $ac_fsusage_space = yes], [$1], [$2]) + ])