X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Ffsusage.m4;h=e5caa7f3842f6bfe6c3395d2d83c08bd7fafc7b6;hb=28cd162544eb2e781597f3e3c59d70b0fb22893b;hp=49ca817f36a776c05b3aed04fb84891111cbeeb0;hpb=dee44991fb780afe18bcac0cf361cb05f5553ae8;p=gnulib.git diff --git a/m4/fsusage.m4 b/m4/fsusage.m4 index 49ca817f3..e5caa7f38 100644 --- a/m4/fsusage.m4 +++ b/m4/fsusage.m4 @@ -1,4 +1,4 @@ -#serial 3 +#serial 6 # From fileutils/configure.in @@ -179,14 +179,21 @@ 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 -AC_SHELL_IFELSE([test $ac_fsusage_space = yes], [$1], [$2])dnl +dnl FIXME: this should use AS_IF instead: +dnl AS_IF([test $ac_fsusage_space = found], [$1], [$2]) +if test $ac_fsusage_space = yes; then +$1 +else +$2 +fi ])