trivial: look for an empty string for systemd and udev directories

This commit is contained in:
Mario Limonciello 2017-08-17 09:22:39 -05:00
parent 919e4ec61d
commit 7cc2679f09
2 changed files with 4 additions and 4 deletions

View File

@ -203,12 +203,12 @@ if get_option('enable-consolekit')
endif
systemdunitdir = get_option('with-systemdunitdir')
if systemdunitdir == 'dynamic'
if systemdunitdir == ''
systemdunitdir = systemd.get_pkgconfig_variable('systemdsystemunitdir')
endif
udevdir = get_option('with-udevdir')
if udevdir == 'dynamic'
if udevdir == ''
udevdir = udev.get_pkgconfig_variable('udevdir')
endif

View File

@ -15,5 +15,5 @@ option('enable-dummy', type : 'boolean', value : false, description : 'enable th
option('enable-gpg', type : 'boolean', value : true, description : 'enable the GPG verification support')
option('enable-pkcs7', type : 'boolean', value : true, description : 'enable the PKCS7 verification support')
option('with-bootdir', type : 'string', value : '/boot/efi', description : 'Directory for EFI system partition')
option('with-systemdunitdir', type: 'string', value: 'dynamic', description: 'Directory for systemd units')
option('with-udevdir', type: 'string', value: 'dynamic', description: 'Directory for udev rules')
option('with-systemdunitdir', type: 'string', value: '', description: 'Directory for systemd units')
option('with-udevdir', type: 'string', value: '', description: 'Directory for udev rules')