1 dnl ### A macro to determine whether statfs64 is defined.
2 AC_DEFUN([AC_STATFS64],
3 [AC_MSG_CHECKING(for statfs64 in sys/vfs.h)
4 AC_CACHE_VAL(ac_cv_type_statfs64,
5 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifdef LINUX
6 #include <linux/types.h>
8 #endif]], [[struct statfs64 st;]])],[ac_cv_type_statfs64=yes],[ac_cv_type_statfs64=no])])
9 AC_MSG_RESULT($ac_cv_type_statfs64)
10 if test "$ac_cv_type_statfs64" = yes
12 AC_DEFINE([HAVE_STATFS64], 1,
13 [Define if statfs64 is available in sys/vfs.h.])