From: Ruben Kerkhof Date: Sat, 30 Jul 2016 20:30:20 +0000 (+0200) Subject: Stop using `which` for finding python interpreter X-Git-Tag: collectd-5.6.0~136 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6431e247b5c4344f268ff2c19d32ffc05df6955e;p=collectd.git Stop using `which` for finding python interpreter Which is not available in minimal build environments (see #1825 for an example) so replace it with AC_PATH_PROG. --- diff --git a/configure.ac b/configure.ac index 4aa3af7d..a1c3303b 100644 --- a/configure.ac +++ b/configure.ac @@ -3883,14 +3883,12 @@ PATH="$with_python_path" if test "x$with_python" = "xyes" && test "x$with_python_prog" = "x" then - AC_MSG_CHECKING([for python]) - with_python_prog="`which python 2>/dev/null`" - if test "x$with_python_prog" = "x" + AC_PATH_PROG([PYTHON], [python]) + if test "x$PYTHON" = "x" then - AC_MSG_RESULT([not found]) with_python="no (interpreter not found)" else - AC_MSG_RESULT([$with_python_prog]) + with_python_prog="$PYTHON" fi fi