mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
meson: add option to disable libacl support
This commit is contained in:
parent
dc25d2adb5
commit
36f0387efc
17
meson.build
17
meson.build
@ -660,6 +660,17 @@ if want_polkit != 'false'
|
|||||||
endif
|
endif
|
||||||
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')
|
want_audit = get_option('audit')
|
||||||
if want_audit != 'false'
|
if want_audit != 'false'
|
||||||
libaudit = dependency('audit', required : want_audit == 'true')
|
libaudit = dependency('audit', required : want_audit == 'true')
|
||||||
@ -845,12 +856,6 @@ else
|
|||||||
liblz4 = []
|
liblz4 = []
|
||||||
endif
|
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')
|
want_glib = get_option('glib')
|
||||||
if want_glib != 'false'
|
if want_glib != 'false'
|
||||||
libglib = dependency('glib-2.0',
|
libglib = dependency('glib-2.0',
|
||||||
|
@ -175,6 +175,8 @@ option('polkit', type : 'combo', choices : ['auto', 'true', 'false'],
|
|||||||
option('ima', type : 'boolean',
|
option('ima', type : 'boolean',
|
||||||
description : 'IMA support')
|
description : 'IMA support')
|
||||||
|
|
||||||
|
option('acl', type : 'combo', choices : ['auto', 'true', 'false'],
|
||||||
|
description : 'libacl support')
|
||||||
option('audit', type : 'combo', choices : ['auto', 'true', 'false'],
|
option('audit', type : 'combo', choices : ['auto', 'true', 'false'],
|
||||||
description : 'libaudit support')
|
description : 'libaudit support')
|
||||||
option('blkid', type : 'combo', choices : ['auto', 'true', 'false'],
|
option('blkid', type : 'combo', choices : ['auto', 'true', 'false'],
|
||||||
|
Loading…
Reference in New Issue
Block a user