[patch #10546] commit 1eeb8c "ax_lua.m4: add LuaJIT support" breaks configurations not requesting LuaJIT

Diab Jerius <[email protected]> Thu, 6 Nov 2025 10:29:04 -0500 (EST)
Newsgroups gmane.comp.sysutils.autoconf.archive-maintainers
Message-ID <[email protected]>
--8323329-801824331-1762442944=:392229
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline

URL:=0A  <https://savannah.gnu.org/patch/?10546>=0A=0A                 Summ=
ary: commit 1eeb8c "ax_lua.m4: add LuaJIT support" breaks=0Aconfigurations =
not requesting LuaJIT=0A                   Group: GNU Autoconf Archive=0A  =
             Submitter: djerius=0A               Submitted: Thu 06 Nov 2025=
 03:29:00 PM UTC=0A                Priority: 7 - High=0A                  S=
tatus: None=0A             Assigned to: None=0A        Originator Email:=0A=
             Open/Closed: Open=0A         Discussion Lock: Any=0A=0A=0A    =
_______________________________________________________=0A=0AFollow-up Comm=
ents:=0A=0A=0A-------------------------------------------------------=0ADat=
e: Thu 06 Nov 2025 03:29:00 PM UTC By: Diab Jerius <djerius>=0Acommit 1eeb8=
c70a6dc8df17825260a22f9d9ee7115735d introduces the use of the=0ALUAJIT auto=
make conditional, and documents it as optional:=0A=0A#   Optionally a LUAJI=
T option may be set ahead of time to look for and=0A#   validate a LuaJIT i=
nstall instead of PUC Lua. Usage might look like:=0A#=0A#     AC_ARG_WITH(l=
uajit, [AS_HELP_STRING([--with-luajit],=0A#         [Prefer LuaJIT over PUC=
 Lua, even if the latter is newer. Default:=0Ano])=0A#     ])=0A#     AM_CO=
NDITIONAL([LUAJIT], [test "x$with_luajit" !=3D 'xno'])=0A=0AHowever, if LUA=
JIT is not defined, this causes things to break, for example,=0Awith a simp=
le configure.ac:=0A=0AAC_INIT([foo])=0AAX_PROG_LUA=0A=0Arunning aclocal res=
ults in=0A=0A% aclocal=0Aconfigure.ac:2: error: AM_COND_IF: no such conditi=
on "LUAJIT"=0A/proj/axaf/ots/x86_64-linux_debian-10/share/aclocal-1.18/cond=
-if.m4:23:=0AAM_COND_IF is expanded from...=0A/proj/axaf/ots/share/aclocal/=
ax_lua.m4:199: AX_PROG_LUA is expanded from...=0Aconfigure.ac:2: the top le=
vel=0Aautom4te: error: /usr/bin/m4 failed with exit status: 1=0Aaclocal: er=
ror: autom4te failed with exit status: 1=0A=0Awhich breaks existing configu=
rations.=0A=0Aautomake documents that=0A=0A[...] you must arrange for _ever=
y_ =E2=80=98AM_CONDITIONAL=E2=80=99 to be invoked every=0Atime =E2=80=98con=
figure=E2=80=99 is run.=0A=0A=0Awhich, I believe precludes creating the con=
ditional inside the body of the=0AAX_PROG_LUA macro, as that may be invoked=
 conditionally if Lua is an optional=0Acomponent.=0A=0AI think the only via=
ble option is to introduce another parameter to the=0AAX_PROG_LUA macro.=0A=
=0A=0A=0A=0A=0A=0A=0A    __________________________________________________=
_____=0A=0AReply to this item at:=0A=0A  <https://savannah.gnu.org/patch/?1=
0546>=0A=0A_______________________________________________=0AMessage sent v=
ia Savannah=0Ahttps://savannah.gnu.org/=0A
--8323329-801824331-1762442944=:392229
Content-Type: APPLICATION/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaQy+wAAKCRCqLAuaBUf3
TqRmAPsGC6Uu6D9NkwYRYZUKjpbDVmCU2deXISN0AYtIQqAnrgEA0sUKWCZfH7Xk
mBzou4UAat3PqFNhxMBicDOq5iHWgQQ=
=W3a+
-----END PGP SIGNATURE-----

--8323329-801824331-1762442944=:392229--