2021-02-13 14:23:35 +00:00
|
|
|
diff --git a/meson.build b/meson.build
|
2024-01-13 08:15:51 +00:00
|
|
|
index 5e7f57d5..3fe89e8c 100644
|
2021-02-13 14:23:35 +00:00
|
|
|
--- a/meson.build
|
|
|
|
+++ b/meson.build
|
2024-01-13 08:15:51 +00:00
|
|
|
@@ -171,10 +171,10 @@ endif
|
|
|
|
stemmer_inc_dirs = include_directories()
|
2021-02-13 14:23:35 +00:00
|
|
|
if get_option('stemming')
|
|
|
|
stemmer_lib = cc.find_library('stemmer', required: true)
|
2024-01-13 08:15:51 +00:00
|
|
|
- stemmer_inc_dirs = include_directories(['/usr/include'])
|
|
|
|
+ stemmer_inc_dirs = include_directories(['@libstemmer_includedir@'])
|
2021-02-13 14:23:35 +00:00
|
|
|
if not cc.has_header('libstemmer.h')
|
|
|
|
if cc.has_header('libstemmer/libstemmer.h')
|
|
|
|
- stemmer_inc_dirs = include_directories('/usr/include/libstemmer')
|
|
|
|
+ stemmer_inc_dirs = include_directories('@libstemmer_includedir@/libstemmer')
|
|
|
|
else
|
|
|
|
error('Unable to find Snowball header "libstemmer.h". Please ensure libstemmer/Snowball is installed properly in order to continue.')
|
|
|
|
endif
|