aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-06-01 13:33:52 +0000
committerJustus Winter <[email protected]>2016-06-01 13:33:52 +0000
commit1607aa7fe5dd686ba3bfb6de4a2b602d6a458c86 (patch)
treec1fee7ad6a88a3ff1000502f734922c9b2e06333 /configure.ac
parentpython: Improve build system integration, fix warnings. (diff)
downloadgpgme-1607aa7fe5dd686ba3bfb6de4a2b602d6a458c86.tar.gz
gpgme-1607aa7fe5dd686ba3bfb6de4a2b602d6a458c86.zip
python: Make Python detection more robust.
Previously, missing Python development packages made configure fail instead of merely disabling the bindings. * configure.ac: Check for 'PYTHON_VERSION'. * m4/ax_python_devel.m4: Make test non-fatal. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 75595599..b84b04bc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -365,6 +365,16 @@ if test "$found" = "1"; then
else
AM_PATH_PYTHON([3.3])
AX_SWIG_PYTHON
+ if test -z "$PYTHON_VERSION"; then
+ if test "$explicit_languages" = "1"; then
+ AC_MSG_ERROR([[
+***
+*** Please install the python development packages.
+***]])
+ else
+ enabled_languages=$(echo $enabled_languages | sed 's/python//')
+ fi
+ fi
fi
fi