summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar John Maguire2010-11-27 15:16:02 +0100
committerGravatar Martin Szulecki2010-11-27 15:20:48 +0100
commita7880511dcbb1dddcb553fc7764324cda545c9b9 (patch)
tree45f6e9179265988ea9fb8a5ca4017a5e741dd579
parenta773a3b72cd8d4a81b71379830e991e642d9ac4c (diff)
downloadlibimobiledevice-a7880511dcbb1dddcb553fc7764324cda545c9b9.tar.gz
libimobiledevice-a7880511dcbb1dddcb553fc7764324cda545c9b9.tar.bz2
Fix configure "--without-swig" flag and show error if libgcrypt is not found
-rw-r--r--configure.ac12
1 files changed, 6 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index e31155c..a2afd81 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,11 +9,6 @@ AC_CONFIG_SRCDIR([src/])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
-AM_PATH_PYTHON(2.3)
-AC_PROG_SWIG(1.3.21)
-AX_SWIG_ENABLE_CXX
-SWIG_PYTHON
-
dnl libtool versioning
# +1 : 0 : +1 == adds new functions to the interface
# +1 : 0 : 0 == changes or removes functions (changes include both
@@ -26,6 +21,7 @@ AC_SUBST(LIBIMOBILEDEVICE_SO_VERSION)
# Checks for programs.
AC_PROG_CC
+AC_PROG_CXX
AM_PROG_CC_C_O
AC_PROG_LIBTOOL
@@ -37,7 +33,7 @@ PKG_CHECK_MODULES(libgnutls, gnutls >= 1.6.3 )
PKG_CHECK_MODULES(libtasn1, libtasn1 >= 1.1)
PKG_CHECK_MODULES(libplist, libplist >= 0.15)
PKG_CHECK_MODULES(libplistmm, libplist++ >= 0.15)
-AC_CHECK_LIB(gcrypt, gcry_control, [AC_SUBST(libgcrypt_LIBS,[-lgcrypt])], ["libgcrypt is required to build libimobiledevice"])
+AC_CHECK_LIB(gcrypt, gcry_control, [AC_SUBST(libgcrypt_LIBS,[-lgcrypt])], [AC_MSG_ERROR([libgcrypt is required to build libimobiledevice])])
# Checks for header files.
AC_HEADER_STDC
@@ -63,6 +59,10 @@ AC_ARG_WITH([swig],
[build_swig=false],
[build_swig=true])
if test "$build_swig" = "true" -a "$SWIG" != "false" ; then
+ AM_PATH_PYTHON(2.3)
+ AC_PROG_SWIG(1.3.21)
+ AX_SWIG_ENABLE_CXX
+ SWIG_PYTHON
SWIG_SUB=swig
else
SWIG_SUB=