mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55: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
@ -83,7 +83,16 @@ endif
|
|||||||
|
|
||||||
initconfdir = get_option('initconfdir')
|
initconfdir = get_option('initconfdir')
|
||||||
if initconfdir == ''
|
if initconfdir == ''
|
||||||
|
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'
|
initconfdir = sysconfdir / 'sysconfig'
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
bindir = prefix / get_option('bindir')
|
bindir = prefix / get_option('bindir')
|
||||||
|
Loading…
Reference in New Issue
Block a user