summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2020-05-23 01:31:53 +0200
committerGravatar Nikias Bassen2020-05-23 01:31:53 +0200
commit4331c3c06bc3b99c271996523866ae5184a87521 (patch)
tree12151cf3c6bc189ce58021f230a6db04d4d61b8b
parent6e1c9f3c1273b1f29f46f44b421f8634f036a2bc (diff)
downloadlibimobiledevice-4331c3c06bc3b99c271996523866ae5184a87521.tar.gz
libimobiledevice-4331c3c06bc3b99c271996523866ae5184a87521.tar.bz2
configure: Use AC_CHECK_LIB instead of AC_TRY_LINK
-rw-r--r--configure.ac6
1 files changed, 1 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 8927f34..4aca231 100644
--- a/configure.ac
+++ b/configure.ac
@@ -104,11 +104,7 @@ 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]]))
+AC_CHECK_LIB([plist], [plist_string_val_compare],, [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"