summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a3f4bd6)
raw | patch | inline | side by side (parent: a3f4bd6)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 30 Jul 2016 20:30:20 +0000 (22:30 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 30 Jul 2016 20:39:55 +0000 (22:39 +0200) |
Which is not available in minimal build environments (see #1825 for an
example) so replace it with AC_PATH_PROG.
example) so replace it with AC_PATH_PROG.
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 4aa3af7d5b7eac90318746c262faee717e5d9acd..a1c3303beca22cb7aefd4d9dca4d2d07bc2d09f2 100644 (file)
--- a/configure.ac
+++ b/configure.ac
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