From ae1c2b90226d610e1d4e3c992d8b8ea4515aa846 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 7 Mar 2010 22:59:25 +1100 Subject: build: check for xattr support --- lib/util/wscript_configure | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib') diff --git a/lib/util/wscript_configure b/lib/util/wscript_configure index 09687a997b..c25ce78eb3 100644 --- a/lib/util/wscript_configure +++ b/lib/util/wscript_configure @@ -11,3 +11,9 @@ conf.CHECK_FUNCS_IN('flistxattr', 'attr', checklibc=True) conf.CHECK_STRUCTURE_MEMBER('struct statvfs', 'f_frsize', define='HAVE_FRSIZE') +conf.CHECK_CODE('getxattr(NULL, NULL, NULL, 0, 0, 0)', + define='XATTR_ADDITIONAL_OPTIONS') + +if conf.CONFIG_SET('HAVE_FLISTXATTR'): + conf.DEFINE('HAVE_XATTR_SUPPORT', 1) + -- cgit