GNU bug report logs - #65730
[PATCH v2] m4: Update invocation of AC_PROG_LEX

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: automake-patches; Reported by: Łukasz Stelmach <stlman@HIDDEN>; Keywords: patch; merged with #65600; dated Mon, 4 Sep 2023 11:48:02 UTC; Maintainer for automake-patches is automake-patches@HIDDEN.
Merged 65600 65730. Request was from Karl Berry <karl@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 65730 <at> debbugs.gnu.org:


Received: (at 65730) by debbugs.gnu.org; 6 Sep 2023 09:07:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 06 05:07:17 2023
Received: from localhost ([127.0.0.1]:60825 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qdoVJ-0005pz-Bd
	for submit <at> debbugs.gnu.org; Wed, 06 Sep 2023 05:07:17 -0400
Received: from mout.gmx.net ([212.227.17.22]:34817)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bogdro_rep@HIDDEN>)
 id 1qdoVG-0005pg-QN; Wed, 06 Sep 2023 05:07:16 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.us;
 s=s31663417; t=1693991220; x=1694596020; i=bogdro_rep@HIDDEN;
 bh=QDJOLYj6OqIxa1txO4D/8po7POiKXAraNYN7Hv3jaCg=;
 h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To;
 b=hhnUXE0FqUoFoAdzMxwaGWfkbsclcT/ycT2i+imz636cL32++mSoQqIgFeQwBdPc6bY81OF
 U6/IDV2UmUicc5HD/hyKm6SUGe6Mi8E10IibFP9UUaPoD7tt3xJ4KM/W2Qo32kwFB1uHXPcsE
 f2kXz+mJbq4/ho91QIWEXYNx84VkUh3xmnbba7BXNnzEBVt0jM2sucKw705lQMw+aA0yDJg3p
 +HSAahtwR5E8UZ39/mX82UrjTz/8ycb589h3EXNEydpXMBqcZPzy//lPwUDcTzLPc2IfiHj2E
 swOCoc2YE4oD2gBtVxKd/1ZjbSs+TLMpiQhDOq2NdYU3dAXMulEg==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from [192.168.0.4] ([83.255.207.180]) by mail.gmx.net (mrgmx105
 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MCbEp-1qVsGt2mxf-009isW; Wed, 06
 Sep 2023 11:07:00 +0200
Message-ID: <e4e654f6-579b-b325-1ba4-009fe3b4f1e1@HIDDEN>
Date: Wed, 6 Sep 2023 11:06:56 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.15.0
Subject: Re: [bug#65600] [PATCH] Allow parameters AM_PROG_LEX
Content-Language: en-GB
To: Karl Berry <karl@HIDDEN>, zack@HIDDEN
References: <202309052115.385LFGfv030280@HIDDEN>
From: Bogdan <bogdro_rep@HIDDEN>
In-Reply-To: <202309052115.385LFGfv030280@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:j/lt4/zcgvZq3ssbAVW81CxDyaKDKZ5ytw6ZD9e+moC9vh099Kf
 yKLiMZnVD0JZTUVZwS2riY5LCMsBWOyK9hP/DfyLstfep2SjQwDdP4lpsyAufwLpodMhGPJ
 L5p6e4RkZLu05eNzMqh9RSQNS+4clNeeRhL+ERJEej47sddMDMRbMhcqPCWBlKQ58vzuZRb
 yg+8HiJgxLw/dh1a6ZGbg==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:7AIiN1llYWM=;bRAI3UfN4FitRaJtVu14p1SNVF5
 /kNGGX69kBHB3kTbHCikgfljviiBO5SMem8tMtBuWdfqWH95uheySAk1+bXC9of/AVELeo02G
 HVOlXi4IIiDssMhiKQCLepHVPvP/CiGv0GC+OZMraFasaXnzacDs8aDBALvVSLeKjAKolDgid
 aC/NeaE5b/k8DQG5o0Sxkcotvb2zjCIl8XqeM7/4a7oK5P904i3YllrLm7SdPGvQp4sN7EFsP
 wYTyXWQ8u3ljG76DmyukVav8hm2tfzgOvHsMO8SH3lZXf1AbNMDxtnArEXH8JBAdE6C40HQHL
 AWI+U9380wrrc7b5YnQ8w3Jl9XiMdJ4K2Fkj6MynrnAhOTuQqzwVklIKhsH699sQh+45mXZpq
 o8q6S9PXu5cUT7yxpXzamlIZj9G3VZw/vrpyhem0p+qCXwNvy3LkhX8Xvkqm0j00bap76IgLJ
 t3DJndyJPLCkoPj7yEzMYYasH7jrpfLaSpkIbpTI0pL0rUWhm5DUxsLrxfVoBT+EYsDAuLVqK
 z/q9MSuObHeWA01LJoqourGkeHl2YsvjxBdY8qnGB8wC8ThJAUnAL1bwV3wenwza8Dvj0f4//
 5dCdtQKEUePwdc+l5LgKH4Q5VK6vpebMhNRCia4b8a2qh1vTw4Ogowz3eHm+dwK7Sdxf2d86S
 LfRh7P4lBLzMXcPBmV1XIeCCv+iu7SVun7DfdjQzT0p76IdRnFNPZHvbWORa25weh5NMfmPJV
 CV3rz6JXxpkMq48HaTUlTMLO5kVoq0ANaMz+4k4w1R4GjcfMaosN5Q3o6tVOvMRF1bDkCI6+r
 +natLhwoDeZhPy0Z/1QvKmEPdtsyQ8S440glTy1rNHjNbwXZEMZTIx/78q/KEAdqqCp1s8VSt
 5FP7WVAFBV569Qmm3uZLZ9f0xMmC6S9WG1O+OUtoQ3JlqUluC8kDrp5qILVlLctF+IDJpCO0d
 9eBlESyMKu5ckZErYlvvu3WVIbw=
X-Spam-Score: -2.2 (--)
X-Debbugs-Envelope-To: 65730
Cc: 65730 <at> debbugs.gnu.org, nbowler@HIDDEN, 65600 <at> debbugs.gnu.org,
 stlman@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.2 (---)

Karl Berry <karl@HIDDEN>, Tue Sep 05 2023 23:15:16 GMT+0200
(Central European Summer Time)
>      Karl: The same problem was also reported as bug 65730, with a patch
>
> Thanks Zack. I had just composed a reply saying just about exactly the
> same thing as you wrote :).
>
> I will merge the patches and try Bogdan's test, no problem. -k
>
> P.S. Bogdan, sorry that I wasn't thinking more clearly when I asked you
> to write the more complicated version.


  No problem, new "experience points" earned :). M4 and all Autoconf
