summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-03-20 22:50:03 +0100
committerGravatar Martin Szulecki2012-03-20 23:25:56 +0100
commit2c2e6758c32522816f3291c6d1a448bb15d5fd03 (patch)
tree1b9d2bf51ab852752a84f09249ca5c0bef83c8a1
parentb37a2ff6a986bb5b68da43022958fc4408150d7d (diff)
downloadlibimobiledevice-2c2e6758c32522816f3291c6d1a448bb15d5fd03.tar.gz
libimobiledevice-2c2e6758c32522816f3291c6d1a448bb15d5fd03.tar.bz2
Move cython detection directly after SWIG detection in configure.ac
-rw-r--r--configure.ac51
1 files changed, 25 insertions, 26 deletions
diff --git a/configure.ac b/configure.ac
index e463336..91b403e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -93,6 +93,31 @@ fi
AM_CONDITIONAL([HAVE_SWIG],[test "x$SWIG" != "xfalse"])
AC_SUBST([SWIG_SUB])
+# Cython Python Bindings
+AC_ARG_WITH([cython],
+ [AS_HELP_STRING([--without-cython],
+ [build Python bindings using Cython (default is yes)])],
+ [build_cython=false],
+ [build_cython=true])
+if test "$build_cython" = "true"; then
+ AM_PATH_PYTHON(2.3)
+ AC_PROG_CYTHON(0.12.1)
+ CYTHON_PYTHON
+else
+ CYTHON=false
+fi
+if [test "x$CYTHON" != "xfalse"]; then
+ CYTHON_SUB=cython
+ CYTHON_PLIST_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir libplist)/plist/cython
+ AC_SUBST([CYTHON_PLIST_INCLUDE_DIR])
+ cython_python_bindings=yes
+else
+ CYTHON_SUB=
+ cython_python_bindings=no
+fi
+AM_CONDITIONAL([HAVE_CYTHON],[test "x$CYTHON_SUB" = "xcython"])
+AC_SUBST([CYTHON_SUB])
+
AC_ARG_ENABLE([openssl],
[AS_HELP_STRING([--disable-openssl],
[Do not look for OpenSSL])],
@@ -125,32 +150,6 @@ else
ssl_provider="GnuTLS"
fi
-# Cython Python Bindings
-AC_ARG_WITH([cython],
- [AS_HELP_STRING([--without-cython],
- [build Python bindings using Cython (default is yes)])],
- [build_cython=false],
- [build_cython=true])
-if test "$build_cython" = "true"; then
- AM_PATH_PYTHON(2.3)
- AC_PROG_CYTHON(0.12.1)
- CYTHON_PYTHON
-else
- CYTHON=false
-
-fi
-if [test "x$CYTHON" != "xfalse"]; then
- CYTHON_SUB=cython
- CYTHON_PLIST_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir libplist)/plist/cython
- AC_SUBST([CYTHON_PLIST_INCLUDE_DIR])
- cython_python_bindings=yes
-else
- CYTHON_SUB=
- cython_python_bindings=no
-fi
-AM_CONDITIONAL([HAVE_CYTHON],[test "x$CYTHON_SUB" = "xcython"])
-AC_SUBST([CYTHON_SUB])
-
AC_ARG_ENABLE([dev-tools],
[AS_HELP_STRING([--enable-dev-tools],
[build development helper tools (default is no)])],