From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=44625 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOVAj-0003Ih-2m for qemu-devel@nongnu.org; Tue, 15 Jun 2010 08:23:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOVAi-0002wo-0f for qemu-devel@nongnu.org; Tue, 15 Jun 2010 08:23:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24532) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOVAh-0002wg-Oc for qemu-devel@nongnu.org; Tue, 15 Jun 2010 08:23:15 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5FCNFei024134 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 15 Jun 2010 08:23:15 -0400 From: Gerd Hoffmann Date: Tue, 15 Jun 2010 14:23:04 +0200 Message-Id: <1276604590-18919-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1276604590-18919-1-git-send-email-kraxel@redhat.com> References: <1276604590-18919-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 1/7] configure: add logging List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann 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 c0d8aa5..8220226 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 -- 1.6.5.2