[vlc-devel] commit: fix automagic alsa dependency (Daniel Mierswa )

git version control git at videolan.org
Sun Sep 14 04:15:46 CEST 2008


vlc | branch: master | Daniel Mierswa <impulze at impulze.org> | Sun Sep 14 00:11:29 2008 +0200| [4c50e9eed9c725a9cc57c4ea96e730ba720433a7] | committer: Jean-Baptiste Kempf 

fix automagic alsa dependency

when --enable-v4l2 was passed to configure, alsa was searched and linked
against if found (only do that when alsa wasn't disabled)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/configure.ac b/configure.ac
index a2d5b5a..0f923d3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2331,7 +2331,11 @@ then
     VLC_ADD_CPPFLAGS([v4l2],[-I${with_v4l2}/include])
   fi
 
-  AC_CHECK_HEADER(alsa/asoundlib.h, AC_CHECK_LIB(asound, main, have_v4l2_alsa="true", have_v4l2_alsa="false"),have_v4l2_alsa="false")
+  if test "${enable_alsa}" != "no"
+  then
+    AC_CHECK_HEADER(alsa/asoundlib.h, AC_CHECK_LIB(asound, main, have_v4l2_alsa="true", have_v4l2_alsa="false"),have_v4l2_alsa="false")
+  fi
+
   if test "${have_v4l2_alsa}" = "true"
   then
     CFLAGS="${CFLAGS_save}"




More information about the vlc-devel mailing list