summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-27 01:30:30 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-27 01:30:30 -0400
commit1800cc8546c0fb0da8b2781c72c70ce922e5452e (patch)
tree97675445e4a9df484c2b0857079f8137a636bd50 /meson.build
parent77018a8c267c08ee8f70f51963e7fcc3bca70ba8 (diff)
meson: also search for libcap directly
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build7
1 files changed, 6 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index b18e645d39..c412aff91f 100644
--- a/meson.build
+++ b/meson.build
@@ -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')