Commit fe77c4db authored by Sam Thursfield's avatar Sam Thursfield

meson: Fix build with libstemmer

Based on a patch by Jeremy Bicha <>.
parent 515451ee
......@@ -54,8 +54,8 @@ enable_fts = get_option('fts')
have_libstemmer = false
if get_option('stemmer') != 'no'
stemmer = cc.find_library('stemmer')
if stemmer.found()
libstemmer = cc.find_library('stemmer', required: false)
if libstemmer.found()
have_libstemmer = true
elif get_option('stemmer') == 'yes'
error('stemmer support explicitly requested, but stemmer library couldn\'t be found')
......@@ -7,7 +7,7 @@ option('functional_tests', type: 'boolean', value: true,
option('journal', type: 'boolean', value: true,
description: 'Enable database journal backup mechanism')
option('stemmer', type: 'combo', choices: ['auto', 'no', 'yes'], value: 'no',
option('stemmer', type: 'combo', choices: ['auto', 'no', 'yes'], value: 'auto',
description: 'Enable stemming words while indexing')
option('unicode_support', type: 'combo', choices: ['icu', 'unistring', 'auto'], value: 'auto',
description: 'Unicode support library to use')
......@@ -38,6 +38,10 @@ endif
# FIXME: need to link against -lkvm on OpenBSD, see
tracker_common_dependencies = [glib, gio, gio_unix, libmath]
if have_libstemmer
tracker_common_dependencies += [libstemmer]
libtracker_common = library('tracker-common',
dependencies: tracker_common_dependencies + [unicode_library],
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment