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 9CFDA6DE0EEA for ; Mon, 4 Nov 2019 13:24:09 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.406 X-Spam-Level: X-Spam-Status: No, score=0.406 tagged_above=-999 required=5 tests=[AWL=-0.246, SPF_NEUTRAL=0.652] 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 uh3KTWd4sR6o for ; Mon, 4 Nov 2019 13:24:08 -0800 (PST) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by arlo.cworth.org (Postfix) with ESMTP id 68AE96DE0ED0 for ; Mon, 4 Nov 2019 13:24:07 -0800 (PST) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 85779100199; Mon, 4 Nov 2019 23:24:03 +0200 (EET) From: Tomi Ollila To: David Bremner , notmuch@notmuchmail.org Subject: Re: [PATCH 2/5] configure: check for python cffi module In-Reply-To: <20191104013927.17037-3-david@tethera.net> References: <20191104013927.17037-1-david@tethera.net> <20191104013927.17037-3-david@tethera.net> User-Agent: Notmuch/0.28.3+84~g41389bb (https://notmuchmail.org) Emacs/25.2.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain 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 21:24:09 -0000 On Sun, Nov 03 2019, David Bremner wrote: > 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; trailing ; > +else > + printf "No.\n" > + have_python_cffi=0; ditto :) otherwise tolerable =D > +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 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > https://notmuchmail.org/mailman/listinfo/notmuch