summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac12
1 files changed, 6 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 8900754..c996625 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,11 +9,6 @@ AC_CONFIG_SRCDIR([src/])
9AC_CONFIG_HEADERS([config.h]) 9AC_CONFIG_HEADERS([config.h])
10AC_CONFIG_MACRO_DIR([m4]) 10AC_CONFIG_MACRO_DIR([m4])
11 11
12AM_PATH_PYTHON(2.3)
13AC_PROG_SWIG(1.3.21)
14AX_SWIG_ENABLE_CXX
15SWIG_PYTHON
16
17dnl libtool versioning 12dnl libtool versioning
18# +1 : 0 : +1 == adds new functions to the interface 13# +1 : 0 : +1 == adds new functions to the interface
19# +1 : 0 : 0 == changes or removes functions (changes include both 14# +1 : 0 : 0 == changes or removes functions (changes include both
@@ -26,6 +21,7 @@ AC_SUBST(LIBIMOBILEDEVICE_SO_VERSION)
26 21
27# Checks for programs. 22# Checks for programs.
28AC_PROG_CC 23AC_PROG_CC
24AC_PROG_CXX
29AM_PROG_CC_C_O 25AM_PROG_CC_C_O
30AC_PROG_LIBTOOL 26AC_PROG_LIBTOOL
31 27
@@ -37,7 +33,7 @@ PKG_CHECK_MODULES(libgnutls, gnutls >= 1.6.3 )
37PKG_CHECK_MODULES(libtasn1, libtasn1 >= 1.1) 33PKG_CHECK_MODULES(libtasn1, libtasn1 >= 1.1)
38PKG_CHECK_MODULES(libplist, libplist >= 0.15) 34PKG_CHECK_MODULES(libplist, libplist >= 0.15)
39PKG_CHECK_MODULES(libplistmm, libplist++ >= 0.15) 35PKG_CHECK_MODULES(libplistmm, libplist++ >= 0.15)
40AC_CHECK_LIB(gcrypt, gcry_control, [AC_SUBST(libgcrypt_LIBS,[-lgcrypt])], ["libgcrypt is required to build libimobiledevice"]) 36AC_CHECK_LIB(gcrypt, gcry_control, [AC_SUBST(libgcrypt_LIBS,[-lgcrypt])], [AC_MSG_ERROR([libgcrypt is required to build libimobiledevice])])
41 37
42# Checks for header files. 38# Checks for header files.
43AC_HEADER_STDC 39AC_HEADER_STDC
@@ -63,6 +59,10 @@ AC_ARG_WITH([swig],
63 [build_swig=false], 59 [build_swig=false],
64 [build_swig=true]) 60 [build_swig=true])
65if test "$build_swig" = "true" -a "$SWIG" != "false" ; then 61if test "$build_swig" = "true" -a "$SWIG" != "false" ; then
62 AM_PATH_PYTHON(2.3)
63 AC_PROG_SWIG(1.3.21)
64 AX_SWIG_ENABLE_CXX
65 SWIG_PYTHON
66 SWIG_SUB=swig 66 SWIG_SUB=swig
67else 67else
68 SWIG_SUB= 68 SWIG_SUB=