mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 01:14:53 +01:00
configure: autodetect xapian-1.3
Mimic the handling of python2 versus python3. In particular if both xapian-config and xapian-config-1.3 are found, use xapian-config
This commit is contained in:
parent
6e6bafed0f
commit
d93d3779b8
1 changed files with 2 additions and 2 deletions
4
configure
vendored
4
configure
vendored
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue