summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2018-02-27 16:19:51 +0100
committerDavid Sterba <dsterba@suse.com>2018-03-06 11:28:38 +0100
commit58fae8ff58b973737326882ca1f5a410a70f1f03 (patch)
tree2c7923b74b451730d3c6cbc6a28f083a35787929
parentefc08d33907472f5c4bc2f6318400963bab994bc (diff)
libbtrfsutils: add python-devel detection
Use pkg-config to detect python devel. Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--Makefile.inc.in2
-rw-r--r--configure.ac1
2 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.inc.in b/Makefile.inc.in
index 159d38ed..52410f69 100644
--- a/Makefile.inc.in
+++ b/Makefile.inc.in
@@ -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@
diff --git a/configure.ac b/configure.ac
index 17dcb3a4..dcc98ea7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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])