Since Python 2.x went EOL years ago, stop searching for it before
any of the Python 3 versions.
* m4/python.m4: Move python2 after all python3 versions.
* NEWS: Mention update in version search.
- Pass any options given to AM_PROG_LEX on to AC_PROG_LEX.
(bug#65600 and bug#65730)
+* Miscellaneous changes
+
+ - AM_PATH_PYTHON will, after checking `python`, prefer any Python 3
+ version over any Python 2 version. If a specific version of Python 2 is
+ still needed, the $PYTHON variable can be set beforehand.
+
* Obsolescence:
- py-compile no longer supports Python 0.x or 1.x versions. Python 2.0,
dnl Find a Python interpreter. Python versions prior to 2.0 are not
dnl supported. (2.0 was released on October 16, 2000).
m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
-[python python2 python3 dnl
+[python python3 dnl
python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 dnl
python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 dnl
python3.2 python3.1 python3.0 dnl
+ python2 dnl
python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 dnl
python2.0])