build: check for xattr support
authorAndrew Tridgell <tridge@samba.org>
Sun, 7 Mar 2010 11:59:25 +0000 (22:59 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:26:45 +0000 (20:26 +1000)
lib/util/wscript_configure

index 09687a997b92d76e25082cc909360728c429d2f4..c25ce78eb3c1338301efb1717a49ce41b9f32fc3 100644 (file)
@@ -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)
+