mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-03-03 13:51:47 -05:00
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@429 f882894a-f735-0410-b71e-b25c423dba1c
32 lines
712 B
Text
32 lines
712 B
Text
#serial 2
|
|
|
|
dnl From Jim Meyering.
|
|
dnl
|
|
dnl See if struct statfs has the f_fstypename member.
|
|
dnl If so, define HAVE_F_FSTYPENAME_IN_STATFS.
|
|
dnl
|
|
|
|
AC_DEFUN(jm_FSTYPENAME,
|
|
[
|
|
AC_CACHE_CHECK([for f_fstypename in struct statfs],
|
|
fu_cv_sys_f_fstypename_in_statfs,
|
|
[
|
|
AC_TRY_COMPILE(
|
|
[
|
|
#include <sys/param.h>
|
|
#include <sys/types.h>
|
|
#include <sys/mount.h>
|
|
],
|
|
[struct statfs s; int i = sizeof s.f_fstypename;],
|
|
fu_cv_sys_f_fstypename_in_statfs=yes,
|
|
fu_cv_sys_f_fstypename_in_statfs=no
|
|
)
|
|
]
|
|
)
|
|
|
|
if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
|
|
AC_DEFINE_UNQUOTED(HAVE_F_FSTYPENAME_IN_STATFS, 1,
|
|
[Define if struct statfs has the f_fstypename member.])
|
|
fi
|
|
]
|
|
)
|