Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id BD601431FBC for ; Sat, 28 Nov 2009 15:57:26 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3ogb6WSnPPgQ for ; Sat, 28 Nov 2009 15:57:25 -0800 (PST) Received: from tarap.cc.columbia.edu (tarap.cc.columbia.edu [128.59.29.7]) by olra.theworths.org (Postfix) with ESMTP id ECC55431FAE for ; Sat, 28 Nov 2009 15:57:24 -0800 (PST) Received: from servo.finestructure.net (lair.fifthhorseman.net [216.254.116.241]) (user=jgr2110 author=jrollins@finestructure.net mech=PLAIN bits=0) by tarap.cc.columbia.edu (8.14.3/8.14.3) with ESMTP id nASNvNlq010199 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT) for ; Sat, 28 Nov 2009 18:57:24 -0500 (EST) Received: from jrollins by servo.finestructure.net with local (Exim 4.69) (envelope-from ) id 1NEXAe-0007FZ-2z; Sat, 28 Nov 2009 18:57:44 -0500 From: Jameson Graef Rollins To: notmuch@notmuchmail.org Date: Sat, 28 Nov 2009 18:57:36 -0500 Message-Id: <1259452657-27608-2-git-send-email-jrollins@finestructure.net> X-Mailer: git-send-email 1.6.5 In-Reply-To: <1259452657-27608-1-git-send-email-jrollins@finestructure.net> References: <1259452657-27608-1-git-send-email-jrollins@finestructure.net> X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.65 on 128.59.29.7 Subject: [notmuch] [PATCH 2/3] add checking for zlib development libraries to configure script X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Sat, 28 Nov 2009 23:57:26 -0000 --- configure | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/configure b/configure index ab28fa3..1010799 100755 --- a/configure +++ b/configure @@ -63,6 +63,15 @@ else errors=$((errors + 1)) fi +if printf 'int main(){return 0;}' | gcc -x c -lz -o /dev/null - > /dev/null 2>&1; then + echo "Checking for zlib development files... Yes." + have_zlib=1 +else + echo "Checking for zlib development files... No." + have_zlib=0 + errors=$((errors + 1)) +fi + if pkg-config --modversion valgrind > /dev/null 2>&1; then echo "Checking for valgrind development files... Yes." have_valgrind=-DHAVE_VALGRIND @@ -91,13 +100,16 @@ EOF echo " The talloc library (including development files such as headers)" echo " http://talloc.samba.org/" fi + if [ $have_zlib -eq 0 ]; then + echo " The zlib library (including development files such as headers)" + fi cat <