[Spice-devel] [client 09/11] build-sys: Warn about missing GStreamer 1.0 audio runtime elements

Francois Gouget fgouget at codeweavers.com
Tue Nov 3 04:06:17 PST 2015


Their absence should not be reported as an error since they are not
needed for the build, but the developer will need them to test the code
so it's appropriate to warn him.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 configure.ac | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

This patch depends on [client 08/11] and [common 03/11].

diff --git a/configure.ac b/configure.ac
index 3a19c03..a2f31a7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -314,7 +314,11 @@ AC_ARG_ENABLE([gstaudio],
   [enable_gstaudio="auto"])
 AS_IF([test "x$enable_gstaudio" != "xno"],
       [SPICE_CHECK_GSTREAMER(GSTAUDIO, 1.0, [gstreamer-1.0 gstreamer-base-1.0 gstreamer-app-1.0 gstreamer-audio-1.0],
-         [],
+         [SPICE_CHECK_GSTREAMER_ELEMENTS($GST_INSPECT_1_0, [gst-plugins-base 1.0], [audioconvert audioresample appsink])
+          SPICE_CHECK_GSTREAMER_ELEMENTS($GST_INSPECT_1_0, [gst-plugins-good 1.0], [autoaudiosrc])
+          AS_IF([test x"$missing_gstreamer_elements" = "xyes"],
+                SPICE_WARNING([The GStreamer 1.0 audio backend can be built but may not work.]))
+         ],
          [AS_IF([test "x$enable_gstaudio" = "xyes"],
                 AC_MSG_ERROR([GStreamer 1.0 audio requested but not found]))
          ])
-- 
2.6.1


More information about the Spice-devel mailing list