From 8062f56bb9be6ed17dc0b4c99e573eae7b1930aa Mon Sep 17 00:00:00 2001 From: Jakub Adam Date: Sat, 11 Jun 2011 18:51:52 +0200 Subject: [PATCH] configure: require libpurple >= 2.8.0 for voice and video Also simplified check whether v&v is enabled in libpurple, because purple_media_get_active_*_candidates() were added to the API in 2.8.0. --- configure.ac | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index caeafc96..78308934 100644 --- a/configure.ac +++ b/configure.ac @@ -328,20 +328,18 @@ system defaults. [AC_LANG_PROGRAM([[ #include ]], - [[return (purple_media_get_type() == G_TYPE_NONE ? 1 : 0); - purple_media_get_active_local_candidates(NULL, NULL, NULL); - purple_media_get_active_remote_candidates(NULL, NULL, NULL);]] + [[return (purple_media_get_type() == G_TYPE_NONE ? 1 : 0);]] )], [AC_MSG_RESULT(ok) PKG_CHECK_MODULES(NICE, [nice >= 0.1.0], - [PKG_CHECK_MODULES(PURPLE, [purple >= 2.7.0], + [PKG_CHECK_MODULES(PURPLE, [purple >= 2.8.0], [PKG_CHECK_MODULES(GSTREAMER, [gstreamer-0.10], dnl sipe-media.c uses g_slist_free_full() [PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.28.0], [with_purple_vv=yes], [AC_MSG_NOTICE(glib2 >= 2.28.0 required: disabling purple voice and video support)])], [AC_MSG_NOTICE(GStreamer required: disabling purple voice and video support)])], - [AC_MSG_NOTICE(libpurple >= 2.7.0 required: disabling purple voice and video support)])], + [AC_MSG_NOTICE(libpurple >= 2.8.0 required: disabling purple voice and video support)])], [AC_MSG_NOTICE(libnice required: disabling purple voice and video support)])], [AC_MSG_RESULT(no - your purple hasn't been compiled with voice and video support.)], [AC_MSG_WARN([cross compiling: not checking])]) -- 2.11.4.GIT