Ticket #4524: 0001-buildsys-make-it-possible-to-specify-aspell-prefix-f.2.patch

File 0001-buildsys-make-it-possible-to-specify-aspell-prefix-f.2.patch, 2.4 KB (added by zaytsev, 5 months ago)
  • doc/INSTALL

    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): 
    8989     built-in file editor.  The built-in editor is compiled in by 
    9090     default. 
    9191 
    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. 
    9596 
    9697`--without-gpm-mouse' 
    9798     Use this flag to disable gpm mouse support (e.g. if you want to 
  • m4.include/mc-with-internal-edit.m4

    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], [ 
    1818 
    1919    dnl ASpell support. 
    2020    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@:>@), 
    2224        [ 
    2325            if test "x$enableval" = xno; then 
    2426                enable_aspell=no 
    2527            else 
     28                test -d "$enable_aspell" && CPPFLAGS="$CPPFLAGS -I$enable_aspell" 
    2629                enable_aspell=yes 
    2730            fi 
    2831        ], 
    AC_DEFUN([mc_WITH_INTERNAL_EDIT], [ 
    4043                AC_MSG_NOTICE([using aspell for internal editor]) 
    4144            else 
    4245                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]) 
    4447            fi 
    4548    fi 
    4649])