diff --git a/meson.build b/meson.build index 7bcb872d1..28f9d3dc3 100644 --- a/meson.build +++ b/meson.build @@ -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 diff --git a/meson_options.txt b/meson_options.txt index d039576d9..1e385ceb7 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -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')