]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: add option to disable libacl support
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 21 Apr 2017 17:53:59 +0000 (13:53 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 24 Apr 2017 23:25:33 +0000 (19:25 -0400)
meson.build
meson_options.txt

index 97fff496e1527893febf34726d309a1e279a0f1f..4515c0098d1a2a8a8fe28504582b05361f4abf93 100644 (file)
@@ -660,6 +660,17 @@ if want_polkit != 'false'
         endif
 endif
 
+want_acl = get_option('acl')
+if want_acl != 'false'
+        libacl = cc.find_library('acl', required : want_acl == 'true')
+        if libacl.found()
+                conf.set('HAVE_ACL', 1)
+                m4_defines += ['-DHAVE_ACL']
+        endif
+else
+        libacl = []
+endif
+
 want_audit = get_option('audit')
 if want_audit != 'false'
         libaudit = dependency('audit', required : want_audit == 'true')
@@ -845,12 +856,6 @@ else
         liblz4 = []
 endif
 
-libacl = cc.find_library('acl', required : false)
-if libacl.found()
-        conf.set('HAVE_ACL', 1)
-        m4_defines += ['-DHAVE_ACL']
-endif
-
 want_glib = get_option('glib')
 if want_glib != 'false'
         libglib =    dependency('glib-2.0',
index 132c05ab561d32fb923e019c3a72bc4fda0230ec..790119cd1f5d6e4a98826a72aa0abdcf3a77d9ef 100644 (file)
@@ -175,6 +175,8 @@ option('polkit', type : 'combo', choices : ['auto', 'true', 'false'],
 option('ima', type : 'boolean',
        description : 'IMA support')
 
+option('acl', type : 'combo', choices : ['auto', 'true', 'false'],
+       description : 'libacl support')
 option('audit', type : 'combo', choices : ['auto', 'true', 'false'],
        description : 'libaudit support')
 option('blkid', type : 'combo', choices : ['auto', 'true', 'false'],