macros (knowledge about their existence) are still a bit out of my
range. Especially AC_PROVIDE_IFELSE, which I don't even have in my
Autoconf manual (it *is* found in the code, but not in the manual)...

Bogdan





Information forwarded to automake-patches@HIDDEN:
bug#65730; Package automake-patches. Full text available.

Message received at 65730 <at> debbugs.gnu.org:


Received: (at 65730) by debbugs.gnu.org; 5 Sep 2023 21:15:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 05 17:15:21 2023
Received: from localhost ([127.0.0.1]:59646 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qddOL-0004NE-Jf
	for submit <at> debbugs.gnu.org; Tue, 05 Sep 2023 17:15:21 -0400
Received: from frenzy.freefriends.org ([198.99.81.75]:59022
 helo=freefriends.org) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <karl@HIDDEN>)
 id 1qddOJ-0004N3-7W; Tue, 05 Sep 2023 17:15:20 -0400
X-Envelope-From: karl@HIDDEN
Received: from freefriends.org (localhost [127.0.0.1])
 by freefriends.org (8.14.7/8.14.7) with ESMTP id 385LFHis030281
 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); 
 Tue, 5 Sep 2023 15:15:17 -0600
Received: (from apache@localhost)
 by freefriends.org (8.14.7/8.14.7/Submit) id 385LFGfv030280;
 Tue, 5 Sep 2023 15:15:16 -0600
Date: Tue, 5 Sep 2023 15:15:16 -0600
Message-Id: <202309052115.385LFGfv030280@HIDDEN>
From: Karl Berry <karl@HIDDEN>
To: zack@HIDDEN
Subject: Re: [bug#65600] [PATCH] Allow parameters AM_PROG_LEX
In-Reply-To: <0e28c1e5-7c88-41de-94fc-540b0218a280@HIDDEN>
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 65730
Cc: 65730 <at> debbugs.gnu.org, bogdro_rep@HIDDEN, stlman@HIDDEN,
 65600 <at> debbugs.gnu.org, nbowler@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

    Karl: The same problem was also reported as bug 65730, with a patch

Thanks Zack. I had just composed a reply saying just about exactly the
same thing as you wrote :).

I will merge the patches and try Bogdan's test, no problem. -k

