Commit 4c50e9ee authored by Daniel Mierswa's avatar Daniel Mierswa Committed by 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: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent a6a27b4d
...@@ -2331,7 +2331,11 @@ then ...@@ -2331,7 +2331,11 @@ then
VLC_ADD_CPPFLAGS([v4l2],[-I${with_v4l2}/include]) VLC_ADD_CPPFLAGS([v4l2],[-I${with_v4l2}/include])
fi 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" if test "${have_v4l2_alsa}" = "true"
then then
CFLAGS="${CFLAGS_save}" CFLAGS="${CFLAGS_save}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment