blob: c82db10ec3c5c955322df82551ce3bf7d3662a54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
From 662d359689834ea3d1fdb75050b4c97d2ad720cf Mon Sep 17 00:00:00 2001
From: Gilles Dartiguelongue <eva@gentoo.org>
Date: Sun, 4 Jan 2015 00:09:14 +0100
Subject: [PATCH] Make python module detection match detected python
Some distribution might provided multiple python and configure can know
about which exactly though AM_PATH_PYTHON.
---
configure.ac | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/configure.ac b/configure.ac
index 9a0330a6..703fb957 100644
--- a/configure.ac
+++ b/configure.ac
@@ -255,13 +255,14 @@ if test "x$HAVE_RAPPER" = "xno"; then
fi
# check for python-rdflib
+AM_PATH_PYTHON([2.7])
+
AC_MSG_CHECKING([for python-rdflib])
-echo "import rdflib" | $PYTHON - 2>/dev/null
-if test $? -ne 0 ; then
- AC_MSG_FAILURE([failed. Please install the python-rdflib package.])
-else
+AS_IF([$PYTHON -c "import rdflib" 2>/dev/null], [
AC_MSG_RESULT([yes])
-fi
+], [
+ AC_MSG_FAILURE([failed. Please install the python-rdflib package.])
+])
#################################################
# Summary
--
2.13.2
|