From patchwork Wed Nov 23 17:26:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 5304 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 2F9F923E0F for ; Wed, 23 Nov 2011 17:26:52 +0000 (UTC) Received: from mail-gx0-f180.google.com (mail-gx0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id F12C4A183D5 for ; Wed, 23 Nov 2011 17:26:51 +0000 (UTC) Received: by ggnm2 with SMTP id m2so348233ggn.11 for ; Wed, 23 Nov 2011 09:26:51 -0800 (PST) Received: by 10.152.162.10 with SMTP id xw10mr15208561lab.12.1322069210921; Wed, 23 Nov 2011 09:26:50 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.41.198 with SMTP id h6cs251387lal; Wed, 23 Nov 2011 09:26:50 -0800 (PST) Received: by 10.236.154.201 with SMTP id h49mr32954941yhk.2.1322069208802; Wed, 23 Nov 2011 09:26:48 -0800 (PST) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [81.2.115.146]) by mx.google.com with ESMTPS id f50si8145460yhe.81.2011.11.23.09.26.47 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 23 Nov 2011 09:26:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) client-ip=81.2.115.146; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1RTGaq-0000Tv-R9; Wed, 23 Nov 2011 17:26:44 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, qemu-trivial@nongnu.org Subject: [PATCH 2/2] configure: Print a banner comment at the top of config.log Date: Wed, 23 Nov 2011 17:26:44 +0000 Message-Id: <1322069204-1824-3-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1322069204-1824-1-git-send-email-peter.maydell@linaro.org> References: <1322069204-1824-1-git-send-email-peter.maydell@linaro.org> Print a banner comment at the top of config.log identifying when configure was run and the arguments used. This is occasionally useful for debugging purposes. Signed-off-by: Peter Maydell --- configure | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 5a35b6d..2e23650 100755 --- a/configure +++ b/configure @@ -20,6 +20,11 @@ TMPE="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.exe" trap "rm -f $TMPC $TMPO $TMPE" EXIT INT QUIT TERM rm -f config.log +# Print a helpful header at the top of config.log +echo "# QEMU configure log $(date)" >> config.log +echo "# produced by $0 $*" >> config.log +echo "#" >> config.log + compile_object() { echo $cc $QEMU_CFLAGS -c -o $TMPO $TMPC >> config.log $cc $QEMU_CFLAGS -c -o $TMPO $TMPC >> config.log 2>&1