s3-waf: correctly handle the libcap dependency when libcap is not installed
authorAndrew Tridgell <tridge@samba.org>
Thu, 8 Apr 2010 21:03:40 +0000 (15:03 -0600)
committerKai Blin <kai@samba.org>
Thu, 20 May 2010 20:16:13 +0000 (22:16 +0200)
source3/wscript

index bec3dbb04b6843ced34ba64cac6d9583459bbd7d..8931125e287f2c94a6abf2fef74913ff8a8dd952 100644 (file)
@@ -149,8 +149,9 @@ main() {
                                 headers='sys/stat.h')
 
     # Check for POSIX capability support
+    conf.CHECK_FUNCS_IN('cap_get_proc', 'cap', headers='sys/capability.h')
+
     if "HAVE_SYS_CAPABILITY_H" in conf.env:
-        conf.CHECK_FUNCS_IN('cap_get_proc', 'cap')
         conf.CHECK_CODE('''
         cap_t cap;
         cap_value_t vals[1];