From patchwork Tue Sep 21 16:51:35 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 65339 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 2CAEBB70A7 for ; Wed, 22 Sep 2010 02:53:41 +1000 (EST) Received: from localhost ([127.0.0.1]:42876 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oy666-0002l1-7q for incoming@patchwork.ozlabs.org; Tue, 21 Sep 2010 12:53:38 -0400 Received: from [140.186.70.92] (port=60960 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oy64L-0002ei-QH for qemu-devel@nongnu.org; Tue, 21 Sep 2010 12:51:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oy64K-0000oe-E8 for qemu-devel@nongnu.org; Tue, 21 Sep 2010 12:51:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36456) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oy64K-0000oJ-4w for qemu-devel@nongnu.org; Tue, 21 Sep 2010 12:51:48 -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 o8LGplXu007181 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 21 Sep 2010 12:51:47 -0400 Received: from rincewind.home.kraxel.org (vpn1-4-82.ams2.redhat.com [10.36.4.82]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o8LGphxY014989; Tue, 21 Sep 2010 12:51:44 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id 2CFE7451FF; Tue, 21 Sep 2010 18:51:42 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Tue, 21 Sep 2010 18:51:35 +0200 Message-Id: <1285087901-10232-5-git-send-email-kraxel@redhat.com> In-Reply-To: <1285087901-10232-1-git-send-email-kraxel@redhat.com> References: <1285087901-10232-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 v6 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 3bfc5e9..66b1d0b 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