summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2011-03-27 23:41:02 +0200
committerGravatar Martin Szulecki2012-03-20 23:25:55 +0100
commit0befc61c75a5dd289e23a2935b50bbf6125bff4b (patch)
tree8db2db85baf1ba45cef9b7f6ffde0ef1ad56830d
parent21f8584c263ab873d640356cf5aa6c1ccb9427ef (diff)
downloadlibimobiledevice-0befc61c75a5dd289e23a2935b50bbf6125bff4b.tar.gz
libimobiledevice-0befc61c75a5dd289e23a2935b50bbf6125bff4b.tar.bz2
Correct SWIG and Cython autofoo so the makefile picks up correct subdirs
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac11
2 files changed, 6 insertions, 7 deletions
diff --git a/Makefile.am b/Makefile.am
index 9032f79..28779dc 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = src include $(SWIG_SUB) $(CYTHON_SUB) dev tools docs
+SUBDIRS = src include $(SWIG_SUB) $(CYTHON_SUB) $(DEV_SUB) tools docs
DISTCHECK_CONFIGURE_FLAGS = --enable-dev-tools
diff --git a/configure.ac b/configure.ac
index b12ee61..e463336 100644
--- a/configure.ac
+++ b/configure.ac
@@ -91,6 +91,7 @@ else
swig_python_bindings=no
fi
AM_CONDITIONAL([HAVE_SWIG],[test "x$SWIG" != "xfalse"])
+AC_SUBST([SWIG_SUB])
AC_ARG_ENABLE([openssl],
[AS_HELP_STRING([--disable-openssl],
@@ -125,8 +126,6 @@ else
fi
# Cython Python Bindings
-AC_SUBST([CYTHON_PLIST_INCLUDE_DIR])
-
AC_ARG_WITH([cython],
[AS_HELP_STRING([--without-cython],
[build Python bindings using Cython (default is yes)])],
@@ -143,13 +142,14 @@ 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" = "xcython"])
-
-AC_SUBST([DEV_SUB])
+AM_CONDITIONAL([HAVE_CYTHON],[test "x$CYTHON_SUB" = "xcython"])
+AC_SUBST([CYTHON_SUB])
AC_ARG_ENABLE([dev-tools],
[AS_HELP_STRING([--enable-dev-tools],
@@ -169,7 +169,6 @@ else
fi
AM_CONDITIONAL([ENABLE_DEVTOOLS],[test "x$DEV_SUB" = "xdev"])
-
AC_SUBST([DEV_SUB])
AC_ARG_ENABLE([debug-code],