make systemd optional and always install units --- a/meson.build +++ b/meson.build @@ -231,7 +231,7 @@ summary({'sendmmsg': sendmmsg, ### Systemd; most is in systemd/meson.build systemd_files = get_option('systemd_files') -libsystemd = dependency('libsystemd', version: '>=235', required: systemd_files == 'enabled') +libsystemd = dependency('libsystemd', version: '>=235', required: get_option('systemd')) summary({'libsystemd support': libsystemd.found(), 'files': systemd_files == 'enabled', }, section: 'Systemd', bool_yn: true) --- a/meson_options.txt +++ b/meson_options.txt @@ -239,3 +239,10 @@ option( value: 'auto', description: 'add rpath to the knot resolver executables', ) + +option( + 'systemd', + type: 'feature', + value: 'auto', + description: 'systemd watchdog support', +)