From 282ffb1ac908c2631cd0bf47b4718a81b4aa2b8f Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sat, 25 Aug 2007 21:01:03 +0000 Subject: [PATCH] Added checks for statfs and statvfs --- config.h.in | 6 ++++++ configure | 4 +++- configure.ac | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/config.h.in b/config.h.in index 2abc2cfc..d8ab4dac 100644 --- a/config.h.in +++ b/config.h.in @@ -205,6 +205,12 @@ /* Define if the `S_IS*' macros in do not work properly. */ #undef STAT_MACROS_BROKEN +/* Define if you have the statfs function */ +#undef HAVE_STATFS + +/* Define if you have the statvfs function */ +#undef HAVE_STATVFS + /* Define if you have the ANSI C header files. */ #undef STDC_HEADERS diff --git a/configure b/configure index 787e543f..818df631 100755 --- a/configure +++ b/configure @@ -8627,7 +8627,9 @@ rm -f conftest.data -for ac_func in gettimeofday re_comp select + + +for ac_func in gettimeofday re_comp select statfs statvfs do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 diff --git a/configure.ac b/configure.ac index fbcbfc7e..6ff746c9 100644 --- a/configure.ac +++ b/configure.ac @@ -243,7 +243,7 @@ AC_PROG_GCC_TRADITIONAL AC_FUNC_MEMCMP AC_TYPE_SIGNAL AC_FUNC_UTIME_NULL -AC_CHECK_FUNCS(gettimeofday re_comp select) +AC_CHECK_FUNCS(gettimeofday re_comp select statfs statvfs) AC_CHECK_FUNCS(getspnam initgroups updwtmp updwtmpx) #