From 40517e8a1ea451565e9e81ce57ede0fee674fecd Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Thu, 30 Jun 2022 21:31:44 +0300 Subject: [PATCH] meson: make build-time emacs configurable I.e., use meson build -Demacs=/usr/bin/emacs-27.2 Fixes #2286. --- meson.build | 3 ++- meson_options.txt | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index acd9dbcf..c190f7ed 100644 --- a/meson.build +++ b/meson.build @@ -125,7 +125,8 @@ awk=find_program(['gawk', 'awk']) # soft dependencies # emacs -- needed for mu4e compilation -emacs=find_program(['emacs'], version: '>=25.3', required:false) +emacs_name=get_option('emacs') +emacs=find_program([emacs_name], version: '>=25.3', required:false) if not emacs.found() message('emacs not found; not pre-compiling mu4e sources') endif diff --git a/meson_options.txt b/meson_options.txt index df75223a..416fe1a2 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -24,3 +24,8 @@ option('readline', type: 'feature', value: 'auto', description: 'enable readline support for the mu4e repl') + +option('emacs', + type: 'string', + value: 'emacs', + description: 'name/path of the emacs executable')