meson: also search for libcap directly

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-04-27 01:30:30 -04:00
parent 77018a8c26
commit 1800cc8546
1 changed files with 6 additions and 1 deletions

View File

@ -614,7 +614,12 @@ libm = cc.find_library('m')
libdl = cc.find_library('dl')
libcrypt = cc.find_library('crypt')
libcap = dependency('libcap')
libcap = dependency('libcap', required : false)
if not libcap.found()
# Compat with Ubuntu 14.04 which ships libcap w/o .pc file
libcap = cc.find_library('cap')
endif
libmount = dependency('mount',
version : '>= 2.27')