build: Move systemd checks to lib/util
[samba.git] / lib / util / wscript
1 def set_options(opt):
2     ''' This is a bit strange, but disable is the flag, not enable. '''
3     opt.add_option('--disable-fault-handling', action='store_true', dest='disable_fault_handling', help=('disable the fault handlers'), default=False)
4
5     opt.add_option('--with-systemd',
6                    help=("Enable systemd integration"),
7                    action='store_true', dest='enable_systemd')
8
9     opt.add_option('--without-systemd',
10                    help=("Disable systemd integration"),
11                    action='store_false', dest='enable_systemd')