From a45b182e2ae1a173f8d710cfce1f94a586668360 Mon Sep 17 00:00:00 2001
From: "Yury V. Zaytsev" <yury@shurup.com>
Date: Tue, 4 Jun 2024 11:15:23 +0200
Subject: [PATCH] buildsys: make it possible to specify aspell prefix (for
macOS)
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
---
doc/INSTALL | 7 ++++---
m4.include/mc-with-internal-edit.m4 | 7 +++++--
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/doc/INSTALL b/doc/INSTALL
index 1e5d1a268..15f0677eb 100644
a
|
b
|
incomplete, use `configure --help' to get the full list): |
89 | 89 | built-in file editor. The built-in editor is compiled in by |
90 | 90 | default. |
91 | 91 | |
92 | | `--enable-aspell' |
93 | | This option adds spell check support in the internal editor using |
94 | | libaspell. Disabled by default. |
| 92 | `--enable-aspell[=DIR]' |
| 93 | This option adds spell check support to the internal editor using |
| 94 | libaspell and optionally sets path to libaspell includes |
| 95 | [default=/usr/include]. Disabled by default. |
95 | 96 | |
96 | 97 | `--without-gpm-mouse' |
97 | 98 | Use this flag to disable gpm mouse support (e.g. if you want to |
diff --git a/m4.include/mc-with-internal-edit.m4 b/m4.include/mc-with-internal-edit.m4
index a801e1d68..8611467a0 100644
a
|
b
|
AC_DEFUN([mc_WITH_INTERNAL_EDIT], [ |
18 | 18 | |
19 | 19 | dnl ASpell support. |
20 | 20 | AC_ARG_ENABLE([aspell], |
21 | | AS_HELP_STRING([--enable-aspell], [Enable aspell support for internal editor @<:@no@:>@]), |
| 21 | AS_HELP_STRING( |
| 22 | [--enable-aspell@<:@=DIR@:>@], |
| 23 | [Enable aspell support for internal editor @<:@no@:>@] and optionally set path to aspell includes @<:@default=/usr/include@:>@), |
22 | 24 | [ |
23 | 25 | if test "x$enableval" = xno; then |
24 | 26 | enable_aspell=no |
25 | 27 | else |
| 28 | test -d "$enable_aspell" && CPPFLAGS="$CPPFLAGS -I$enable_aspell" |
26 | 29 | enable_aspell=yes |
27 | 30 | fi |
28 | 31 | ], |
… |
… |
AC_DEFUN([mc_WITH_INTERNAL_EDIT], [ |
40 | 43 | AC_MSG_NOTICE([using aspell for internal editor]) |
41 | 44 | else |
42 | 45 | enable_aspell=no |
43 | | AC_MSG_NOTICE([aspell support is disabled because gmodule support is not available]) |
| 46 | AC_MSG_ERROR([aspell support is disabled because gmodule support is not available]) |
44 | 47 | fi |
45 | 48 | fi |
46 | 49 | ]) |