qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5456] Add a configure check for zlib (Ryota OZAKI).
@ 2008-10-11  9:56 Andrzej Zaborowski
  0 siblings, 0 replies; only message in thread
From: Andrzej Zaborowski @ 2008-10-11  9:56 UTC (permalink / raw)
  To: qemu-devel

Revision: 5456
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5456
Author:   balrog
Date:     2008-10-11 09:56:04 +0000 (Sat, 11 Oct 2008)

Log Message:
-----------
Add a configure check for zlib (Ryota OZAKI).

This patch makes configure check zlib devel files installed.
Current configure doesn't check that, so make will fail if they
are not installed.

Signed-off-by: Ryota Ozaki <ozaki.ryota@gmail.com>

Modified Paths:
--------------
    trunk/configure

Modified: trunk/configure
===================================================================
--- trunk/configure	2008-10-11 09:33:03 UTC (rev 5455)
+++ trunk/configure	2008-10-11 09:56:04 UTC (rev 5456)
@@ -716,6 +716,23 @@
 fi
 
 ##########################################
+# zlib check
+
+cat > $TMPC << EOF
+#include <zlib.h>
+int main(void) { zlibVersion(); return 0; }
+EOF
+if $cc $CFLAGS $LDFLAGS -o $TMPE $TMPC -lz 2> /dev/null ; then
+    :
+else
+    echo
+    echo "Error: zlib check failed"
+    echo "Make sure to have the zlib libs and headers installed."
+    echo
+    exit 1
+fi
+
+##########################################
 # SDL probe
 
 sdl_too_old=no

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-11  9:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-11  9:56 [Qemu-devel] [5456] Add a configure check for zlib (Ryota OZAKI) Andrzej Zaborowski

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 NNTP newsgroup(s).