BINDIR = get_option('bindir')
DATADIR = get_option('datadir')
+INCLUDEDIR = get_option('includedir')
LIBDIR = get_option('libdir')
LOCALSTATEDIR = get_option('localstatedir')
MANDIR = get_option('mandir')
output: 'config.h',
configuration: conf_data,
install: true,
- install_dir: 'include/kea',
+ install_dir: INCLUDEDIR / 'kea',
)
# TODO: Change to kea_version.h.in when autotools are removed.
output: 'kea_version.h',
configuration: conf_data,
install: true,
- install_dir: 'include/kea',
+ install_dir: INCLUDEDIR / 'kea',
)
#### Build Starts Here
'platforms.rst',
]
install_data(top_docs, install_dir: DATADIR / 'doc/kea')
-install_emptydir('var/run/kea')
+# No builtin option for 'var/run'.
+install_emptydir(LOCALSTATEDIR / 'run/kea')
# Print the setup report.
message(run_command(['cat', CONFIG_REPORT], check: true).stdout())
keactrl_conf_data = configuration_data()
keactrl_conf_data.set('prefix', PREFIX)
-keactrl_conf_data.set('sysconfdir', '${prefix}/@SYSCONFDIR@')
+keactrl_conf_data.set('sysconfdir', '${prefix}/' + SYSCONFDIR)
keactrl_conf_data.set('PACKAGE', 'kea')
keactrl_conf_data.set('exec_prefix', '${prefix}')
keactrl_conf_data.set('sbindir', '${prefix}/' + SBINDIR)