The build system supports DESTDIR_
+TODO no longer support, use meson --prefix instead (DESTDIR will cause invalid path to modules)
+
.. Our amalgamation has fallen into an unmaintained state and probably doesn't work.
.. and `amalgamated builds <https://www.sqlite.org/amalgamation.html>`_.
)
libkres_soversion = 9
-# TODO change modules_dir to sensible lua(jit) default
-modules_dir = join_paths(get_option('libdir'), 'kdns_modules')
+if get_option('modules_dir') == ''
+ modules_dir = join_paths(
+ get_option('prefix'), get_option('libdir'), 'knot-resolver')
+else
+ modules_dir = get_option('modules_dir')
+endif
+message('modules_dir: ' + modules_dir)
# Project-wide dependencies
option('cookies', type: 'boolean', value: false, description: 'Support for DNS Cookies.')
option('client', type : 'boolean', value : true, description: 'kresc client binary')
option('daemon', type: 'boolean', value: true, description: 'kresd daemon binary')
+option('modules_dir', type: 'string', description: 'path to kres modules directory')