changeset 17527:89adae2f1a6e

This patch from QuLogic fixes autoconf such that gstreamer will not be linked if present but compiled with --disable-gstreamer. Thanks to Tester for reporting this, and QuLogic for fixing it! Fixes # 1306
author Ethan Blanton <elb@pidgin.im>
date Thu, 07 Jun 2007 02:28:34 +0000
parents 35de9a54008e
children beeef78409b2 226b9109179c 5c4efa98e8dd
files configure.ac
diffstat 1 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Wed Jun 06 20:21:15 2007 +0000
+++ b/configure.ac	Thu Jun 07 02:28:34 2007 +0000
@@ -569,14 +569,15 @@
 AC_ARG_ENABLE(gstreamer,
 	[AC_HELP_STRING([--disable-gstreamer], [compile without GStreamer audio support])],
 	enable_gst="$enableval", enable_gst="yes")
-PKG_CHECK_MODULES(GSTREAMER, [gstreamer-0.10], , [
-	AC_MSG_RESULT(no)
-	enable_gst="no"
-])
 if test "x$enable_gst" != "xno"; then
-	AC_DEFINE(USE_GSTREAMER, 1, [Use GStreamer for playing sounds])
-	AC_SUBST(GSTREAMER_CFLAGS)
-	AC_SUBST(GSTREAMER_LIBS)
+	PKG_CHECK_MODULES(GSTREAMER, [gstreamer-0.10], [
+		AC_DEFINE(USE_GSTREAMER, 1, [Use GStreamer for playing sounds])
+		AC_SUBST(GSTREAMER_CFLAGS)
+		AC_SUBST(GSTREAMER_LIBS)
+	], [
+		AC_MSG_RESULT(no)
+		enable_gst="no"
+	])
 fi
 
 dnl #######################################################################