From 07b8d85cb626134d6a2cbcd9f8d0411afdeedaf4 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 19 Jan 2012 14:10:04 -0600 Subject: [PATCH] Use found python binary to check for pyparsing This matches what we do in client/Makefile.am to actually run the python scripts, which is to use the python binary we find first, preferring 'python2' over 'python'. This makes the compile work on odd systems such as Arch Linux where the python binary is actually python3. Signed-off-by: Dan McGee --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index da600177..b6fb7512 100644 --- a/configure.ac +++ b/configure.ac @@ -217,7 +217,7 @@ SPICE_REQUIRES+=" celt051 >= 0.5.1.1" if test ! -e client/generated_marshallers.cpp; then AC_MSG_CHECKING([for pyparsing python module]) -echo "import pyparsing" | python - >/dev/null 2>&1 +echo "import pyparsing" | ${PYTHON} - >/dev/null 2>&1 if test $? -ne 0 ; then AC_MSG_RESULT([not found]) AC_MSG_ERROR([pyparsing python module is required to compile this package]) @@ -531,6 +531,7 @@ echo " prefix: ${prefix} c compiler: ${CC} c++ compiler: ${CXX} + python: ${PYTHON} Build Spice client: ${enable_client}