From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G8JsU-0000xo-LO for qemu-devel@nongnu.org; Wed, 02 Aug 2006 12:47:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G8JsR-0000wd-TI for qemu-devel@nongnu.org; Wed, 02 Aug 2006 12:47:26 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G8JsR-0000wa-PU for qemu-devel@nongnu.org; Wed, 02 Aug 2006 12:47:23 -0400 Received: from [193.252.22.21] (helo=smtp-msa-out10.orange.fr) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G8Jva-0004xF-Vf for qemu-devel@nongnu.org; Wed, 02 Aug 2006 12:50:39 -0400 Received: from grunt (AGrenoble-152-1-12-230.w82-122.abo.wanadoo.fr [82.122.11.230]) by mwinf1002.orange.fr (SMTP Server) with ESMTP id 470D12400085 for ; Wed, 2 Aug 2006 18:47:21 +0200 (CEST) Received: from pong.icatis.local ([192.168.7.232]) by grunt with esmtp (Exim 4.62) (envelope-from ) id 1G8JsN-0000M8-Qt for qemu-devel@nongnu.org; Wed, 02 Aug 2006 18:47:19 +0200 Message-ID: <44D0D70C.2090707@icatis.com> From: Sebastien Alaiwan MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000505040100040405000004" Subject: [Qemu-devel] Minor correction in configure script Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Wed, 02 Aug 2006 16:47:26 -0000 To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------000505040100040405000004 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------000505040100040405000004 Content-Type: text/plain; name="qemu-configure-zlib-check" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="qemu-configure-zlib-check" 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 < +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 --------------000505040100040405000004--