summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac14
-rw-r--r--libimobiledevice-1.0.pc.in2
2 files changed, 12 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index a0b038e..77ac1c2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,7 +17,15 @@ dnl libtool versioning
# CURRENT : REVISION : AGE
LIBIMOBILEDEVICE_SO_VERSION=4:1:0
+dnl Minimum package versions
+LIBPLIST_VERSION=1.8
+LIBUSBMUXD_VERSION=1.0.8
+LIBPLISTMM_VERSION=1.8
+
AC_SUBST(LIBIMOBILEDEVICE_SO_VERSION)
+AC_SUBST(LIBPLIST_VERSION)
+AC_SUBST(LIBUSBMUXD_VERSION)
+AC_SUBST(LIBPLISTMM_VERSION)
# Checks for programs.
AC_PROG_CC
@@ -26,9 +34,9 @@ AM_PROG_CC_C_O
AC_PROG_LIBTOOL
# Checks for libraries.
-PKG_CHECK_MODULES(libusbmuxd, libusbmuxd >= 1.0.8)
-PKG_CHECK_MODULES(libplist, libplist >= 1.8)
-PKG_CHECK_MODULES(libplistmm, libplist++ >= 1.8)
+PKG_CHECK_MODULES(libusbmuxd, libusbmuxd >= $LIBUSBMUXD_VERSION)
+PKG_CHECK_MODULES(libplist, libplist >= $LIBPLIST_VERSION)
+PKG_CHECK_MODULES(libplistmm, libplist++ >= $LIBPLISTMM_VERSION)
AC_CHECK_LIB(pthread, [pthread_create, pthread_mutex_lock], [AC_SUBST(libpthread_LIBS,[-lpthread])], [AC_MSG_ERROR([libpthread is required to build libimobiledevice])])
# Checks for header files.
diff --git a/libimobiledevice-1.0.pc.in b/libimobiledevice-1.0.pc.in
index c21cc1d..e366c5e 100644
--- a/libimobiledevice-1.0.pc.in
+++ b/libimobiledevice-1.0.pc.in
@@ -6,7 +6,7 @@ includedir=@includedir@
Name: libimobiledevice
Description: A library to communicate with services running on Apple iPhone/iPod Touch devices.
Version: @VERSION@
-Requires: libplist >= 0.12 libusbmuxd >= 0.1.0 @ssl_requires@
+Requires: libplist >= @LIBPLIST_VERSION@ libusbmuxd >= @LIBUSBMUXD_VERSION@ @ssl_requires@
Libs: -L${libdir} -limobiledevice
Cflags: -I${includedir}