https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127956
Sam James <sjames at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sjames at gcc dot gnu.org
--- Comment #1 from Sam James <sjames at gcc dot gnu.org> ---
We do document modula2 needs it:
"""
GM2
Python3 is required if you want to build the complete Modula-2
documentation including the target SYSTEM definition module. If Python3 is
unavailable Modula-2 documentation will include a target independent version of
the SYSTEM modules.
"""
gcc/m2/Make-lang.in has:
```
ifeq ($(HAVE_PYTHON),yes)
m2.srcextra: m2/SYSTEM-pim.texi m2/SYSTEM-iso.texi m2/gm2-libs.texi
m2/gm2-ebnf.texi
-cp -p m2/SYSTEM-pim.texi $(srcdir)/m2
-cp -p m2/SYSTEM-iso.texi $(srcdir)/m2
-cp -p m2/gm2-libs.texi $(srcdir)/m2
-cp -p m2/gm2-ebnf.texi $(srcdir)/m2
else
m2.srcextra:
endif
```
That test looks for python directly, not via which. I think we should be able
to avoid using which at all and just use the path we found via configure. If
not, we can use command -v from newer POSIX (2008 I think).