-dep_systemd = dependency('libsystemd', required: false)
+opt_systemd = get_option('systemd')
+
+dep_systemd = dependency('libsystemd', required: opt_systemd)
conf.set('HAVE_SYSTEMD', dep_systemd.found(), description: 'systemd')
summary('Systemd', dep_systemd.found(), bool_yn: true, section: 'Configuration')
if dep_systemd.found()
summary('Version', dep_systemd.version(), section: 'Systemd')
-
- systemd_service_user = get_option('systemd-service-user')
- systemd_service_group = get_option('systemd-service-group')
-
- summary('Service User', systemd_service_user, section: 'Systemd')
- summary('Service Group', systemd_service_group, section: 'Systemd')
endif
option('tools', type: 'boolean', value: false, description: 'Build extra tools')
option('tools-ixfrdist', type: 'boolean', value: false, description: 'Build ixfrdist')
option('lua-records', type: 'boolean', value: true, description: 'Support Lua records')
+option('systemd', type: 'feature', value: 'auto', description: 'Systemd notification (requires libsystemd)')
option('systemd-service-user', type: 'string', value: 'pdns', description: 'Systemd service user (setuid and unit file; user is not created)')
option('systemd-service-group', type: 'string', value: 'pdns', description: 'Systemd service group (setgid and unit file; group is not created)')
option('auto-var-init', type: 'combo', value: 'disabled', choices: ['zero', 'pattern', 'disabled'], description: 'Enable initialization of automatic variables')