[vlc-commits] commit: Linking to X11 is optional (Christophe Mutricy )

git at videolan.org git at videolan.org
Sun May 23 23:37:58 CEST 2010


vlc | branch: master | Christophe Mutricy <xtophe at videolan.org> | Fri May 21 23:33:05 2010 +0100| [d00684982028100b9caee5b9fe03f007b10f8059] | committer: Christophe Mutricy 

Linking to X11 is optional

But you need careful, if you compile without X and then run with an X-enabled PulseAudio, boom.

Closes: #3650

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d00684982028100b9caee5b9fe03f007b10f8059
---

 configure.ac |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 6e445f6..67a72bd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3661,8 +3661,9 @@ dnl
 dnl  Pulseaudio module
 dnl
 PKG_ENABLE_MODULES_VLC([PULSE], [], [libpulse >= 0.9.11], [Pulseaudio support], [auto])
-VLC_ADD_LIBS([pulse], [${X_LIBS} ${X_PRE_LIBS} -lX11])
-
+AS_IF([ test "$have_x" = yes],[
+       VLC_ADD_LIBS([pulse], [${X_LIBS} ${X_PRE_LIBS} -lX11])
+])
 dnl
 dnl  Portaudio module
 dnl



More information about the vlc-commits mailing list