qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Ryota OZAKI" <ozaki.ryota@gmail.com>
To: qemu-devel@nongnu.org
Cc: Ryota OZAKI <ozaki.ryota@gmail.com>
Subject: [Qemu-devel] [PATCH] configure needs to check zlib devel files installed
Date: Sat, 4 Oct 2008 06:00:02 +0900	[thread overview]
Message-ID: <5e93dcec0810031400i59c1b079nb1b858dd7c0a6a20@mail.gmail.com> (raw)

Hi,

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

Thanks,
  ozaki-r

Signed-off-by: Ryota Ozaki <ozaki.ryota@gmail.com>
---
 configure |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)

Index: configure
===================================================================
--- configure   (revision 5408)
+++ configure   (working copy)
@@ -707,6 +707,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

                 reply	other threads:[~2008-10-03 21:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

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

  git send-email \
    --in-reply-to=5e93dcec0810031400i59c1b079nb1b858dd7c0a6a20@mail.gmail.com \
    --to=ozaki.ryota@gmail.com \
    --cc=qemu-devel@nongnu.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.
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).