*** empty log message ***
[gnulib.git] / m4 / fsusage.m4
index c9714f2..8a730bf 100644 (file)
@@ -1,12 +1,17 @@
-#serial 1
+#serial 5
 
 # From fileutils/configure.in
-# Determine how a program can obtain filesystems usage information.
+
+# 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
@@ -182,4 +187,6 @@ AC_TRY_CPP([#include <sys/filsys.h>],
   ac_fsusage_space=yes)
 fi
 
+AS_IF([test $ac_fsusage_space = yes], [$1], [$2])dnl
+
 ])