5 dnl See if struct statfs has the f_fstypename member.
6 dnl If so, define HAVE_F_FSTYPENAME_IN_STATFS.
9 # Copyright (C) 1998, 1999, 2001, 2004 Free Software Foundation, Inc.
10 # This file is free software; the Free Software Foundation
11 # gives unlimited permission to copy and/or distribute it,
12 # with or without modifications, as long as this notice is preserved.
14 AC_DEFUN([gl_FSTYPENAME],
16 AC_CACHE_CHECK([for f_fstypename in struct statfs],
17 fu_cv_sys_f_fstypename_in_statfs,
21 #include <sys/param.h>
22 #include <sys/types.h>
23 #include <sys/mount.h>
25 [struct statfs s; int i = sizeof s.f_fstypename;],
26 fu_cv_sys_f_fstypename_in_statfs=yes,
27 fu_cv_sys_f_fstypename_in_statfs=no
32 if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
33 AC_DEFINE(HAVE_F_FSTYPENAME_IN_STATFS, 1,
34 [Define if struct statfs has the f_fstypename member.])