summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-12-13 04:14:53 +0100
committerGravatar Nikias Bassen2013-12-13 04:14:53 +0100
commit3537f78a98111b88aab5e2d94dda340cf09be5af (patch)
treec52974b3f21e0ae395256b3ebaecca66cea8177e /configure.ac
parent4c9a8a7268d51c657d1b9b5b8334298bd6d62c9a (diff)
downloadusbmuxd-3537f78a98111b88aab5e2d94dda340cf09be5af.tar.gz
usbmuxd-3537f78a98111b88aab5e2d94dda340cf09be5af.tar.bz2
make libplist/protov1 support mandatory
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac24
1 files changed, 1 insertions, 23 deletions
diff --git a/configure.ac b/configure.ac
index 3067304..9e113d7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,31 +17,10 @@ AC_PROG_LIBTOOL
17 17
18# Checks for libraries. 18# Checks for libraries.
19PKG_CHECK_MODULES(libusb, libusb-1.0 >= 1.0.3) 19PKG_CHECK_MODULES(libusb, libusb-1.0 >= 1.0.3)
20PKG_CHECK_MODULES(libplist, libplist >= 1.9, have_plist=yes, have_plist=no) 20PKG_CHECK_MODULES(libplist, libplist >= 1.11)
21PKG_CHECK_MODULES(libimobiledevice, libimobiledevice-1.0 >= 1.1.6, have_limd=yes, have_limd=no) 21PKG_CHECK_MODULES(libimobiledevice, libimobiledevice-1.0 >= 1.1.6, have_limd=yes, have_limd=no)
22AC_CHECK_LIB(pthread, [pthread_create, pthread_mutex_lock], [AC_SUBST(libpthread_LIBS,[-lpthread])], [AC_MSG_ERROR([libpthread is required to build usbmuxd])]) 22AC_CHECK_LIB(pthread, [pthread_create, pthread_mutex_lock], [AC_SUBST(libpthread_LIBS,[-lpthread])], [AC_MSG_ERROR([libpthread is required to build usbmuxd])])
23 23
24AC_ARG_WITH([protov1],
25 [AS_HELP_STRING([--without-protov1],
26 [do not build with protocol v1 support (default is yes)])],
27 [with_protov1=no],
28 [with_protov1=yes])
29
30if test "x$have_plist" = "xyes"; then
31 if test "x$with_protov1" != "xyes"; then
32 have_plist=no
33 echo "*** Note: Protocol V1 support has been disabled ***"
34 else
35 AC_DEFINE(HAVE_PLIST, 1, [Define if you have libplist support])
36 AC_SUBST(libplist_CFLAGS)
37 AC_SUBST(libplist_LIBS)
38 fi
39else
40 if test "x$with_protov1" == "xyes"; then
41 AC_MSG_ERROR([protocol V1 support requested but libplist could not be found])
42 fi
43fi
44
45AC_ARG_WITH([preflight], 24AC_ARG_WITH([preflight],
46 [AS_HELP_STRING([--without-preflight], 25 [AS_HELP_STRING([--without-preflight],
47 [do not build with preflight worker support (default is yes)])], 26 [do not build with preflight worker support (default is yes)])],
@@ -112,7 +91,6 @@ Configuration for $PACKAGE $VERSION:
112------------------------------------------- 91-------------------------------------------
113 92
114 Install prefix: ...........: $prefix 93 Install prefix: ...........: $prefix
115 Protocol v1 support: ......: $have_plist
116 Preflight worker support ..: $have_limd 94 Preflight worker support ..: $have_limd
117 95
118 Now type 'make' to build $PACKAGE $VERSION, 96 Now type 'make' to build $PACKAGE $VERSION,