[Telepathy-commits] [telepathy-qt4/master] configure.ac: Added gstreamer checks, needed by the call example.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Tue Mar 17 01:58:50 PDT 2009


---
 configure.ac |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 254ce40..59247c7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -199,6 +199,18 @@ fi
 AM_CONDITIONAL([ENABLE_TP_GLIB_TESTS],
   [test yes = "$have_tp_glib" && test yes = "$have_qt_glib_main_loop"])
 
+dnl Check for gstreamer... we need it to build an audio/video calling example
+PKG_CHECK_MODULES(GST, [gstreamer-0.10 gstreamer-interfaces-0.10], [have_gst=yes],
+                  [have_gst=no])
+AC_SUBST(GST_CFLAGS)
+AC_SUBST(GST_LIBS)
+if test no = "$have_gst"; then
+  AC_MSG_WARN([gstreamer not found: not all examples will be built])
+fi
+AM_CONDITIONAL([ENABLE_GST_EXAMPLES],
+  [test yes = "$have_gst" &&
+   test yes = "$have_qt_glib_main_loop"])
+
 dnl Check for telepathy-farsight... if we have that too, we can build an
 dnl audio/video calling example
 PKG_CHECK_MODULES(TP_FARSIGHT, [telepathy-farsight >= 0.0.4], [have_tp_fs=yes],
@@ -210,6 +222,7 @@ if test no = "$have_tp_fs"; then
 fi
 AM_CONDITIONAL([ENABLE_TP_FARSIGHT_EXAMPLES],
   [test yes = "$have_tp_glib" && test yes = "$have_tp_fs" &&
+   test yes = "$have_gst" &&
    test yes = "$have_qt_glib_main_loop"])
 
 AC_PATH_PROGS([PINOCCHIO], [telepathy-pinocchio], [none],
-- 
1.5.6.5




More information about the telepathy-commits mailing list