[lttng-dev] [PATCH lttng-ust] Build: use AM_PATH_PYTHON to resolve python when building agent

Jonathan Rajotte jonathan.rajotte-julien at efficios.com
Mon Aug 10 14:45:31 EDT 2015


The agent can be build against a forced python version by exporting
PYTHON environment variable at configure time.

ex:
$ export PYTHON=python3
$ ./configure --enable-python-agent

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien at efficios.com>
---
 configure.ac | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure.ac b/configure.ac
index d2b6bcb..ade4ffe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -319,6 +319,9 @@ AC_ARG_ENABLE([python-agent],
 	[:]
 )
 AM_CONDITIONAL([BUILD_PYTHON_AGENT], [test "x$python_agent" = "xyes"])
+if test "x$python_agent" = "xyes"; then
+	AM_PATH_PYTHON([2.7])
+fi
 
 # sdt.h integration
 AC_ARG_WITH([sdt],
-- 
2.1.4




More information about the lttng-dev mailing list