From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id D49E46DE0EB0 for ; Sun, 3 Nov 2019 17:58:12 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.059 X-Spam-Level: X-Spam-Status: No, score=-0.059 tagged_above=-999 required=5 tests=[AWL=-0.058, SPF_PASS=-0.001] 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 CltBYWSw7Ycs for ; Sun, 3 Nov 2019 17:58:12 -0800 (PST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 3749C6DE0EB8 for ; Sun, 3 Nov 2019 17:58:12 -0800 (PST) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1iRRRb-0003wm-6i; Sun, 03 Nov 2019 20:46:11 -0500 Received: (nullmailer pid 23210 invoked by uid 1000); Mon, 04 Nov 2019 01:39:35 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 2/5] configure: check for python cffi module Date: Sun, 3 Nov 2019 21:39:24 -0400 Message-Id: <20191104013927.17037-3-david@tethera.net> X-Mailer: git-send-email 2.24.0.rc1 In-Reply-To: <20191104013927.17037-1-david@tethera.net> References: <20191104013927.17037-1-david@tethera.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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: Mon, 04 Nov 2019 01:58:12 -0000 This is needed to build the new python bindings --- configure | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/configure b/configure index 3c148e12..300591fe 100755 --- a/configure +++ b/configure @@ -671,6 +671,15 @@ if [ $have_python -eq 0 ]; then errors=$((errors + 1)) fi +printf "Checking for python cffi... " +if "$python" -c 'import cffi' >/dev/null 2>&1; then + printf "Yes.\n" + have_python_cffi=1; +else + printf "No.\n" + have_python_cffi=0; +fi + printf "Checking for valgrind development files... " if pkg-config --exists valgrind; then printf "Yes.\n" @@ -1223,6 +1232,9 @@ HAVE_GETLINE = ${have_getline} # building/testing ruby bindings. HAVE_RUBY_DEV = ${have_ruby_dev} +# Is the python cffi package available? +HAVE_PYTHON_CFFI = ${have_python_cffi} + # Whether the strcasestr function is available (if not, then notmuch will # build its own version) HAVE_STRCASESTR = ${have_strcasestr} @@ -1376,6 +1388,9 @@ NOTMUCH_RUBY=${RUBY} # building/testing ruby bindings. NOTMUCH_HAVE_RUBY_DEV=${have_ruby_dev} +# Is the python cffi package available? +NOTMUCH_HAVE_PYTHON_CFFI=${have_python_cffi} + # Platform we are run on PLATFORM=${platform} EOF -- 2.24.0.rc1