P.S. Bogdan, sorry that I wasn't thinking more clearly when I asked you
to write the more complicated version.




Information forwarded to automake-patches@HIDDEN:
bug#65730; Package automake-patches. Full text available.

Message received at 65730 <at> debbugs.gnu.org:


Received: (at 65730) by debbugs.gnu.org; 5 Sep 2023 19:50:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 05 15:50:43 2023
Received: from localhost ([127.0.0.1]:59416 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qdc4Q-0005Cf-OL
	for submit <at> debbugs.gnu.org; Tue, 05 Sep 2023 15:50:43 -0400
Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:53113)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zack@HIDDEN>)
 id 1qdc4L-0005CG-HH; Tue, 05 Sep 2023 15:50:39 -0400
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.west.internal (Postfix) with ESMTP id 15C4C32007CF;
 Tue,  5 Sep 2023 15:50:30 -0400 (EDT)
Received: from imap45 ([10.202.2.95])
 by compute1.internal (MEProxy); Tue, 05 Sep 2023 15:50:30 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owlfolio.org; h=
 cc:cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to; s=fm3; t=
 1693943429; x=1694029829; bh=AAn0I28gJnfxQ1Xw66eEoYWtAHTUXh0i1RL
 8kfpChiY=; b=LDK51pxr6UOpfvgTlj6aX/MDRPMmx7VIxaBdXihkc36MFKySAlm
 CcamCuICAtPyPcO75a15+7AnqPcjJ/8/GqdstP8PE/WXwgj3pW76uISOj9d5bHCk
 fC2x++HIrP+Dvqqs2EMoKtOz27NTkPchLbtKovCek4cgOgJa5exvMVyzox1e6oGL
 HK6+lo49+A92mJjqyoBG3Q4fO2bAcBGIZjz2kDEpn015hwUOAKn7TZcnK0/+W9IH
 QUY7tjA489HOK+JkX5mWUPYUqtobkbgBP63g95zutCJmkqXwKVuUFfNlb38gZIPV
 /vffHkRZNMkTZT9RLCawosXzGWpeIc6VpSg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=
 1693943429; x=1694029829; bh=AAn0I28gJnfxQ1Xw66eEoYWtAHTUXh0i1RL
 8kfpChiY=; b=TQ6iT0W39SWv4XMzp3FSH7V5F7DiylSh4CpR7THAC1GF1aTP7bg
 JOc1YHNP/hGbQdyrcK0MNDbTNE7+jfLfrwV+2hazg2EcFgtXfZHM59Us+aCGQmsG
 dM9b3Kl1JDacm9IIAXCIMDlFb05Tgx/NeiuJrD56QDpqH6QuSYjfu6b86xW1aAtg
 ubO9lgu9KfzDnosJc7fz/Qf6GhlgMnph+fz3O6En+3kwueFGozBZJ+RbC+SZrFpE
 dh5YWyx1h1NcDJ+WUd6nDLheAeJv7x5OGVWTamHiOAdMxnadNV1WYm87HBbYGaa5
 hb2LGni+Zkioy0hGqw69NrUl0z974/YaFpQ==
X-ME-Sender: <xms:hYb3ZKvNwGz6IK--aTop-GfyKDTuxiQF56_4J-c4sjFFt9QE4p_oig>
 <xme:hYb3ZPdPebLHHKIs0iiS8faOHlXF8FrQpEhESGvHsOgY0r3Xy7a_edGVlFw0zTehI
 X5HqWaOS6CXh_NNxy8>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudehuddguddvtdcutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedf
 kggrtghkucghvghinhgsvghrghdfuceoiigrtghksehofihlfhholhhiohdrohhrgheqne
 cuggftrfgrthhtvghrnhepudeuieegheffkeeihfdtheeivdeuffetveethfdugfeutdeu
 iedttefgteeiieeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh
 hfrhhomhepiigrtghksehofihlfhholhhiohdrohhrgh
X-ME-Proxy: <xmx:hYb3ZFxOk9xS5z2PUiClaFWrSKAVGP3ycwfyCjTU2OVZXkYGUbx10g>
 <xmx:hYb3ZFNx0oz1ZwP3cVJIvv0s42cljb33qFNZo5zfqtzNwRqi-wbETQ>
 <xmx:hYb3ZK-WMrYr6SuSAHtzBloZrqqHtJLKIJZNmeRNlBl8s4ppixVLlg>
 <xmx:hYb3ZBaKnTaWzfL68uBFDs0K-2DJWMqp61gkzkhR9hSpMNZ_7vfluQ>
