X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Ffstypename.m4;h=c72ecb80a66da4b582d547b47380abe5cfdf4532;hb=a0f402b76e57d57abd1961f20683a25d46179297;hp=75723a14fbac23006884ca5ba558a475837d19d8;hpb=6fe8d7498529e40705598c70355fd2f38efc7aea;p=gnulib.git diff --git a/m4/fstypename.m4 b/m4/fstypename.m4 index 75723a14f..c72ecb80a 100644 --- a/m4/fstypename.m4 +++ b/m4/fstypename.m4 @@ -1,32 +1,23 @@ -#serial 3 +#serial 6 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 If so, define HAVE_STRUCT_STATFS_F_FSTYPENAME. 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 -#include -#include - ], - [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 - ) - ] - ) +# Copyright (C) 1998-1999, 2001, 2004, 2006, 2009-2013 Free Software +# Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. - if test $fu_cv_sys_f_fstypename_in_statfs = yes; then - AC_DEFINE(HAVE_F_FSTYPENAME_IN_STATFS, 1, - [Define if struct statfs has the f_fstypename member.]) - fi - ] -) +AC_DEFUN([gl_FSTYPENAME], +[ + AC_CHECK_MEMBERS([struct statfs.f_fstypename],,, + [ + #include + #include + #include + ]) +])