[PATCH spice-gtk 2/2] configure: Do not force audio by default

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Disable audio if no backend is available and configure is used with
the option '--with-audio=auto'
---
 configure.ac | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 1156856..6af968f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -308,10 +308,14 @@ esac
 
 AS_IF([test "x$with_audio" = "xauto"],
       [AS_IF([test "x$os_win32" = "xyes"],
-             [with_audio=gstreamer],
+             [AS_IF([test "x$have_gst" = "xyes"],
+                    [with_audio=gstreamer],
+                    [with_audio=no])],
              [AS_IF([test "x$have_pulse" = "xyes"],
                     [with_audio=pulse],
-                    [with_audio=gstreamer])])])
+                    [AS_IF([test "x$have_gst" = "xyes"],
+                           [with_audio=gstreamer],
+                           [with_audio=no])])])])
 
 AS_IF([test "x$have_pulse" = "xyes"],
       [AC_DEFINE([WITH_PULSE], 1, [Have pulseaudio?])],
-- 
2.4.3

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]