1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

s3-waf: correctly handle the libcap dependency when libcap is not installed

This commit is contained in:
Andrew Tridgell 2010-04-08 15:03:40 -06:00 committed by Kai Blin
parent fa48325bb6
commit 0077761f7e

View 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];