diff options
author | Nikias Bassen | 2020-05-22 15:11:08 +0200 |
---|---|---|
committer | Nikias Bassen | 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 LIBIMOBILEDEVICE_SO_VERSION=6:0:0 dnl Minimum package versions -LIBUSBMUXD_VERSION=1.1.0 -LIBPLIST_VERSION=1.11 +LIBUSBMUXD_VERSION=2.0.1 +LIBPLIST_VERSION=2.1.0 AC_SUBST(LIBIMOBILEDEVICE_SO_VERSION) AC_SUBST(LIBUSBMUXD_VERSION) @@ -83,9 +83,13 @@ AM_CONDITIONAL(WIN32, test x$win32 = xtrue) AC_SUBST(libusbmuxd_CFLAGS) AC_SUBST(libusbmuxd_LIBS) +AC_SUBST(libplist_CFLAGS) +AC_SUBST(libplist_LIBS) CACHED_CFLAGS="$CFLAGS" -CFLAGS+=" $libusbmuxd_CFLAGS" +CFLAGS+=" $libusbmuxd_CFLAGS $libplist_CFLAGS" +CACHED_LDFLAGS="$LDFLAGS" +LDFLAGS+=" $libusbmuxd_LIBS $libplist_LIBS" 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>]) AC_TRY_COMPILE([ @@ -100,7 +104,14 @@ AC_TRY_COMPILE([ enum usbmux_lookup_options opts = DEVICE_LOOKUP_USBMUX | DEVICE_LOOKUP_NETWORK | DEVICE_LOOKUP_PREFER_NETWORK; ],, 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]])) +AC_TRY_LINK([ + #include <plist/plist.h> +], [ + plist_string_val_compare(plist_new_string("str"), "str"); +],, AC_MSG_ERROR([[libplist is not up-to-date; missing plist_string_val_compare() etc. functions - Please update libplist to build $PACKAGE_NAME]])) + CFLAGS="$CACHED_CFLAGS" +LDFLAGS="$CACHED_LDFLAGS" 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>]) |