Feedback-ID: i876146a2:Fastmail
Received: by mailuser.nyi.internal (Postfix, from userid 501)
 id EF3BA272007B; Tue,  5 Sep 2023 15:50:28 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.9.0-alpha0-711-g440737448e-fm-20230828.001-g44073744
Mime-Version: 1.0
Message-Id: <0e28c1e5-7c88-41de-94fc-540b0218a280@HIDDEN>
In-Reply-To: <186fa5fe-1afb-891b-54a8-6b767168742a@HIDDEN>
References: <202308312228.37VMS4Ee023090@HIDDEN>
 <186fa5fe-1afb-891b-54a8-6b767168742a@HIDDEN>
Date: Tue, 05 Sep 2023 15:49:45 -0400
From: "Zack Weinberg" <zack@HIDDEN>
To: "Karl Berry" <karl@HIDDEN>
Subject: Re: [bug#65600] [PATCH] Allow parameters AM_PROG_LEX
Content-Type: text/plain;charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 65730
Cc: 65730 <at> debbugs.gnu.org, Bogdan <bogdro_rep@HIDDEN>,
 =?UTF-8?Q?=C5=81ukasz_Stelmach?= <stlman@HIDDEN>, 65600 <at> debbugs.gnu.org,
 Nick Bowler <nbowler@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> Karl Berry <karl@HIDDEN>, Fri Sep 01 2023 00:28:04 GMT+0200
> (Central European Summer Time)
>> Bogdan: I will adjust the patch, one way or another. Nothing more for
>> you to do here after all :). --thanks, karl.

Karl: The same problem was also reported as bug 65730, with a patch
supplied by =C5=81ukasz Stelmach.  That patch is preferable to Bogdan's
patch, for two reasons.  First, =C5=81ukasz's patch uses $@ to forward *=
all*
arguments to AC_PROG_LEX, regardless of what they are, making it robust
to the possibility of *more* arguments being added to AC_PROG_LEX in the
future (for example, we might decide to add an option to specify that
you need Flex specifically).  Second, =C5=81ukasz's patch checks whether
AC_PROG_LEX has already been invoked, and if so does not run it again.
That makes the updated AM_PROG_LEX continue to be compatible with the
workaround we (Autoconf) have been suggesting for this issue, namely
to write

AC_PROG_LEX([noyywrap])
AM_PROG_LEX

It looks like Bogdan's patch does include a new set of tests that are
worth preserving, but please use =C5=81ukasz's actual code change.  (I r=
egret
I cannot volunteer to merge the two patches as I am in the middle of
reinstalling the operating system on my workstation, and that's already
taken a week and a half with no end in sight.  You know how these things
go, I'm sure.)

zw




Information forwarded to automake-patches@HIDDEN:
bug#65730; Package automake-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 4 Sep 2023 11:47:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 04 07:47:02 2023
Received: from localhost ([127.0.0.1]:48961 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qd82o-0001uY-AR
	for submit <at> debbugs.gnu.org; Mon, 04 Sep 2023 07:47:02 -0400
Received: from lists.gnu.org ([2001:470:142::17]:36968)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stlman@HIDDEN>) id 1qd82j-0001tr-Uf
 for submit <at> debbugs.gnu.org; Mon, 04 Sep 2023 07:47:01 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <stlman@HIDDEN>) id 1qd82I-0008MU-5m
 for automake-patches@HIDDEN; Mon, 04 Sep 2023 07:46:37 -0400
Received: from smtpo62.interia.pl ([217.74.67.62])
 by eggs.gnu.org with esmtps (TLS1.2:RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <stlman@HIDDEN>) id 1qd82E-0007D9-Mz
 for automake-patches@HIDDEN; Mon, 04 Sep 2023 07:46:29 -0400
Received: from localhost (unknown [213.134.186.4])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 by www.poczta.fm (INTERIA.PL) with ESMTPSA;
 Mon,  4 Sep 2023 13:40:21 +0200 (CEST)
