qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Minor correction in configure script


From: Sebastien Alaiwan
Subject: [Qemu-devel] Minor correction in configure script
Date: Wed, 02 Aug 2006 16:47:26 -0000
User-agent: Debian Thunderbird 1.0.2 (X11/20060423)

Hi developpers,
I've been building qemu more than a dozen times until now, and I've always been annoyed by the lack for a check for zlib during the configure stage. It's not a great patch but it'll avoid the build process to fail when zlib.h is not present.

If you use it, please tell me! :-)

Cheers,
Sebastien Alaiwan
diff -Naur qemu-0.8.2/configure qemu-0.8.2-patched/configure
--- qemu-0.8.2/configure        2006-07-22 19:23:34.000000000 +0200
+++ qemu-0.8.2-patched/configure        2006-08-02 18:41:04.000000000 +0200
@@ -442,6 +442,21 @@
 fi
 
 ##########################################
+# zlib probe
+
+cat > $TMPC <<EOF
+#include <zlib.h>
+int main(){return 0;}
+EOF
+$cc -o $TMPO $TMPC 1>/dev/null 2>&1
+if [ ! $? = 0 ]; then
+   echo "zlib not found!"
+   exit 1;
+fi
+
+
+
+##########################################
 # SDL probe
 
 sdl_too_old=no

reply via email to

[Prev in Thread] Current Thread [Next in Thread]