From patchwork Thu Oct 20 09:56:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 6113 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp8279wrr; Thu, 20 Oct 2022 02:59:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7pYkeF7vWqzxqxaSTj/0zzOKRO2hZ3Z9nKj0+OHMkhz2MAj3boVdJvCNJ7Daed8JmnUy++ X-Received: by 2002:a17:907:3f26:b0:78d:9c30:4529 with SMTP id hq38-20020a1709073f2600b0078d9c304529mr10190086ejc.195.1666259974445; Thu, 20 Oct 2022 02:59:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666259974; cv=none; d=google.com; s=arc-20160816; b=AZ1SQ3WTXxYy7HsMFo+bnewK2YNT6lvlgBdsLPrHqVmRJN2s9Qb3Ol68mD/7D/so31 iEGKjBYTnGe0d2bzjoaThaGIIChG0eVxEYiweNzJi9f8Ar4e0JxAjWqrrgZa2emccIX9 0avlKtMcmIgn+yLcP4FxrICsM4jL/UXwVlCLkTdzn4c0+Wc428VaN02bOeEZA9GSeuTa aypM5+BZdj7TkJaMcjt3VTSLvDAlbad2Pun/FkNZLJLSmEWol1LSx3TgtAE07Y7WQy2j LmHwW2DiNPpuIGfayIScd0KilABycJFaHL8bgpeN/HAM3xO2slGfyI08uzTQNa0jW5E0 3QNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:message-id:date :user-agent:references:in-reply-to:subject:to:from:ironport-sdr :dmarc-filter:delivered-to; bh=cGNe9ocuarr+1KnkvWs6agjj8EiynP04p2x3QXv0iGM=; b=tmwNCv3rA0gSALl8fGZMQai7CQCM2ehuwIncUDpXuyZT1EX437YlqypXTtC8WtpqTx AMrDOz7w5EPJZm9tMP6xCsurA7yg50q4RFY8NGVzfFDHFefrLayB9kuyoyjkq8sqXuCr ySba5xrMw0ApF0AoN/rSuvROD31VflpGB+ZZGR281rcE9wck1s57PBXP0P+Ax8VSl6BO pkrnsp4vyns5G81+liTeZrZ1vqJafpTo0oYFdoz2y2D1RyFzYtFIP3lPAcxsRPWhisAR mrbaGF/t5CeZZcr4iJhdZ+Mj9l3GduMsrciNOe5gBBmxTTVls51uc0CX5SBRd8/m4kbO Z6Fg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id ek8-20020a056402370800b0045a16f47a9fsi14744980edb.624.2022.10.20.02.59.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 02:59:34 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4C6733850430 for ; Thu, 20 Oct 2022 09:57:31 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id 437F4385615D for ; Thu, 20 Oct 2022 09:57:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 437F4385615D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.95,198,1661846400"; d="scan'208,223";a="87908483" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 20 Oct 2022 01:57:00 -0800 IronPort-SDR: u/RYpLAvEP6HY8FyGc418xBucWLkefRvrKb74z4FbnpqmQc77dWmFOwH/9folU6zZUe8HfRz3l 9LLna0Eg5KCJ2Y59TL+eB4rvmNmSk9usMtqZYZO/dw4qricoKX+SQoo7tjHw5JX43JGEK+3rID b6q7k9FvFALuzoHhLyMi2018UDwwFFou5w99hT1ycZ0fSVQ24BOUaaAOUDumVvZUMMzYLQkcp+ X+w8zZJ0580Aeykt3qR7pV1ITcd1Jn8QlJEKIxkGMGWEZrfQ2nAd/sj+SvrESBJ5NKLNuNXqMt Wx4= From: Thomas Schwinge To: Martin =?utf-8?b?TGnFoWth?= , Subject: Make 'autoreconf' work for 'gcc', 'libobjc' (was: [PATCH] regenerate configure files and config.h.in files) In-Reply-To: References: <8aab1f77-6f20-3c7d-9d2d-322664dcc90d@suse.cz> <87mtau88v9.fsf@euler.schwinge.homeip.net> User-Agent: Notmuch/0.29.3+94~g74c3f1b (https://notmuchmail.org) Emacs/27.1 (x86_64-pc-linux-gnu) Date: Thu, 20 Oct 2022 11:56:55 +0200 Message-ID: <87o7u6hl7c.fsf@euler.schwinge.homeip.net> MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-14.mgc.mentorg.com (139.181.222.14) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Iain Sandoe Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1744496077473940845?= X-GMAIL-MSGID: =?utf-8?q?1747200218972201986?= Hi! Given: On 2022-09-20T14:42:53+0100, Iain Sandoe via Gcc-patches wrote: > +1 from me … > .. I have been maintaining something similar locally. On 2022-09-20T17:23:15+0200, Martin Liška wrote: > I do support that as well. ..., I have now pushed to master branch commit 25861cf3a88a07c8dca3fb32d098c0ad756bbe38 "Make 'autoreconf' work for 'gcc', 'libobjc'", see attached. > What will be the only command invocation that will be needed once you're done? Just plain 'autoreconf' (per each relevant directory). See . Grüße Thomas ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955 From 25861cf3a88a07c8dca3fb32d098c0ad756bbe38 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Tue, 20 Sep 2022 14:27:05 +0200 Subject: [PATCH] Make 'autoreconf' work for 'gcc', 'libobjc' With that, we may then run plain 'autoreconf' for all of GCC's subpackages, instead of for some of those (that don't use Automake) manually having to run the applicable combination of 'aclocal', 'autoconf', 'autoheader'. See also 'AC_CONFIG_MACRO_DIRS'/'AC_CONFIG_MACRO_DIR' usage elsewhere. gcc/ * configure.ac (AC_CONFIG_MACRO_DIRS): Instantiate. * configure: Regenerate. libobjc/ * configure.ac (AC_CONFIG_MACRO_DIRS): Instantiate. * configure: Regenerate. --- gcc/configure | 5 +++-- gcc/configure.ac | 1 + libobjc/configure | 5 +++-- libobjc/configure.ac | 1 + 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gcc/configure b/gcc/configure index 2ce51a8a458..c6def4c88e5 100755 --- a/gcc/configure +++ b/gcc/configure @@ -3333,6 +3333,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu + ac_config_headers="$ac_config_headers auto-host.h:config.in" @@ -19713,7 +19714,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 19716 "configure" +#line 19717 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -19819,7 +19820,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 19822 "configure" +#line 19823 "configure" #include "confdefs.h" #if HAVE_DLFCN_H diff --git a/gcc/configure.ac b/gcc/configure.ac index e1ef2ecf026..45bf7560e6f 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -25,6 +25,7 @@ AC_INIT AC_CONFIG_SRCDIR(tree.cc) +AC_CONFIG_MACRO_DIRS([../config] [..]) AC_CONFIG_HEADER(auto-host.h:config.in) gcc_version=`cat $srcdir/BASE-VER` diff --git a/libobjc/configure b/libobjc/configure index a8fdc643349..6da20b8e4ff 100755 --- a/libobjc/configure +++ b/libobjc/configure @@ -2218,6 +2218,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu + ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then @@ -10795,7 +10796,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10798 "configure" +#line 10799 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -10901,7 +10902,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10904 "configure" +#line 10905 "configure" #include "confdefs.h" #if HAVE_DLFCN_H diff --git a/libobjc/configure.ac b/libobjc/configure.ac index f8f577cfbef..6f58a45d4cb 100644 --- a/libobjc/configure.ac +++ b/libobjc/configure.ac @@ -20,6 +20,7 @@ AC_INIT(package-unused, version-unused,, libobjc) AC_CONFIG_SRCDIR([objc/objc.h]) +AC_CONFIG_MACRO_DIRS([../config] [..]) GCC_TOPLEV_SUBDIRS # We need the following definitions because AC_PROG_LIBTOOL relies on them -- 2.35.1