From 0077761f7ec0e404e67ff602135e1b4189b4c5c6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 8 Apr 2010 15:03:40 -0600 Subject: s3-waf: correctly handle the libcap dependency when libcap is not installed --- source3/wscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]; -- cgit