From 5ff092f390209e4e30b882a37125e7f466e920f9 Mon Sep 17 00:00:00 2001 From: Samuel Iglesias Gonsalvez Date: Thu, 26 Feb 2015 15:19:45 +0100 Subject: [PATCH] configure.ac: Don't check for python mako module if python is not installed This could be the case of trying to compile a Mesa tarball (from 'make dist' command) in a machine without Python interpreter installed. The autogenerated files from mako templates were already created during tarball generation. In case of building from git without Python it is going to fail anyway because Python is not present when trying to autogenerate the files from mako templates. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89328 Signed-off-by: Samuel Iglesias Gonsalvez --- configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 5fbb7bc..2dbd1cf 100644 --- a/configure.ac +++ b/configure.ac @@ -114,7 +114,12 @@ if test "x$INDENT" != "xcat"; then fi fi -AX_CHECK_PYTHON_MAKO_MODULE(0.3.4) +if test -n "$PYTHON2"; then + AX_CHECK_PYTHON_MAKO_MODULE(0.3.4) +else + AC_MSG_WARN([python not found - unable to check for python mako module]) +fi + AC_PROG_INSTALL -- 2.1.4