unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Jameson Graef Rollins <jrollins@finestructure.net>
To: notmuch@notmuchmail.org
Subject: [PATCH 2/3] add checking for zlib development libraries to configure script
Date: Sat, 28 Nov 2009 18:57:36 -0500	[thread overview]
Message-ID: <1259452657-27608-2-git-send-email-jrollins@finestructure.net> (raw)
In-Reply-To: <1259452657-27608-1-git-send-email-jrollins@finestructure.net>

---
 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 <<EOF
 
 On a modern, package-based operating system such as Debian, you can
 install all of the dependencies with the following simple command
 line:
 
-	sudo apt-get install libxapian-dev libgmime-2.4-dev libtalloc-dev
+	sudo apt-get install libxapian-dev libgmime-2.4-dev libtalloc-dev libz-dev
 
 On other systems, a similar command can be used, but the details of the 
 package names may be different, (such as "devel" in place of "dev").
-- 
1.6.5

  reply	other threads:[~2009-11-28 23:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-28 23:57 [PATCH 1/3] fix configure script to handle --prefix= and properly create Makefile.config Jameson Graef Rollins
2009-11-28 23:57 ` Jameson Graef Rollins [this message]
2009-11-28 23:57   ` [PATCH 3/3] fix Makefile.local to install bash completion definitions as not executable Jameson Graef Rollins
2009-12-05  0:16     ` Carl Worth
2009-12-05  0:21       ` Jameson Graef Rollins
2009-11-29 10:46   ` [PATCH 2/3] add checking for zlib development libraries to configure script Mikhail Gusarov
2009-11-29 12:50     ` david
2009-12-05  0:12 ` [PATCH 1/3] fix configure script to handle --prefix= and properly create Makefile.config Carl Worth
2009-12-05  0:20   ` Jameson Graef Rollins
2009-12-05  0:56     ` Carl Worth
2009-12-05  8:59       ` Ingmar Vanhassel
2009-12-05 23:05         ` Carl Worth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1259452657-27608-2-git-send-email-jrollins@finestructure.net \
    --to=jrollins@finestructure.net \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).