summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dave Nicolson2023-11-16 21:06:59 +0100
committerGravatar GitHub2023-11-16 21:06:59 +0100
commit73b4b2d2e851b6042a4b2ac4b1d473aeabf3214c (patch)
treeee9e45644f4de030a32dad5d888d9e5bb2ee701d
parent2cd858c679d25633077ca78b67182a9b77653816 (diff)
downloadlibplist-73b4b2d2e851b6042a4b2ac4b1d473aeabf3214c.tar.gz
libplist-73b4b2d2e851b6042a4b2ac4b1d473aeabf3214c.tar.bz2
Allow building without Python
-rw-r--r--configure.ac7
1 files changed, 4 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index d07ff30..0fd1364 100644
--- a/configure.ac
+++ b/configure.ac
@@ -147,9 +147,10 @@ AC_ARG_WITH([cython],
[build_cython=false],
[build_cython=true])
if test "$build_cython" = "true"; then
- AM_PATH_PYTHON(2.3)
- AC_PROG_CYTHON(0.17.0)
- CYTHON_PYTHON
+ AC_PROG_CYTHON([0.17.0])
+ if [test "x$CYTHON" != "xfalse"]; then
+ AM_PATH_PYTHON([2.3], [CYTHON_PYTHON])
+ fi
else
CYTHON=false
fi