fstypename.m4 962 B

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