From dc062f7312274bbc63f2d8d9916166e63bf12a7e Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Wed, 11 Apr 2012 18:02:06 +0200 Subject: Do not link with glib2 on libimobiledevice >= 1.1.2 --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index f4af295..5d5a59e 100644 --- a/configure.ac +++ b/configure.ac @@ -24,7 +24,10 @@ PKG_CHECK_MODULES(libimobiledevice11, libimobiledevice-1.0 >= 1.1.0, libimobiled if test x"$libimobiledevice_1_1" = xyes; then AC_DEFINE([HAVE_LIBIMOBILEDEVICE_1_1], 1, [Define if libimobiledevice is using 1.1.0 API]) fi -PKG_CHECK_MODULES(libglib2, glib-2.0 >= 2.14.1) +PKG_CHECK_MODULES(libimobiledevice12, libimobiledevice-1.0 >= 1.1.2, libimobiledevice_1_2=yes, libimobiledevice_1_2=no) +if test x"$libimobiledevice_1_2" = xno; then + PKG_CHECK_MODULES(libglib2, glib-2.0 >= 2.14.1) +fi PKG_CHECK_MODULES(libplist, libplist >= 0.15) PKG_CHECK_MODULES(libzip, libzip >= 0.8) -- cgit v1.1-32-gdbae