diff options
| author | 2020-05-22 15:11:08 +0200 | |
|---|---|---|
| committer | 2020-05-22 15:11:08 +0200 | |
| commit | 16992e8baa949d3d3712e3f76898400d235bb8a3 (patch) | |
| tree | e8ce818a70ac69f0d91aaca508b9fb5554f0069d | |
| parent | 80eec8b83cca16d7a7c7cf9fc53422505cf31225 (diff) | |
| download | libimobiledevice-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.ac | 17 |
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 | |||
| 18 | LIBIMOBILEDEVICE_SO_VERSION=6:0:0 | 18 | LIBIMOBILEDEVICE_SO_VERSION=6:0:0 |
| 19 | 19 | ||
| 20 | dnl Minimum package versions | 20 | dnl Minimum package versions |
| 21 | LIBUSBMUXD_VERSION=1.1.0 | 21 | LIBUSBMUXD_VERSION=2.0.1 |
| 22 | LIBPLIST_VERSION=1.11 | 22 | LIBPLIST_VERSION=2.1.0 |
| 23 | 23 | ||
| 24 | AC_SUBST(LIBIMOBILEDEVICE_SO_VERSION) | 24 | AC_SUBST(LIBIMOBILEDEVICE_SO_VERSION) |
| 25 | AC_SUBST(LIBUSBMUXD_VERSION) | 25 | AC_SUBST(LIBUSBMUXD_VERSION) |
| @@ -83,9 +83,13 @@ AM_CONDITIONAL(WIN32, test x$win32 = xtrue) | |||
| 83 | 83 | ||
| 84 | AC_SUBST(libusbmuxd_CFLAGS) | 84 | AC_SUBST(libusbmuxd_CFLAGS) |
| 85 | AC_SUBST(libusbmuxd_LIBS) | 85 | AC_SUBST(libusbmuxd_LIBS) |
| 86 | AC_SUBST(libplist_CFLAGS) | ||
| 87 | AC_SUBST(libplist_LIBS) | ||
| 86 | 88 | ||
| 87 | CACHED_CFLAGS="$CFLAGS" | 89 | CACHED_CFLAGS="$CFLAGS" |
| 88 | CFLAGS+=" $libusbmuxd_CFLAGS" | 90 | CFLAGS+=" $libusbmuxd_CFLAGS $libplist_CFLAGS" |
| 91 | CACHED_LDFLAGS="$LDFLAGS" | ||
| 92 | LDFLAGS+=" $libusbmuxd_LIBS $libplist_LIBS" | ||
| 89 | 93 | ||
| 90 | AC_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>]) | 94 | AC_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>]) |
| 91 | AC_TRY_COMPILE([ | 95 | AC_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 | ||
| 107 | AC_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 | |||
| 103 | CFLAGS="$CACHED_CFLAGS" | 113 | CFLAGS="$CACHED_CFLAGS" |
| 114 | LDFLAGS="$CACHED_LDFLAGS" | ||
| 104 | 115 | ||
| 105 | AC_CHECK_MEMBER(struct dirent.d_type, AC_DEFINE(HAVE_DIRENT_D_TYPE, 1, [define if struct dirent has member d_type]),, [#include <dirent.h>]) | 116 | AC_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 | ||
