install_dir: lxclibexec)
if 'systemd' in init_script
- systemd = dependency('systemd')
- systemd_system_unit_dir = systemd.get_variable('systemdsystemunitdir')
+ systemd_system_unit_dir = get_option('systemd-unitdir')
+ if systemd_system_unit_dir == ''
+ systemd = dependency('systemd')
+ systemd_system_unit_dir = systemd.get_variable('systemdsystemunitdir')
+ endif
configure_file(
configuration: conf,
choices : ['systemd', 'sysvinit', 'upstart'], value : ['systemd'],
description : 'init script')
+# was --systemd-unidir in autotools
+# If set to "", the value is taken from the running systemd instance.
+option('systemd-unitdir', type : 'string', value: '',
+ description : 'systemd system unit directory')
+
# was --{disable,enable}-liburing in autotools
option('io-uring-event-loop', type: 'boolean', value: 'false',
description: 'Enable io-uring based event loop')