configure: Fix configure failure when building without gstreamer support
authorTimo Gurr <timo.gurr@gmail.com>
Mon, 1 Jun 2015 14:10:16 +0000 (16:10 +0200)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Mon, 1 Jun 2015 15:59:39 +0000 (11:59 -0400)
Error introduced in 20ea22e0a11a9bdfe4d8125b68083249b694338a, resulting in a
configure/build error when building without gstreamer:

configure: error: conditional "HAVE_GST_CHECK" was never defined.
Usually this means the macro was only invoked conditionally.

https://bugs.freedesktop.org/show_bug.cgi?id=90801

configure.ac

index 6031cec..64a571f 100644 (file)
@@ -231,9 +231,6 @@ AS_IF([test "$with_gstreamer" != no], [
                [
                have_gst_check=no
                ])
-
-       AM_CONDITIONAL(HAVE_GST_CHECK, test "$have_gst_check" = yes)
-
 ])
 
 AS_IF([test "$with_gstreamer010" != no], [
@@ -260,6 +257,7 @@ AC_SUBST(gstplugindir)
 AC_SUBST(gstplugin010dir)
 
 AM_CONDITIONAL(WITH_GSTREAMER, test "$with_gstreamer" = yes)
+AM_CONDITIONAL(HAVE_GST_CHECK, test "$have_gst_check" = yes)
 AM_CONDITIONAL(WITH_GSTREAMER010, test "$with_gstreamer010" = yes)
 
 GUPNP_IGD_REQUIRED=0.2.4