From: Jonathan Rajotte Date: Mon, 10 Aug 2015 18:45:31 +0000 (-0400) Subject: Build: use AM_PATH_PYTHON to resolve python when building agent X-Git-Tag: v2.8.0-rc1~109 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=55c9e5ae72080e66a84a205650538a5d4294e95b;p=lttng-ust.git Build: use AM_PATH_PYTHON to resolve python when building agent The agent can be built 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 Signed-off-by: Mathieu Desnoyers --- diff --git a/configure.ac b/configure.ac index 1c841da8..57e67507 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],