summaryrefslogtreecommitdiffstats
path: root/m4/want_clucene.m4
blob: 748ab5a85d64d2dc62188b130892bf7aeaf446bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
AC_DEFUN([DOVECOT_WANT_CLUCENE], [
  have_lucene=no
  if test "$want_lucene" = "yes"; then
    PKG_CHECK_MODULES(CLUCENE, libclucene-core,, [
      # no pkg-config file for clucene. fallback to defaults.
      # FIXME: we should verify here that this actually works..
      CLUCENE_LIBS="-lclucene-shared -lclucene-core"
    ])
    have_lucene=yes
    fts="$fts lucene"
  fi
])