meson.build: Install conf file under ${sysconfdir}

Base conf file path on sysconfdir. sysconfdir can be specified with an
absolute or relative path. To ensure PINOS_CONFIG_DIR is set correctly,
use join_paths() to prepend prefix when sysconfdir is relative.

Meson added support for sysconfdir in version 0.34.0 and join_paths() in
version 0.36.0.
This commit is contained in:
Linus Svensson 2016-10-21 19:01:02 +02:00 committed by Wim Taymans
parent 04ffc679fc
commit 740125a12e
2 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@ pinos_c_args = [
]
conf_config = configuration_data()
conf_install_dir = '@0@/etc/pinos'.format(get_option('prefix'))
conf_install_dir = '@0@/pinos'.format(get_option('sysconfdir'))
configure_file(input : 'pinos.conf.in',
output : 'pinos.conf',