From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id Hb6pCYayMWOtVAAAWB0awg (envelope-from ) for ; Mon, 26 Sep 2022 10:09:10 -0400 Received: by simark.ca (Postfix, from userid 112) id 12DFB1E112; Mon, 26 Sep 2022 10:09:10 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=y2q+VVYA; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id B3B8F1E0D5 for ; Mon, 26 Sep 2022 10:09:05 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1C0C938582BF for ; Mon, 26 Sep 2022 14:09:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1C0C938582BF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1664201345; bh=YClL28305HyA14jnBQLk4nUxcFN4Sg63TSR9oau1upU=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=y2q+VVYAEbHTom9dIg3qsrbwaPugV8bnk9u2sPViAupkza9NbXmIG6NPFkZl2DurV xIbnS65hiCUW9CsvHADKvvjwGvpVK7+PmaSl1WoF+uyqxtuclsYd6+abx/8/lyoKjO RlgtxzCoD1r6pjKtSCB9JWpUXaqAlGs/3BaYqegg= Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 1625A3858284; Mon, 26 Sep 2022 14:08:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1625A3858284 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 28QE8Vsx001582 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Sep 2022 10:08:35 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 28QE8Vsx001582 Received: from [10.0.0.11] (unknown [217.28.27.60]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id EE7F21E0D5; Mon, 26 Sep 2022 10:08:30 -0400 (EDT) Message-ID: <3d0e846b-b8bd-d0f2-953b-7a8d5cd3bbd6@polymtl.ca> Date: Mon, 26 Sep 2022 10:08:30 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v3] binutils, gdb: support zstd compressed debug sections Content-Language: en-US To: Alan Modra References: <20220923040837.550160-1-maskray@google.com> <7eadf897-9370-5a00-ae57-8e07251b8702@polymtl.ca> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Mon, 26 Sep 2022 14:08:31 +0000 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Simon Marchi via Gdb-patches Reply-To: Simon Marchi Cc: gdb-patches@sourceware.org, binutils@sourceware.org, Jan Beulich , Fangrui Song , Nick Clifton Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" >> But what about the other configure.ac files, don't >> they need PKG_PROG_PKG_CONFIG too? gdb/configure.ac, for instance, uses >> pkg-config for debuginfod. So if the user passes --without-debuginfod >> --with-zstd, I expect things to fail, as the pkg-config will be skipped. > > No, that will be fine, I think The reason being that > PKG_CHECK_MODULES AC_REQUIREs PKG_PROG_PKG_CONFIG. So the expansion > of AC_DEBUGINFOD will emit an expansion of PKG_PROG_PKG_CONFIG if that > has not already occurred, before the entire AC_DEBUGINFOD expansion. Ah, makes sense. Thanks for the explanation Alan. > >> binutils/configure.ac probably has the same problem, since it uses >> PKG_CHECK_MODULES for msgpack. > > I'll fix this one even though it isn't a problem now because > AC_DEBUGINFOD and AM_ZSTD preceed it. We should use AS_IF more often, > particularly when autoconf macros are invoked. Silly question but... AM_ZSTD was clearly named after AM_ZLIB. But why does AM_ZLIB have the "AM" (automake, I suppose) prefix? It doesn't seem to have anything to do with automake. Ack about AS_IF, I will try to remember this for top-level configure code. Simon