[notmuch] [PATCH 2/3] add checking for zlib development libraries to configure script

2009-11-29 Thread Mikhail Gusarov

Twas brillig at 18:57:36 28.11.2009 UTC-05 when jrollins at finestructure.net 
did gyre and gimble:

 JGR> + sudo apt-get install libxapian-dev libgmime-2.4-dev
 JGR> libtalloc-dev libz-dev

Proper fix is to fix libgmime-2.4.pc upstream to stop exposing -lz

-- 
  http://fossarchy.blogspot.com/
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: 



[notmuch] [PATCH 2/3] add checking for zlib development libraries to configure script

2009-11-29 Thread da...@tethera.net

Mikhail Gusarov wrote:

>Twas brillig at 18:57:36 28.11.2009 UTC-05 when jrollins at finestructure.net 
>did gyre and gimble:

> JGR> + sudo apt-get install libxapian-dev libgmime-2.4-dev
> JGR> libtalloc-dev libz-dev

>Proper fix is to fix libgmime-2.4.pc upstream to stop exposing -lz

This is now upstream bug  

 https://bugzilla.gnome.org/show_bug.cgi?id=603273

People more knowledgable in the ways of pkg-config are welcome to
chime in if I said something wrong or misleading.

d



[notmuch] [PATCH 2/3] add checking for zlib development libraries to configure script

2009-11-28 Thread Jameson Graef Rollins
---
 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 <