summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Gouget <fgouget@codeweavers.com>2015-12-02 14:56:04 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2015-12-08 15:41:26 +0100
commit983984f2760c5df84556fc72d69d76f778effa7d (patch)
tree50d61f972996827977943a026b54b423fe9150b6
parent077024454c7d3b6c8e6a35446ca51f2db4a3ab71 (diff)
downloadspice-gtk-983984f2760c5df84556fc72d69d76f778effa7d.tar.gz
spice-gtk-983984f2760c5df84556fc72d69d76f778effa7d.tar.xz
spice-gtk-983984f2760c5df84556fc72d69d76f778effa7d.zip
build-sys: Warn about missing GStreamer 1.0 audio runtime elements
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@codeweavers.com>
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index d716467..4860fef 100644
--- a/configure.ac
+++ b/configure.ac
@@ -324,7 +324,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]))
])