summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac43
1 files changed, 34 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index 7dcf87b..b12ee61 100644
--- a/configure.ac
+++ b/configure.ac
@@ -69,12 +69,12 @@ if test "x$ac_cv_have_endian" = "xno"; then
69 fi 69 fi
70fi 70fi
71 71
72 72# SWIG Python Bindings
73AC_ARG_WITH([swig], 73AC_ARG_WITH([swig],
74 [AS_HELP_STRING([--without-swig], 74 [AS_HELP_STRING([--without-swig],
75 [build Python bindings using swig (default is yes)])], 75 [build Python bindings using SWIG (default is yes)])],
76 [build_swig=false], 76 [build_swig=false],
77 [build_swig=true]) 77 [build_swig=true])
78if test "$build_swig" = "true"; then 78if test "$build_swig" = "true"; then
79 AM_PATH_PYTHON(2.3) 79 AM_PATH_PYTHON(2.3)
80 AC_PROG_SWIG(1.3.21) 80 AC_PROG_SWIG(1.3.21)
@@ -83,13 +83,13 @@ if test "$build_swig" = "true"; then
83else 83else
84 SWIG=false 84 SWIG=false
85fi 85fi
86
87if [test "x$SWIG" != "xfalse"]; then 86if [test "x$SWIG" != "xfalse"]; then
88 python_bindings=yes 87 SWIG_SUB=swig
88 swig_python_bindings=yes
89else 89else
90 python_bindings=no 90 SWIG_SUB=
91 swig_python_bindings=no
91fi 92fi
92
93AM_CONDITIONAL([HAVE_SWIG],[test "x$SWIG" != "xfalse"]) 93AM_CONDITIONAL([HAVE_SWIG],[test "x$SWIG" != "xfalse"])
94 94
95AC_ARG_ENABLE([openssl], 95AC_ARG_ENABLE([openssl],
@@ -124,9 +124,32 @@ else
124 ssl_provider="GnuTLS" 124 ssl_provider="GnuTLS"
125fi 125fi
126 126
127# Cython Python Bindings
128AC_SUBST([CYTHON_PLIST_INCLUDE_DIR])
127 129
128AC_SUBST([DEV_SUB]) 130AC_ARG_WITH([cython],
131 [AS_HELP_STRING([--without-cython],
132 [build Python bindings using Cython (default is yes)])],
133 [build_cython=false],
134 [build_cython=true])
135if test "$build_cython" = "true"; then
136 AM_PATH_PYTHON(2.3)
137 AC_PROG_CYTHON(0.12.1)
138 CYTHON_PYTHON
139else
140 CYTHON=false
129 141
142fi
143if [test "x$CYTHON" != "xfalse"]; then
144 CYTHON_SUB=cython
145 CYTHON_PLIST_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir libplist)/plist/cython
146else
147 CYTHON_SUB=
148 cython_python_bindings=no
149fi
150AM_CONDITIONAL([HAVE_CYTHON],[test "x$CYTHON" = "xcython"])
151
152AC_SUBST([DEV_SUB])
130 153
131AC_ARG_ENABLE([dev-tools], 154AC_ARG_ENABLE([dev-tools],
132 [AS_HELP_STRING([--enable-dev-tools], 155 [AS_HELP_STRING([--enable-dev-tools],
@@ -200,6 +223,7 @@ include/Makefile
200dev/Makefile 223dev/Makefile
201tools/Makefile 224tools/Makefile
202swig/Makefile 225swig/Makefile
226cython/Makefile
203docs/Makefile 227docs/Makefile
204libimobiledevice-1.0.pc 228libimobiledevice-1.0.pc
205doxygen.cfg 229doxygen.cfg
@@ -212,7 +236,8 @@ Configuration for $PACKAGE $VERSION:
212 Install prefix: .........: $prefix 236 Install prefix: .........: $prefix
213 Debug code ..............: $building_debug_code 237 Debug code ..............: $building_debug_code
214 Dev tools ...............: $building_dev_tools 238 Dev tools ...............: $building_dev_tools
215 Python bindings .........: $python_bindings 239 SWIG Python bindings ....: $swig_python_bindings
240 Cython Python bindgins ..: $cython_python_bindings
216 SSL support .............: $ssl_provider 241 SSL support .............: $ssl_provider
217 242
218 Now type 'make' to build $PACKAGE $VERSION, 243 Now type 'make' to build $PACKAGE $VERSION,