From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id ADy5Hlt7mGAdCwAAWB0awg (envelope-from ) for ; Sun, 09 May 2021 20:16:27 -0400 Received: by simark.ca (Postfix, from userid 112) id 7BCDC1F11C; Sun, 9 May 2021 20:16:27 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.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 DEF211E54D for ; Sun, 9 May 2021 20:16:25 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 423B9384840C; Mon, 10 May 2021 00:16:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 423B9384840C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620605785; bh=17ogJduQB15Wich4lVGw1w9RnmA/DW0cA64a63zaFZI=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=JaBKKa5YxcnNJ2TKRptrMgze79K+ARKnb3GaQFUjI1L/MJja9Uc2hipjsCaxRs98i w3NrKdCRoTI4klDic476nGWXPwFmBSZ04enBOA9zaZlwul1iQqklNoYNfUpkJX2/qX yNSubsM8TSoOJ+TfB2nr0YiTzNh0sMUbxKoU/fl4= Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 3ECEF385782C for ; Mon, 10 May 2021 00:16:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3ECEF385782C 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 14A0GDJg008722 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 9 May 2021 20:16:18 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 14A0GDJg008722 Received: from [10.0.0.11] (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) (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 D4F781E54D for ; Sun, 9 May 2021 20:16:13 -0400 (EDT) Subject: Re: [PATCH] gdb: add ../config/pkg.m4 in acinclude.m4 To: gdb-patches@sourceware.org References: <20210509012432.1154603-1-simon.marchi@polymtl.ca> Message-ID: <04311a21-f880-b6d5-eb5d-5cd70d95b607@polymtl.ca> Date: Sun, 9 May 2021 20:16:13 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Mon, 10 May 2021 00:16:13 +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 Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" On 2021-05-09 4:00 p.m., Mike Frysinger wrote: > On 08 May 2021 21:24, Simon Marchi via Gdb-patches wrote: >> Since commit adeab0c5b33f ("config/debuginfod: do not include pkg.m4 >> directly"), it no longer works to re-generate the autoconf stuff in GDB >> without passing "-I ../config": >> >> $ autoreconf -f >> configure.ac:161: error: possibly undefined macro: AC_MSG_ERROR >> If this token and others are legitimate, please use m4_pattern_allow. >> See the Autoconf documentation. >> configure.ac:329: error: possibly undefined macro: AC_MSG_WARN >> configure.ac:409: error: possibly undefined macro: AC_DEFINE >> autoreconf: /opt/autostuff/2.69/bin/autoconf failed with exit status: 1 >> >> The reason is: since that commit, the PKG_CHECK_MODULES macro is not >> found. When passing "-I ../config" to the autoconf tools, then it's >> found. But if I understand correctly, the reason why we have all these >> includes in acinclude.m4 is to avoid having to specify that, to make the >> default invocation without special arguments "just work". > > how about this instead ? i can run `aclocal && autoconf` with this. > > --- a/gdb/configure.ac > +++ b/gdb/configure.ac > @@ -18,9 +18,8 @@ dnl along with this program. If not, see . > > dnl Process this file with autoconf to produce a configure script. > > -m4_include(../config/debuginfod.m4) > - > AC_INIT > +AC_CONFIG_MACRO_DIRS([../config]) > AC_CONFIG_SRCDIR([main.c]) > AC_CONFIG_HEADERS(config.h:config.in, [echo > stamp-h]) > AM_MAINTAINER_MODE > -mike > Ah yes, that sounds much better. If we have this, could we remove all lines in acinclude.m4 that refer to a file in ../config?