summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a70bfd219de0..8451b74b3ffa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7499,6 +7499,10 @@ if test $enable_python = system; then
AC_MSG_ERROR([no usable python found])])
test -n "$PYTHON_CFLAGS" && break
fi
+ # let the PYTHON_FOR_BUILD match the same python installation that
+ # provides PYTHON_CFLAGS/PYTHON_LDFLAGS for pyuno, which should be
+ # better for PythonTests.
+ PYTHON_FOR_BUILD=$PYTHON
fi
dnl By now enable_python should be "system", "internal" or "no"