summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2020-05-22 15:11:08 +0200
committerGravatar Nikias Bassen2020-05-22 15:11:08 +0200
commit16992e8baa949d3d3712e3f76898400d235bb8a3 (patch)
treee8ce818a70ac69f0d91aaca508b9fb5554f0069d
parent80eec8b83cca16d7a7c7cf9fc53422505cf31225 (diff)
downloadlibimobiledevice-16992e8baa949d3d3712e3f76898400d235bb8a3.tar.gz
libimobiledevice-16992e8baa949d3d3712e3f76898400d235bb8a3.tar.bz2
configure: Raise minimum libusbmuxd+libplist version requirement and specifically check for new libplist API
-rw-r--r--configure.ac17
1 files changed, 14 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 57c5bd8..8927f34 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,8 +18,8 @@ dnl libtool versioning
18LIBIMOBILEDEVICE_SO_VERSION=6:0:0 18LIBIMOBILEDEVICE_SO_VERSION=6:0:0
19 19
20dnl Minimum package versions 20dnl Minimum package versions
21LIBUSBMUXD_VERSION=1.1.0 21LIBUSBMUXD_VERSION=2.0.1
22LIBPLIST_VERSION=1.11 22LIBPLIST_VERSION=2.1.0
23 23
24AC_SUBST(LIBIMOBILEDEVICE_SO_VERSION) 24AC_SUBST(LIBIMOBILEDEVICE_SO_VERSION)
25AC_SUBST(LIBUSBMUXD_VERSION) 25AC_SUBST(LIBUSBMUXD_VERSION)
@@ -83,9 +83,13 @@ AM_CONDITIONAL(WIN32, test x$win32 = xtrue)
83 83
84AC_SUBST(libusbmuxd_CFLAGS) 84AC_SUBST(libusbmuxd_CFLAGS)
85AC_SUBST(libusbmuxd_LIBS) 85AC_SUBST(libusbmuxd_LIBS)
86AC_SUBST(libplist_CFLAGS)
87AC_SUBST(libplist_LIBS)
86 88
87CACHED_CFLAGS="$CFLAGS" 89CACHED_CFLAGS="$CFLAGS"
88CFLAGS+=" $libusbmuxd_CFLAGS" 90CFLAGS+=" $libusbmuxd_CFLAGS $libplist_CFLAGS"
91CACHED_LDFLAGS="$LDFLAGS"
92LDFLAGS+=" $libusbmuxd_LIBS $libplist_LIBS"
89 93
90AC_CHECK_MEMBER(usbmuxd_device_info_t.conn_type,, AC_MSG_ERROR([libusbmuxd (usbmuxd.h) is not up-to-date; missing conn_type member in usbmuxd_device_info_t. Please update libusbmuxd to build $PACKAGE_NAME]), [#include <usbmuxd.h>]) 94AC_CHECK_MEMBER(usbmuxd_device_info_t.conn_type,, AC_MSG_ERROR([libusbmuxd (usbmuxd.h) is not up-to-date; missing conn_type member in usbmuxd_device_info_t. Please update libusbmuxd to build $PACKAGE_NAME]), [#include <usbmuxd.h>])
91AC_TRY_COMPILE([ 95AC_TRY_COMPILE([
@@ -100,7 +104,14 @@ AC_TRY_COMPILE([
100 enum usbmux_lookup_options opts = DEVICE_LOOKUP_USBMUX | DEVICE_LOOKUP_NETWORK | DEVICE_LOOKUP_PREFER_NETWORK; 104 enum usbmux_lookup_options opts = DEVICE_LOOKUP_USBMUX | DEVICE_LOOKUP_NETWORK | DEVICE_LOOKUP_PREFER_NETWORK;
101],, AC_MSG_ERROR([[libusbmuxd (usbmuxd.h) is not up-to-date; missing enum usbmux_lookup_options with DEVICE_LOOKUP_USBMUX, DEVICE_LOOKUP_NETWORK, and DEVICE_LOOKUP_PREFER_NETWORK - Please update libusbmuxd to build $PACKAGE_NAME]])) 105],, AC_MSG_ERROR([[libusbmuxd (usbmuxd.h) is not up-to-date; missing enum usbmux_lookup_options with DEVICE_LOOKUP_USBMUX, DEVICE_LOOKUP_NETWORK, and DEVICE_LOOKUP_PREFER_NETWORK - Please update libusbmuxd to build $PACKAGE_NAME]]))
102 106
107AC_TRY_LINK([
108 #include <plist/plist.h>
109], [
110 plist_string_val_compare(plist_new_string("str"), "str");
111],, AC_MSG_ERROR([[libplist is not up-to-date; missing plist_string_val_compare() etc. functions - Please update libplist to build $PACKAGE_NAME]]))
112
103CFLAGS="$CACHED_CFLAGS" 113CFLAGS="$CACHED_CFLAGS"
114LDFLAGS="$CACHED_LDFLAGS"
104 115
105AC_CHECK_MEMBER(struct dirent.d_type, AC_DEFINE(HAVE_DIRENT_D_TYPE, 1, [define if struct dirent has member d_type]),, [#include <dirent.h>]) 116AC_CHECK_MEMBER(struct dirent.d_type, AC_DEFINE(HAVE_DIRENT_D_TYPE, 1, [define if struct dirent has member d_type]),, [#include <dirent.h>])
106 117