File: want_flatcurve.m4

package info (click to toggle)
dovecot 1%3A2.4.2%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 59,852 kB
  • sloc: ansic: 824,112; makefile: 8,144; sh: 6,334; cpp: 1,867; python: 1,828; yacc: 412; lex: 320; perl: 281; xml: 232
file content (16 lines) | stat: -rw-r--r-- 537 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
AC_DEFUN([DOVECOT_WANT_FLATCURVE], [
  have_flatcurve=no
  AS_IF([test "$want_flatcurve" != "no"], [
    PKG_CHECK_MODULES(XAPIAN, xapian-core >= 1.4, [
      AC_DEFINE([HAVE_XAPIAN], 1, [Xapian is available])
      PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES xapian-core"
      have_flatcurve=yes
      fts="$fts flatcurve"
    ],[
      AS_IF([test $want_flatcurve = yes], [
        AC_MSG_ERROR(cannot build with Flatcurve FTS: $XAPIAN_PKG_ERRORS)
      ])
    ])
  ])
  AM_CONDITIONAL(BUILD_FLATCURVE, test "$have_flatcurve" = "yes")
])