From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Klrks-0004tH-OJ for qemu-devel@nongnu.org; Fri, 03 Oct 2008 17:00:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Klrkr-0004sz-94 for qemu-devel@nongnu.org; Fri, 03 Oct 2008 17:00:06 -0400 Received: from [199.232.76.173] (port=41060 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Klrkr-0004sq-0g for qemu-devel@nongnu.org; Fri, 03 Oct 2008 17:00:05 -0400 Received: from wf-out-1314.google.com ([209.85.200.170]:12433) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Klrkq-00080o-GH for qemu-devel@nongnu.org; Fri, 03 Oct 2008 17:00:04 -0400 Received: by wf-out-1314.google.com with SMTP id 27so1806375wfd.4 for ; Fri, 03 Oct 2008 14:00:02 -0700 (PDT) Message-ID: <5e93dcec0810031400i59c1b079nb1b858dd7c0a6a20@mail.gmail.com> Date: Sat, 4 Oct 2008 06:00:02 +0900 From: "Ryota OZAKI" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: [Qemu-devel] [PATCH] configure needs to check zlib devel files installed Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Ryota OZAKI 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 --- 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 +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