mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
meson: Improve initconfdir defaults
Keep /etc/sysconfig as the fallback, but pick more suitable values for various Linux distros. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
6f42d9610c
commit
d18572b4b7
11
meson.build
11
meson.build
@ -83,7 +83,16 @@ endif
|
||||
|
||||
initconfdir = get_option('initconfdir')
|
||||
if initconfdir == ''
|
||||
initconfdir = sysconfdir / 'sysconfig'
|
||||
if (os_release.contains('alpine') or
|
||||
os_release.contains('arch') or
|
||||
os_release.contains('gentoo'))
|
||||
initconfdir = sysconfdir / 'conf.d'
|
||||
# Ubuntu has ID_LIKE=debian
|
||||
elif os_release.contains('debian')
|
||||
initconfdir = sysconfdir / 'default'
|
||||
else
|
||||
initconfdir = sysconfdir / 'sysconfig'
|
||||
endif
|
||||
endif
|
||||
|
||||
bindir = prefix / get_option('bindir')
|
||||
|
Loading…
Reference in New Issue
Block a user