summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index fb59203..3b2dec0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,12 +35,15 @@ if test "x$have_limd" = "xyes"; then
35 AC_DEFINE(HAVE_LIBIMOBILEDEVICE, 1, [Define if you have libimobiledevice support]) 35 AC_DEFINE(HAVE_LIBIMOBILEDEVICE, 1, [Define if you have libimobiledevice support])
36 AC_SUBST(libimobiledevice_CFLAGS) 36 AC_SUBST(libimobiledevice_CFLAGS)
37 AC_SUBST(libimobiledevice_LIBS) 37 AC_SUBST(libimobiledevice_LIBS)
38 CACHED_CFLAGS="$CFLAGS"
39 CFLAGS+=" $libimobiledevice_CFLAGS"
38 AC_CACHE_CHECK(for enum idevice_connection_type, ac_cv_enum_idevice_connection_type, 40 AC_CACHE_CHECK(for enum idevice_connection_type, ac_cv_enum_idevice_connection_type,
39 AC_TRY_COMPILE([ 41 AC_TRY_COMPILE([
40 #include <libimobiledevice/libimobiledevice.h> 42 #include <libimobiledevice/libimobiledevice.h>
41 ], [ 43 ], [
42 enum idevice_connection_type conn_type = CONNECTION_USBMUXD; 44 enum idevice_connection_type conn_type = CONNECTION_USBMUXD;
43 ], ac_cv_enum_idevice_connection_type=yes, ac_cv_enum_idevice_connection_type=no)) 45 ], ac_cv_enum_idevice_connection_type=yes, ac_cv_enum_idevice_connection_type=no))
46 CFLAGS="$CACHED_CFLAGS"
44 if (test "$ac_cv_enum_idevice_connection_type" = "yes"); then 47 if (test "$ac_cv_enum_idevice_connection_type" = "yes"); then
45 AC_DEFINE(HAVE_ENUM_IDEVICE_CONNECTION_TYPE, 1, [Define if enum idevice_connection_type is available]) 48 AC_DEFINE(HAVE_ENUM_IDEVICE_CONNECTION_TYPE, 1, [Define if enum idevice_connection_type is available])
46 fi 49 fi