Commit df2042d9 authored by Emil Velikov's avatar Emil Velikov Committed by Emil Velikov

configure: enforce python 2.7 with AM_PATH_PYTHON

Currently we use AC_CHECK_PROGS looking for python2.7, python2 and
finally python. That is due to the varying names used across the
different OS.

Use the handy AM_PATH_PYTHON which finds the correct name and checks for
the version.

Note: python2.7 has been an unofficial requirement for quite some time.
Update the docs to reflect that.

Cc: Dylan Baker <>
Signed-off-by: default avatarEmil Velikov <>
parent c7c0b391
......@@ -125,7 +125,10 @@ AC_PROG_GREP
AC_CHECK_PROGS([PYTHON2], [python2.7 python2 python])
AM_PATH_PYTHON([2.7],, [:])
......@@ -157,7 +160,7 @@ fi
if test -z "$PYTHON2"; then
if test "$PYTHON2" = ":"; then
if test ! -f "$srcdir/src/util/format_srgb.c"; then
AC_MSG_ERROR([Python not found - unable to generate sources])
......@@ -72,7 +72,7 @@ you think you've spotted a bug let developers know by filing a
<li><a href="">Python</a> - Python is required.
Version 2.6.4 or later should work.
Version 2.7 or later should work.
<li><a href="">Python Mako module</a> -
Python Mako module is required. Version 0.3.4 or later should work.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment