From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by sourceware.org (Postfix) with ESMTPS id E12CD3858D33 for ; Fri, 20 Oct 2023 04:07:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E12CD3858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E12CD3858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::633 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697774841; cv=none; b=iDFMXokYRVRV/dZ65Zt3TPMWVNxu8MdZ6XpbV+10gSGLF4Xrw2pJjr0qAzj2sA5kXldXzXPwjqmSUU6dxhA/BDaHTjUODe8k+AP3omHDAnQp3M6UcpcBPF5vO2wv+qsBcW/QHcy50vMNXaWvD0w8PTGwrBKKKj5WaG/oD8PG11E= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697774841; c=relaxed/simple; bh=afgV0J5TfymjGutMPA21o3y20GozYKeoTYgr4EMNLXc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=mXnsiKKJ4jP5gap/iVTuKeMoIUtm0nDHZAvfDQrTPrw/pUVa0cw6NaaluPx2Q/ScvQH0l1mSyiyd/XKEPXUJljE2xCd66qVqktPIqr+u/YOGLciBfOV0yuqv6LLADA1A/4Q7AENpo1n+7GspNHySlH11qZlmXPASqiS9t4wklys= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1c9e072472bso2880125ad.2 for ; Thu, 19 Oct 2023 21:07:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1697774838; x=1698379638; darn=gcc.gnu.org; h=mime-version:user-agent:message-id:in-reply-to:date:references :organization:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=49ROUqOh5suaQXMls1vNFs37xiy9j6f1QI1zp7eFpGg=; b=PM0moonr3VFQfVPmbbhI+ytbQqyoVD3ziXd/ccYzozMJz8O8GKYfC3lZVCPrncMueU U9iQqQGJ/GBL1z2e8JCEqJZSWUHfLSz6pVHhVfjkIaCGLbFQiUcqOmKp0+cE+Q0uoeEh pluPXgJf7o8F4M7y4EXHwR2ksIPWl3f899T7dBnyeBDyawFlE34wiZWBSEhf7qJsAawP r8Wy5p+q3ic/fkkN0Du6EOIQ2/nFA6BWYTt31i6FYHavIovLcFBSsjdrqOR7UwXES8Ev w3YHOfn/gMAKOzTSlvVODwaJhiI6aQ2Wa64/XupIyCRy614g837ZRlZT+ZhAPtTbQyGU rXcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697774838; x=1698379638; h=mime-version:user-agent:message-id:in-reply-to:date:references :organization:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=49ROUqOh5suaQXMls1vNFs37xiy9j6f1QI1zp7eFpGg=; b=VFCLS8xq3Oij5IPy7V4yRDmxwFHE4bUUpw+Wgt+NY+3dB9cbuSQ2bB+CBwhbg0s5Vb Xn6Menjf1Et/7I+rDcRej/zMnl8ZanQecqcKVwL1klEn7JlIPe+IV871nBn3axRap8Lf MemodC0HVrWkuVYpZhGov1JIDPgFpfIX7FFKMP4VOs3g2Tf8y+lIyXUVxrNYAvJrZEFP /e/yZxY4lIBiWqHQD6TF/k1suLsbfN4PGKkpM7Cr+a05vawVdQIdtM9muMXkJZp/rzEM IDNt7j+NKwbPj/KMTSga268CwVQ88KWKyV8V21SnNTkIZeMPeM7Gi013An0Slxcir/Rk 0bHA== X-Gm-Message-State: AOJu0YwKcf2AWvVat5pM3jOh4cDZdNkYDcRQCwC24BwP140Z6ukNOaBc K14n3KAXYUOgGSKdhSj304+s8Q== X-Google-Smtp-Source: AGHT+IFQaG2rvz+TfvVVqg1zB2N1t60NvgxLNURAqjSHrAYx7AVz5VltPGvQM1YPx5uMTeZ2V5nM7A== X-Received: by 2002:a17:903:11c5:b0:1c7:23c9:a7e1 with SMTP id q5-20020a17090311c500b001c723c9a7e1mr786461plh.26.1697774837795; Thu, 19 Oct 2023 21:07:17 -0700 (PDT) Received: from free.home ([2804:7f1:2080:7ba0:18cb:7459:1c6c:8dbf]) by smtp.gmail.com with ESMTPSA id 5-20020a170902e9c500b001c72c07c9d9sm477434plk.308.2023.10.19.21.07.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 21:07:17 -0700 (PDT) Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTPS id 39K472GN1527651 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 20 Oct 2023 01:07:03 -0300 From: Alexandre Oliva To: Thomas Schwinge Cc: <3246251196ryan@gmail.com>, , Iain Sandoe , , Paolo Bonzini , Nathanael Nerode , Ralf Wildenhues , "Joseph Myers" Subject: Re: Enable top-level recursive 'autoreconf' Organization: Free thinker, does not speak for AdaCore References: <4BD76988-F7CE-4AD1-8802-BAE371D1F9F5@sandoe.co.uk> <875y343xah.fsf@euler.schwinge.homeip.net> <87v8b37ye7.fsf@euler.schwinge.homeip.net> Date: Fri, 20 Oct 2023 01:07:02 -0300 In-Reply-To: <87v8b37ye7.fsf@euler.schwinge.homeip.net> (Thomas Schwinge's message of "Thu, 19 Oct 2023 11:30:08 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.84 X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,WEIRD_QUOTING autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Oct 19, 2023, Thomas Schwinge wrote: > On 2023-10-18T15:42:18+0100, R jd <3246251196ryan@gmail.com> wrote: >> I guess I can ask, why there is not a recursive approach for configuring >> GCC. e.g. AC_SUBDIRS in the top level? > ('AC_CONFIG_SUBDIRS' you mean.) You know, often it just takes someone to > ask the right questions... ;-) > What do people think about the attached > "Enable top-level recursive 'autoreconf'"? Only lightly tested, so far. Interesting idea! It is a little hackish, in that it seems to exploit an implementation detail in AC_CONFIG_SUBDIRS rather than a documented feature. I like it! The autoconf documentation suggests that optional directories can be tested for: if test -d "$srcdir/foo"; then AC_CONFIG_SUBDIRS([foo]) fi We could use a macro that takes a list and iterates over the list (untested): dnl Handle a list of optional subdirs. dnl After AC_OUTPUT, affects autoreconf runs, but not configure runs. AC_DEFUN([AC_CONFIG_SUBDIRS_OPT], [ m4_foreach_w([dir], [$1], [ if test -d "$srcdir/dir"; then AC_CONFIG_SUBDIRS(dir) fi ]) ]) Thanks, -- Alexandre Oliva, happy hacker https://FSFLA.org/blogs/lxo/ Free Software Activist GNU Toolchain Engineer More tolerance and less prejudice are key for inclusion and diversity Excluding neuro-others for not behaving ""normal"" is *not* inclusive