From 0035436effd7da1bba312135be6e1cb406d3622e Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Thu, 15 Jan 2009 01:02:57 +0000 Subject: [PATCH] Fix ALSA block (remove legacy code) Originally committed to SVN as r2695. --- configure.in | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/configure.in b/configure.in index b9acb77af..0fb58916d 100644 --- a/configure.in +++ b/configure.in @@ -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 ############