Fix ALSA block (remove legacy code)

Originally committed to SVN as r2695.
This commit is contained in:
Amar Takhar 2009-01-15 01:02:57 +00:00
parent c37e33e29c
commit 0035436eff

View file

@ -375,16 +375,19 @@ AC_SUBST(ICONV_CFLAGS)
## ALSA
#######
AC_ARG_WITH(alsa, [ --without-alsa build without ALSA audio provider. (default: auto)], alsa_disabled="(disabled)")
if test "x$with_alsa" != xno; then
AC_CHECK_LIB([asound], [snd_pcm_open], [ALSA_LDFLAGS="-lasound"; found_audio=yes; with_alsa=yes], [with_alsa=no])
fi
if test "$with_alsa" = "yes"; then
AC_DEFINE(WITH_ALSA, 1, [Enable ALSA Support])
if test "$with_alsa" != "no"; then
AC_CHECK_LIB([asound], [snd_pcm_open], [ALSA_LDFLAGS="-lasound"; with_alsa="yes"], [with_alsa="no"])
fi
if test "$with_alsa" != "no"; then
AC_DEFINE(WITH_ALSA, 1, [Enable ALSA Support])
AC_SUBST(ALSA_LDFLAGS)
found_audio="yes"
fi
AC_SUBST(ALSA_LDFLAGS)
AM_CONDITIONAL([HAVE_ALSA], [test "$with_alsa" != "no"])
############
## PortAudio
############