pidgin: 9cf6f719: Some configure.ac updates.

qulogic at pidgin.im qulogic at pidgin.im
Mon Apr 6 02:16:35 EDT 2009


-----------------------------------------------------------------
Revision: 9cf6f71943df5d983df9b3e8074620fb3c0e402f
Ancestor: f917b4632a54553364f64ef2a02dfc4a6e015ea7
Author: qulogic at pidgin.im
Date: 2009-04-06T05:49:05
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/9cf6f71943df5d983df9b3e8074620fb3c0e402f

Modified files:
        configure.ac

ChangeLog: 

Some configure.ac updates.
* Fix a typo in the forced dependency stuff.
* Farsight check should only check for farsight (pkg-config checks 
gstreamer anyway).
* VV should be disabled if gstreamer is disabled.
* Checking for GStreamer-properties is unnecessary.
* Should check for GStreamer interfaces for X Overlay support.

-------------- next part --------------
============================================================
--- configure.ac	1dc04d68c6699d986852450084286b25c6161e7e
+++ configure.ac	64f9edcb38f3c71a492d84ef1d3d516f3606ade6
@@ -748,13 +748,33 @@ dnl ####################################
 fi
 
 dnl #######################################################################
+dnl # Check for GStreamer Interfaces
+dnl #######################################################################
+if test "x$enable_gst" != "xno"; then
+	AC_ARG_ENABLE(gstreamer-interfaces,
+		[AC_HELP_STRING([--disable-gstreamer-interfaces], [compile without GStreamer interface support])],
+			enable_gstinterfaces="$enableval", enable_gstinterfaces="yes")
+	if test "x$enable_gstinterfaces" != "xno"; then
+		PKG_CHECK_MODULES(GSTINTERFACES, [gstreamer-interfaces-0.10], [
+			AC_DEFINE(USE_GSTINTERFACES, 1, [Use GStreamer interfaces for X overlay support])
+			AC_SUBST(GSTINTERFACES_CFLAGS)
+			AC_SUBST(GSTINTERFACES_LIBS)
+		], [
+			enable_gstinterfaces="no"
+		])
+	fi
+else
+	enable_gstinterfaces="no"
+fi
+
+dnl #######################################################################
 dnl # Check for Farsight
 dnl #######################################################################
 AC_ARG_ENABLE(farsight,
 	[AC_HELP_STRING([--disable-farsight], [compile without farsight support])],
 	enable_farsight="$enableval", enable_farsight="yes")
 if test "x$enable_farsight" != "xno"; then
-	PKG_CHECK_MODULES(FARSIGHT, [farsight2-0.10 >= 0.0.8 gstreamer-0.10 gstreamer-plugins-base-0.10 libxml-2.0], [
+	PKG_CHECK_MODULES(FARSIGHT, [farsight2-0.10 >= 0.0.8], [
 		AC_DEFINE(USE_FARSIGHT, 1, [Use Farsight for voice and video])
 		AC_SUBST(FARSIGHT_CFLAGS)
 		AC_SUBST(FARSIGHT_LIBS)
@@ -764,41 +784,21 @@ dnl ####################################
 fi
 
 dnl #######################################################################
-dnl # Check for GStreamer-properties
-dnl #######################################################################
-AC_ARG_ENABLE(gstprops,
-	[AC_HELP_STRING([--disable-gstprops], [compile without gstreamer props])],
-	enable_gstprops="$enableval", enable_gstprops="yes")
-if test "x$enable_gstprops" != "xno";
-then
-  dnl gstreamer-libs-$GST_MAJORMINOR
-  dnl gstreamer-gconf-$GST_MAJORMINOR
-  PKG_CHECK_MODULES(GSTPROPS, [gstreamer-0.10 gstreamer-plugins-base-0.10 libxml-2.0], [
-  		GSTPROPS_LIBS="$GSTPROPS_LIBS -lgstinterfaces-0.10"	   
-  		AC_DEFINE(USE_GSTPROPS, 1, [Use GStreamer property probe for finding devices])
-  		AC_SUBST(GSTPROPS_LIBS)
-  		AC_SUBST(GSTPROPS_CFLAGS)
-  ], [
-		enable_gstprops="no"
-  ])
-fi
-
-dnl #######################################################################
 dnl # Check for Voice and Video support
 dnl #######################################################################
 AC_ARG_ENABLE(vv,
 	[AC_HELP_STRING([--disable-vv], [compile without voice and video support])],
-	[enable_vv="$enableval" force_vv=$enableval], [enable_vv="yes" enable_vv=no])
+	[enable_vv="$enableval" force_vv=$enableval], [enable_vv="yes" force_vv=no])
 if test "x$enable_vv" != "xno"; then
-	if test "x$enable_farsight" != "xno" -a "x$enable_gstprops" != "xno"; then
+	if test "x$enable_gstreamer" != "xno" -a "x$enable_gstinterfaces" != "xno" -a "x$enable_farsight" != "xno"; then
 		AC_DEFINE(USE_VV, 1, [Use voice and video])
 	else
 		enable_vv="no"
 		if test "x$force_vv" = "xyes"; then
 			AC_MSG_ERROR([
-
-Dependencies for voice/video were not met. Install the necessary gstreamer and farsight packages first.
-
+Dependencies for voice/video were not met.
+Install the necessary gstreamer and farsight packages first.
+Or use --disable-vv if you do not need voice/video support.
 			])
 		fi
 	fi


More information about the Commits mailing list