libbtrfsutil: use pkg-config detection for the right Python version
The user may have specified a different version of Python than the python3 from their $PATH (e.g., with PYTHON=/usr/bin/python3.6). Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
58b5610845
commit
f44a055012
|
@ -219,7 +219,7 @@ AC_ARG_ENABLE([python],
|
||||||
|
|
||||||
if test "x$enable_python" = xyes; then
|
if test "x$enable_python" = xyes; then
|
||||||
AM_PATH_PYTHON([3.4])
|
AM_PATH_PYTHON([3.4])
|
||||||
PKG_CHECK_MODULES(PYTHON, [python3])
|
PKG_CHECK_MODULES(PYTHON, [python-${PYTHON_VERSION}])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AS_IF([test "x$enable_python" = xyes], [PYTHON_BINDINGS=1], [PYTHON_BINDINGS=0])
|
AS_IF([test "x$enable_python" = xyes], [PYTHON_BINDINGS=1], [PYTHON_BINDINGS=0])
|
||||||
|
|
Loading…
Reference in New Issue