summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-08 15:03:40 -0600
committerKai Blin <kai@samba.org>2010-05-20 22:16:13 +0200
commit0077761f7ec0e404e67ff602135e1b4189b4c5c6 (patch)
tree8f20503083da0a498ed8a0755825e8907f92b59e /source3
parentfa48325bb65749af87106d4e19e29be1f91e6477 (diff)
downloadsamba-0077761f7ec0e404e67ff602135e1b4189b4c5c6.tar.gz
samba-0077761f7ec0e404e67ff602135e1b4189b4c5c6.tar.bz2
samba-0077761f7ec0e404e67ff602135e1b4189b4c5c6.zip
s3-waf: correctly handle the libcap dependency when libcap is not installed
Diffstat (limited to 'source3')
-rw-r--r--source3/wscript3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/wscript b/source3/wscript
index bec3dbb04b..8931125e28 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -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];