File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -1726,11 +1726,53 @@ if test "$pac_cv_have_statfs" = yes ; then
17261726 AC_DEFINE(HAVE_STRUCT_STATFS,1,[Define if struct statfs can be compiled])
17271727fi
17281728
1729+ AC_MSG_CHECKING([for f_type member of statfs structure])
1730+ AC_TRY_COMPILE([
1731+ # ifdef HAVE_SYS_VFS_H
1732+ # include <sys/vfs.h>
1733+ # endif
1734+ # ifdef HAVE_SYS_STATVFS_H
1735+ # include <sys/statvfs.h>
1736+ # endif
1737+ # ifdef HAVE_SYS_PARAM_H
1738+ # include <sys/param.h>
1739+ # endif
1740+ # ifdef HAVE_SYS_MOUNT_H
1741+ # include <sys/mount.h>
1742+ # endif
1743+ # ifdef HAVE_STRING_H
1744+ # include <string.h>
1745+ # endif
1746+ ],[
1747+ struct statfs f;
1748+ memset(& f, 0, sizeof(f));
1749+ f.f_type = 0;
1750+ ],
1751+ pac_cv_have_statfs_f_type=yes,
1752+ pac_cv_have_statfs_f_type=no
1753+ )
1754+ AC_MSG_RESULT($pac_cv_have_statfs_f_type )
1755+ if test $pac_cv_have_statfs_f_type = yes ; then
1756+ AC_DEFINE(ROMIO_HAVE_STRUCT_STATFS_WITH_F_TYPE, 1,[Define if statfs has f_type])
1757+ fi
1758+
17291759AC_MSG_CHECKING([for f_fstypename member of statfs structure])
17301760AC_TRY_COMPILE([
1761+ # ifdef HAVE_SYS_VFS_H
1762+ # include <sys/vfs.h>
1763+ # endif
1764+ # ifdef HAVE_SYS_STATVFS_H
1765+ # include <sys/statvfs.h>
1766+ # endif
1767+ # ifdef HAVE_SYS_PARAM_H
17311768# include <sys/param.h>
1769+ # endif
1770+ # ifdef HAVE_SYS_MOUNT_H
17321771# include <sys/mount.h>
1772+ # endif
1773+ # ifdef HAVE_STRING_H
17331774# include <string.h>
1775+ # endif
17341776 ],[
17351777 struct statfs f;
17361778 memset(& f, 0, sizeof(f));
You can’t perform that action at this time.
0 commit comments