From patchwork Mon Oct 9 16:01:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Jackson X-Patchwork-Id: 9993831 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A5D0860230 for ; Mon, 9 Oct 2017 16:03:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9863528560 for ; Mon, 9 Oct 2017 16:03:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8CE7E2870E; Mon, 9 Oct 2017 16:03:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4305828560 for ; Mon, 9 Oct 2017 16:03:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1aVJ-0007tg-JP; Mon, 09 Oct 2017 16:02:05 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1aVI-0007pK-D2 for xen-devel@lists.xenproject.org; Mon, 09 Oct 2017 16:02:04 +0000 Received: from [193.109.254.147] by server-10.bemta-6.messagelabs.com id C8/78-03761-C7D9BD95; Mon, 09 Oct 2017 16:02:04 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprKIsWRWlGSWpSXmKPExsXitHRDpG7F3Nu RBs+WKVl83zKZyYHR4/CHKywBjFGsmXlJ+RUJrBkfD+1gLejmqJj4fAVzA+NBti5GTg4JAX+J zhnLwGw2AV2Jpi1/wWwRAWmJ/jnt7F2MXBzMAvOZJA7PW8wKkhAW8JFY0NrKDmKzCKhI9J7ZA NbAK+Ah8fZJIyvEUDmJ88d/MoPYnAKeEmtnTwOq4eAQAqr5syAcwlSTmLs+HqJTUOLkzCcsID azgITEwRcvmCcw8s5CkpqFJLWAkWkVo3pxalFZapGusV5SUWZ6RkluYmaOrqGBmV5uanFxYnp qTmJSsV5yfu4mRmDgMADBDsaOf06HGCU5mJREeefNuB0pxJeUn1KZkVicEV9UmpNafIhRhoND SYI3aw5QTrAoNT21Ii0zBxjCMGkJDh4lEd7Zs4HSvMUFibnFmekQqVOMxhyHXtz+w8TRcfPuH yYhlrz8vFQpcd4KkEkCIKUZpXlwg2CxdYlRVkqYlxHoNCGegtSi3MwSVPlXjOIcjErCvLNBpv Bk5pXA7XsFdAoT0CmMxTdATilJREhJNTBqeL3xPyr0c29GuKn9hW8dv9vzuA+axl+qucP+c/6 E5YurlwRvyhI8fm2zboB45lrpwqSpt0L+XnX57rGe8cVjtQ313cwT5tfu5TrhvPFrG6/6wcNV co8ifI0WFUvrtMmzv6t8toM/3UcxrsxkIpNBuZrJvvSJu9ia5zsIOuzZEbTStafzRpgSS3FGo qEWc1FxIgB/cTqRqAIAAA== X-Env-Sender: prvs=4484f2008=Ian.Jackson@citrix.com X-Msg-Ref: server-13.tower-27.messagelabs.com!1507564918!101290702!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 24066 invoked from network); 9 Oct 2017 16:02:00 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-13.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 9 Oct 2017 16:02:00 -0000 X-IronPort-AV: E=Sophos;i="5.42,500,1500940800"; d="scan'208";a="443013714" From: Ian Jackson To: Date: Mon, 9 Oct 2017 17:01:42 +0100 Message-ID: <1507564902-9000-9-git-send-email-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1507564902-9000-1-git-send-email-ian.jackson@eu.citrix.com> References: <1507564902-9000-1-git-send-email-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Cc: Juergen Gross , Stefano Stabellini , Ian Jackson , Ross Lagerwall , Anthony PERARD , xen-devel@lists.xenproject.org Subject: [Xen-devel] [PATCH 8/8] configure: do_compiler: Dump some extra info under bash X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP This makes it much easier to find a particular thing in config.log. The information may be lacking in other shells, resulting in harmless empty output. (This is why we don't use the proper ${FUNCNAME[*]} array syntax - other shells will choke on that.) The extra output is only printed if configure is run with bash. The something), it is necessary to say bash ./configure to get the extra debug info in the log. Signed-off-by: Ian Jackson --- v4: No longer tag this patch RFC. --- configure | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure b/configure index 6f691df..21a2b15 100755 --- a/configure +++ b/configure @@ -60,6 +60,10 @@ do_compiler() { # is compiler binary to execute. local compiler="$1" shift + echo >>config.log " +funcs: ${FUNCNAME} +lines: ${BASH_LINENO} +files: ${BASH_SOURCE}" echo $compiler "$@" >> config.log $compiler "$@" >> config.log 2>&1 || return $? # Test passed. If this is an --enable-werror build, rerun