From 52a26504488c3a8f190436abbce78717e9f9891f Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Wed, 9 Aug 2023 20:17:25 +0300 Subject: [PATCH] guile: make guile-extension-dir configurable We use guile_dep.get_variable(pkgconfig: 'extensiondir') but that's not good for everyone. --- guile/meson.build | 2 +- meson.build | 14 ++++++++++++-- meson_options.txt | 7 ++++++- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/guile/meson.build b/guile/meson.build index 933553c6..4a372efa 100644 --- a/guile/meson.build +++ b/guile/meson.build @@ -74,7 +74,7 @@ lib_guile_mu = shared_module( 'mu-guile-message.cc' ], dependencies: [guile_dep, glib_dep, lib_mu_dep, config_h_dep, thread_dep ], install: true, - install_dir: guile_dep.get_variable(pkgconfig: 'extensiondir') + install_dir: guile_extension_dir ) if makeinfo.found() diff --git a/meson.build b/meson.build index ecea0d97..587b48a2 100644 --- a/meson.build +++ b/meson.build @@ -36,13 +36,13 @@ mandir = prefixdir / get_option('mandir') infodir = prefixdir / get_option('infodir') # allow for configuring lispdir, as with autotools. -# default to

+## Copyright (C) 2022-2023 Dirk-Jan C. Binnema ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -20,6 +20,11 @@ option('guile', value: 'auto', description: 'build the guile scripting support (requires guile-3.x)') +# by default, this uses guile_dep.get_variable(pkgconfig: 'extensiondir') +option('guile-extension-dir', + type: 'string', + description: 'custom install path for the guile extension module') + option('readline', type: 'feature', value: 'auto',