From patchwork Fri Aug 27 09:59:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 62844 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 73A89B70E1 for ; Fri, 27 Aug 2010 20:15:41 +1000 (EST) Received: from localhost ([127.0.0.1]:37263 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OovyE-0005bc-23 for incoming@patchwork.ozlabs.org; Fri, 27 Aug 2010 06:15:38 -0400 Received: from [140.186.70.92] (port=37339 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oovjc-0007Fd-LE for qemu-devel@nongnu.org; Fri, 27 Aug 2010 06:00:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OovjM-0008Vp-9r for qemu-devel@nongnu.org; Fri, 27 Aug 2010 06:00:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:3576) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OovjM-0008Vi-3K for qemu-devel@nongnu.org; Fri, 27 Aug 2010 06:00:16 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o7RA0EdE030340 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 27 Aug 2010 06:00:15 -0400 Received: from rincewind.home.kraxel.org (vpn1-5-145.ams2.redhat.com [10.36.5.145]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o7RA05Ok024745; Fri, 27 Aug 2010 06:00:06 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id E12FB40858; Fri, 27 Aug 2010 11:59:59 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Fri, 27 Aug 2010 11:59:53 +0200 Message-Id: <1282903199-30669-5-git-send-email-kraxel@redhat.com> In-Reply-To: <1282903199-30669-1-git-send-email-kraxel@redhat.com> References: <1282903199-30669-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: Gerd Hoffmann Subject: [Qemu-devel] [PATCH v4 04/10] configure: add logging X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Write compile commands and messages to config.log. Useful for debugging configure. Signed-off-by: Gerd Hoffmann --- configure | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 146dac0..0639b33 100755 --- a/configure +++ b/configure @@ -16,15 +16,18 @@ TMPO="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.o" TMPE="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.exe" trap "rm -f $TMPC $TMPO $TMPE ; exit" EXIT INT QUIT TERM +rm -f config.log compile_object() { - $cc $QEMU_CFLAGS -c -o $TMPO $TMPC > /dev/null 2> /dev/null + echo $cc $QEMU_CFLAGS -c -o $TMPO $TMPC >> config.log + $cc $QEMU_CFLAGS -c -o $TMPO $TMPC >> config.log 2>&1 } compile_prog() { local_cflags="$1" local_ldflags="$2" - $cc $QEMU_CFLAGS $local_cflags -o $TMPE $TMPC $LDFLAGS $local_ldflags > /dev/null 2> /dev/null + echo $cc $QEMU_CFLAGS $local_cflags -o $TMPE $TMPC $LDFLAGS $local_ldflags >> config.log + $cc $QEMU_CFLAGS $local_cflags -o $TMPE $TMPC $LDFLAGS $local_ldflags >> config.log 2>&1 } # check whether a command is available to this shell (may be either an