st_dm_mode.m4 813 B

123456789101112131415161718192021222324
  1. # serial 6
  2. # Copyright (C) 1998-1999, 2001, 2009-2011 Free Software Foundation, Inc.
  3. # This file is free software; the Free Software Foundation
  4. # gives unlimited permission to copy and/or distribute it,
  5. # with or without modifications, as long as this notice is preserved.
  6. # Define HAVE_ST_DM_MODE if struct stat has an st_dm_mode member.
  7. AC_DEFUN([AC_STRUCT_ST_DM_MODE],
  8. [AC_CACHE_CHECK([for st_dm_mode in struct stat], [ac_cv_struct_st_dm_mode],
  9. [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
  10. #include <sys/types.h>
  11. #include <sys/stat.h>]], [[struct stat s; s.st_dm_mode;]])],
  12. [ac_cv_struct_st_dm_mode=yes],
  13. [ac_cv_struct_st_dm_mode=no])])
  14. if test $ac_cv_struct_st_dm_mode = yes; then
  15. AC_DEFINE([HAVE_ST_DM_MODE], [1],
  16. [Define if struct stat has an st_dm_mode member. ])
  17. fi
  18. ]
  19. )