]> rtime.felk.cvut.cz Git - notmuch.git/commitdiff
configure: autodetect xapian-1.3
authorDavid Bremner <david@tethera.net>
Sat, 26 Mar 2016 17:57:11 +0000 (14:57 -0300)
committerDavid Bremner <david@tethera.net>
Fri, 1 Apr 2016 21:29:52 +0000 (18:29 -0300)
Mimic the handling of python2 versus python3. In particular if both
xapian-config and xapian-config-1.3 are found, use xapian-config

configure

index a79f6bd5e2efb531a519b27ebbad75c622db7c09..eb6dbacec82a3b1096bb8137298e068235cf7f2e 100755 (executable)
--- a/configure
+++ b/configure
@@ -51,7 +51,7 @@ CPPFLAGS=${CPPFLAGS:-}
 CXXFLAGS_for_sh=${CXXFLAGS:-${CFLAGS}}
 CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)}
 LDFLAGS=${LDFLAGS:-}
-XAPIAN_CONFIG=${XAPIAN_CONFIG:-xapian-config}
+XAPIAN_CONFIG=${XAPIAN_CONFIG:-}
 PYTHON=${PYTHON:-}
 
 # We don't allow the EMACS or GZIP Makefile variables inherit values
@@ -341,7 +341,7 @@ fi
 
 printf "Checking for Xapian development files... "
 have_xapian=0
-for xapian_config in ${XAPIAN_CONFIG}; do
+for xapian_config in ${XAPIAN_CONFIG} xapian-config xapian-config-1.3; do
     if ${xapian_config} --version > /dev/null 2>&1; then
        xapian_version=$(${xapian_config} --version | sed -e 's/.* //')
        printf "Yes (%s).\n" ${xapian_version}