libbtrfsutils: add python-devel detection
Use pkg-config to detect python devel. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
efc08d3390
commit
58fae8ff58
|
@ -16,12 +16,14 @@ BTRFSCONVERT_REISERFS = @BTRFSCONVERT_REISERFS@
|
|||
BTRFSRESTORE_ZSTD = @BTRFSRESTORE_ZSTD@
|
||||
PYTHON_BINDINGS = @PYTHON_BINDINGS@
|
||||
PYTHON = @PYTHON@
|
||||
PYTHON_CFLAGS = @PYTHON_CFLAGS@
|
||||
|
||||
SUBST_CFLAGS = @CFLAGS@
|
||||
SUBST_LDFLAGS = @LDFLAGS@
|
||||
|
||||
LIBS_BASE = @UUID_LIBS@ @BLKID_LIBS@ -L. -pthread
|
||||
LIBS_COMP = @ZLIB_LIBS@ @LZO2_LIBS@ @ZSTD_LIBS@
|
||||
LIBS_PYTHON = @PYTHON_LIBS@
|
||||
STATIC_LIBS_BASE = @UUID_LIBS_STATIC@ @BLKID_LIBS_STATIC@ -L. -pthread
|
||||
STATIC_LIBS_COMP = @ZLIB_LIBS_STATIC@ @LZO2_LIBS_STATIC@ @ZSTD_LIBS_STATIC@
|
||||
|
||||
|
|
|
@ -219,6 +219,7 @@ AC_ARG_ENABLE([python],
|
|||
|
||||
if test "x$enable_python" = xyes; then
|
||||
AM_PATH_PYTHON([3.4])
|
||||
PKG_CHECK_MODULES(PYTHON, [python3])
|
||||
fi
|
||||
|
||||
AS_IF([test "x$enable_python" = xyes], [PYTHON_BINDINGS=1], [PYTHON_BINDINGS=0])
|
||||
|
|
Loading…
Reference in New Issue