3 # Define HAVE_ST_DM_MODE if struct stat has an st_dm_mode member.
5 AC_DEFUN([AC_STRUCT_ST_DM_MODE],
6 [AC_CACHE_CHECK([for st_dm_mode in struct stat], ac_cv_struct_st_dm_mode,
7 [AC_TRY_COMPILE([#include <sys/types.h>
8 #include <sys/stat.h>], [struct stat s; s.st_dm_mode;],
9 ac_cv_struct_st_dm_mode=yes,
10 ac_cv_struct_st_dm_mode=no)])
12 if test $ac_cv_struct_st_dm_mode = yes; then
13 AC_DEFINE(HAVE_ST_DM_MODE, 1,
14 [Define if struct stat has an st_dm_mode member. ])