From bbe1b42cbbc7293041a83b154f969792a2592510 Mon Sep 17 00:00:00 2001 From: OBATA Akio Date: Wed, 19 Aug 2020 14:00:20 +0900 Subject: Add the ability to detect ispell lib directory Check LIBDIR ispell compile option and use only it for ispell lib directory if found. Signed-off-by: OBATA Akio --- tdespell2/plugins/ispell/ispell_checker.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tdespell2/plugins') diff --git a/tdespell2/plugins/ispell/ispell_checker.cpp b/tdespell2/plugins/ispell/ispell_checker.cpp index d21b8374b..d3dd324d3 100644 --- a/tdespell2/plugins/ispell/ispell_checker.cpp +++ b/tdespell2/plugins/ispell/ispell_checker.cpp @@ -54,6 +54,9 @@ typedef struct str_ispell_map } IspellMap; static const char *ispell_dirs [] = { +#ifdef ISPELL_LIBDIR + ISPELL_LIBDIR, +#else "/usr/" SYSTEM_LIBDIR "/ispell", "/usr/lib/ispell", "/usr/local/" SYSTEM_LIBDIR "/ispell", @@ -61,6 +64,7 @@ static const char *ispell_dirs [] = { "/usr/local/share/ispell", "/usr/share/ispell", "/usr/pkg/lib", +#endif 0 }; static const IspellMap ispell_map [] = { -- cgit v1.2.1