From: =?UTF-8?q?=C5=81ukasz=20Stelmach?= <stlman@HIDDEN>
To: automake-patches@HIDDEN
Subject: [PATCH v2] m4: Update invocation of AC_PROG_LEX
Date: Mon,  4 Sep 2023 13:40:09 +0200
Message-Id: <20230904114009.1125433-1-stlman@HIDDEN>
X-Mailer: git-send-email 2.30.2
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-IPL-Priority-Group: 0-0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poczta.fm; s=dk;
 t=1693827621; bh=+Guf8AVYxpNqW7ePbTeBG5ntMylwZGnr7m/RlkeZrdo=;
 h=From:To:Subject:Date:Message-Id:MIME-Version;
 b=icw2+E+9WYvX+gUlOoTj12qifL9AxYmAlGxc49siTlVZHS2z4C+5VEutCagxOn21A
 aGVvP9Li4iOEE6zAJl9RelG6zg4OEhWB9BLAWu9BNW+selbb+EsP/EvBWXqp0cKFRo
 hU8zFJQPGNCAIW0yMlXJ/mT7Gf3BJcC0CNizLKSE=
Received-SPF: pass client-ip=217.74.67.62; envelope-from=stlman@HIDDEN;
 helo=smtpo62.interia.pl
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
Cc: zack@HIDDEN, =?UTF-8?q?=C5=81ukasz=20Stelmach?= <stlman@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)

Commit 73f1be5e42e3 to autoconf has introduced an argument
to AC_PROG_LEX. Invocation without the argument has been treated
as obsolete since then.

* m4/lex.m4: pass the required argument to AC_PROG_LEX

* doc/automake.texi: Describe it.

* NEWS: Mention it
---
 NEWS              | 2 ++
 doc/automake.texi | 5 +++--
 m4/lex.m4         | 6 +++---
 3 files changed, 8 insertions(+), 5 deletions(-)

I sent v1[1] by mistake to autoconf-patches@HIDDEN where Zack Weinberg
sent[2] some suggestions.

[1] https://lists.gnu.org/archive/html/autoconf-patches/2023-08/msg00002.html
[2] https://lists.gnu.org/archive/html/autoconf-patches/2023-08/msg00003.html

diff --git a/NEWS b/NEWS
index ced0fd640..78162b746 100644
--- a/NEWS
+++ b/NEWS
@@ -57,6 +57,8 @@ New in 1.17:
 
   - tests: avoid some declaration conflicts for lex et al. on SunOS.
 
+  - Pass options AC_PROG_LEX requires
+
 * Obsolescent features:
 
   - py-compile no longer supports Python 0.x or 1.x versions.  Python 2.0,
diff --git a/doc/automake.texi b/doc/automake.texi
index d14b769fd..61b7fd095 100644
--- a/doc/automake.texi
+++ b/doc/automake.texi
@@ -4130,7 +4130,7 @@ Automake 1.14, the @code{AC_PROG_CC} is rewritten to implement such
 checks itself, and thus the explicit use of @code{AM_PROG_CC_C_O}
 should no longer be required.
 
-@item AM_PROG_LEX
+@item AM_PROG_LEX(@var{options})
 @acindex AM_PROG_LEX
 @acindex AC_PROG_LEX
 @cindex HP-UX 10, @command{lex} problems
@@ -4138,7 +4138,8 @@ should no longer be required.
 Like @code{AC_PROG_LEX} (@pxref{Particular Programs, , Particular
 Program Checks, autoconf, The Autoconf Manual}), but uses the
 @command{missing} script on systems that do not have @command{lex}.
-HP-UX 10 is one such system.
+HP-UX 10 is one such system. @var{options} are passed directly to
+@code{AC_PROG_LEX}.
 
 @item AM_PROG_GCJ
 @acindex AM_PROG_GCJ
diff --git a/m4/lex.m4 b/m4/lex.m4
index 7b0511526..e9a8485d6 100644
--- a/m4/lex.m4
+++ b/m4/lex.m4
@@ -6,14 +6,14 @@
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
 
-# AM_PROG_LEX
-# -----------
+# AM_PROG_LEX(OPTIONS)
+# --------------------
 # Autoconf leaves LEX=: if lex or flex can't be found.  Change that to a
 # "missing" invocation, for better error output.
 AC_DEFUN([AM_PROG_LEX],
 [AC_PREREQ([2.50])dnl
 AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
-AC_REQUIRE([AC_PROG_LEX])dnl
+AC_PROVIDE_IFELSE([AC_PROG_LEX], [], [AC_PROG_LEX($@)])dnl
 if test "$LEX" = :; then
   LEX=${am_missing_run}flex
 fi])
-- 
2.30.2





Acknowledgement sent to Łukasz Stelmach <stlman@HIDDEN>:
New bug report received and forwarded. Copy sent to automake-patches@HIDDEN. Full text available.
Report forwarded to automake-patches@HIDDEN:
bug#65730; Package automake-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 6 Sep 2023 21:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.