summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Maydell2011-11-23 18:26:44 +0100
committerStefan Hajnoczi2011-12-06 10:56:41 +0100
commitb48e361194530539d3d420528b9c29a3287b77dd (patch)
treeab3edd1d6432691bc4aa9c75bedd6fd7511294c5
parentconfigure: Include #define name in check_define compiler error (diff)
downloadqemu-b48e361194530539d3d420528b9c29a3287b77dd.tar.gz
qemu-b48e361194530539d3d420528b9c29a3287b77dd.tar.xz
qemu-b48e361194530539d3d420528b9c29a3287b77dd.zip
configure: Print a banner comment at the top of config.log
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 <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index c98aed1c64..452b8cf036 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