-dnl The minimum version for a python2 interpreter
-m4_define(py2_ver, 2.7.0)
-dnl The minimum version for a python3 interpreter
-m4_define(py3_ver, 3.3.0)
-
-dnl Usage: LYX_PATH_PYTHON
-dnl Find a suitable Python interpreter, that is either python2 >= py2_ver
-dnl or python3 >= py3_ver. Stop with an error message if it has not been found.
-AC_DEFUN([LYX_PATH_PYTHON],
+dnl Usage: LYX_PATH_PYTHON23(PY2-MIN-VERSION, PYTHON3-MIN-VERSION)
+dnl Find a suitable Python interpreter, that is either python2 >= $1
+dnl or python3 >= $2. Stop with an error message if it has not been found.
+AC_DEFUN([LYX_PATH_PYTHON23],