From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5Fnj-0004Pj-CG for qemu-devel@nongnu.org; Wed, 07 Mar 2012 07:17:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S5FnJ-0004N8-TK for qemu-devel@nongnu.org; Wed, 07 Mar 2012 07:17:02 -0500 From: Peter Maydell Date: Wed, 7 Mar 2012 12:16:29 +0000 Message-Id: <1331122589-15717-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH] configure: Quote the configure args printed in config.log List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org Use the same mechanism we use for printing the configure command line to config-host.mak to print it to config.log. This fixes a bug where the config.log version didn't quote arguments with spaces. Signed-off-by: Peter Maydell --- If I'd noticed when I was adding the banner to config.log that we already printed this in config-host.mak I'd have done it this way to start with... configure | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/configure b/configure index a5eb832..1b63436 100755 --- a/configure +++ b/configure @@ -22,7 +22,9 @@ 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 +printf "# Configured with:" >> config.log +printf " '%s'" "$0" "$@" >> config.log +echo >> config.log echo "#" >> config.log compile_object() { -- 1.7.1