3 dnl #############################################
4 dnl see if we have nanosecond resolution for stat
5 AC_CACHE_CHECK([for tv_nsec nanosecond fields in struct stat],ac_cv_have_stat_tv_nsec,[
17 ac_cv_decl_have_stat_tv_nsec=yes,
18 ac_cv_decl_have_stat_tv_nsec=no)
20 if test x"$ac_cv_decl_have_stat_tv_nsec" = x"yes"; then
21 AC_DEFINE(HAVE_STAT_TV_NSEC,1,[Whether stat has tv_nsec nanosecond fields])
24 dnl ############################################
25 dnl use flistxattr as the key function for having
26 dnl sufficient xattr support for posix xattr backend
27 AC_CHECK_HEADERS(sys/attributes.h attr/xattr.h sys/xattr.h)
28 AC_SEARCH_LIBS(flistxattr, [attr])
29 AC_CHECK_FUNCS(flistxattr)
31 if test x"$ac_cv_func_flistxattr" = x"yes"; then
32 AC_DEFINE(HAVE_XATTR_SUPPORT,1,[Whether we have xattr support])
35 AC_CHECK_HEADERS(blkid/blkid.h)
36 AC_SEARCH_LIBS(blkid_get_cache, [blkid])
37 AC_CHECK_FUNCS(blkid_get_cache)
38 if test x"$ac_cv_func_blkid_get_cache" = x"yes"; then
39 AC_DEFINE(HAVE_LIBBLKID,1,[Whether we have blkid support (e2fsprogs)])