diff options
| author | 2013-12-13 04:14:53 +0100 | |
|---|---|---|
| committer | 2013-12-13 04:14:53 +0100 | |
| commit | 3537f78a98111b88aab5e2d94dda340cf09be5af (patch) | |
| tree | c52974b3f21e0ae395256b3ebaecca66cea8177e /configure.ac | |
| parent | 4c9a8a7268d51c657d1b9b5b8334298bd6d62c9a (diff) | |
| download | usbmuxd-3537f78a98111b88aab5e2d94dda340cf09be5af.tar.gz usbmuxd-3537f78a98111b88aab5e2d94dda340cf09be5af.tar.bz2 | |
make libplist/protov1 support mandatory
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 24 |
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. |
| 19 | PKG_CHECK_MODULES(libusb, libusb-1.0 >= 1.0.3) | 19 | PKG_CHECK_MODULES(libusb, libusb-1.0 >= 1.0.3) |
| 20 | PKG_CHECK_MODULES(libplist, libplist >= 1.9, have_plist=yes, have_plist=no) | 20 | PKG_CHECK_MODULES(libplist, libplist >= 1.11) |
| 21 | PKG_CHECK_MODULES(libimobiledevice, libimobiledevice-1.0 >= 1.1.6, have_limd=yes, have_limd=no) | 21 | PKG_CHECK_MODULES(libimobiledevice, libimobiledevice-1.0 >= 1.1.6, have_limd=yes, have_limd=no) |
| 22 | AC_CHECK_LIB(pthread, [pthread_create, pthread_mutex_lock], [AC_SUBST(libpthread_LIBS,[-lpthread])], [AC_MSG_ERROR([libpthread is required to build usbmuxd])]) | 22 | AC_CHECK_LIB(pthread, [pthread_create, pthread_mutex_lock], [AC_SUBST(libpthread_LIBS,[-lpthread])], [AC_MSG_ERROR([libpthread is required to build usbmuxd])]) |
| 23 | 23 | ||
| 24 | AC_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 | |||
| 30 | if 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 | ||
| 39 | else | ||
| 40 | if test "x$with_protov1" == "xyes"; then | ||
| 41 | AC_MSG_ERROR([protocol V1 support requested but libplist could not be found]) | ||
| 42 | fi | ||
| 43 | fi | ||
| 44 | |||
| 45 | AC_ARG_WITH([preflight], | 24 | AC_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, |
