From 9525dc185d28e477e7ebc0deb564d5fe6fe77f21 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Wed, 23 Mar 2016 07:54:42 +2100 Subject: [PATCH] [PATCH 01/13] config: autodetect xapian-1.3 --- 23/4f49c2e7048f74b784cc63ea2af148313c9a7a | 78 +++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 23/4f49c2e7048f74b784cc63ea2af148313c9a7a diff --git a/23/4f49c2e7048f74b784cc63ea2af148313c9a7a b/23/4f49c2e7048f74b784cc63ea2af148313c9a7a new file mode 100644 index 000000000..f1ff2ed23 --- /dev/null +++ b/23/4f49c2e7048f74b784cc63ea2af148313c9a7a @@ -0,0 +1,78 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id BD7DF6DE0314 + for ; Tue, 22 Mar 2016 03:55:41 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.029 +X-Spam-Level: +X-Spam-Status: No, score=-0.029 tagged_above=-999 required=5 + tests=[AWL=-0.018, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id EwTIT-70f8W6 for ; + Tue, 22 Mar 2016 03:55:33 -0700 (PDT) +Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) + by arlo.cworth.org (Postfix) with ESMTPS id 2ACEC6DE02A7 + for ; Tue, 22 Mar 2016 03:55:19 -0700 (PDT) +Received: from remotemail by fethera.tethera.net with local (Exim 4.84) + (envelope-from ) + id 1aiJyc-00014g-Jk; Tue, 22 Mar 2016 06:55:54 -0400 +Received: (nullmailer pid 14067 invoked by uid 1000); + Tue, 22 Mar 2016 10:55:11 -0000 +From: David Bremner +To: notmuch@notmuchmail.org +Subject: [PATCH 01/13] config: autodetect xapian-1.3 +Date: Tue, 22 Mar 2016 07:54:42 -0300 +Message-Id: <1458644094-13951-2-git-send-email-david@tethera.net> +X-Mailer: git-send-email 2.7.0 +In-Reply-To: <1458644094-13951-1-git-send-email-david@tethera.net> +References: <1458644094-13951-1-git-send-email-david@tethera.net> +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Tue, 22 Mar 2016 10:55:41 -0000 + +Mimic the handling of python2 versus python3. In particular if both +xapian-config and xapian-config-1.3 are found, use xapian-config +--- + configure | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/configure b/configure +index a79f6bd..eb6dbac 100755 +--- 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} +-- +2.7.0 + -- 2.26.2