diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2005-02-01 01:17:04 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2005-02-01 01:17:04 +0000 |
commit | 716e9a8fb5fbad5c6b1063c5aa7f395af6117545 (patch) | |
tree | e7ff8ba889122bbf844dd371f864b7337b972cf9 /configure.ac | |
parent | 62afded096338368bf7c1d2b1ee6404e01463230 (diff) | |
download | mpd-716e9a8fb5fbad5c6b1063c5aa7f395af6117545.tar.gz mpd-716e9a8fb5fbad5c6b1063c5aa7f395af6117545.tar.xz mpd-716e9a8fb5fbad5c6b1063c5aa7f395af6117545.zip |
use alsa m4 stuff to generate configure
git-svn-id: https://svn.musicpd.org/mpd/trunk@2916 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | configure.ac | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/configure.ac b/configure.ac index 6c2e822f8..d49bd0d00 100644 --- a/configure.ac +++ b/configure.ac @@ -117,25 +117,7 @@ fi AC_CHECK_HEADER(sys/soundcard.h,[enable_oss=yes;AC_DEFINE(HAVE_OSS,1,[Define to enable OSS])],[AC_MSG_WARN(Soundcard headers not found -- disabling OSS support);enable_oss=no]) if test x$enable_alsa = xyes; then - AC_MSG_CHECKING(for alsa) - AC_EGREP_CPP([AP_maGiC_VALUE], - [ -#include <alsa/asoundlib.h> -#if defined(SND_LIB_MAJOR) && defined(SND_LIB_MINOR) -#if SND_LIB_MAJOR>0 || (SND_LIB_MAJOR==0 && SND_LIB_MINOR>=6) -AP_maGiC_VALUE -#endif -#endif - ], - enable_alsa=yes - AC_MSG_RESULT([yes]), - enable_alsa=no - AC_MSG_RESULT([no]) - ) -fi - -if test x$enable_alsa = xyes; then - AC_CHECK_LIB(asound,main,[MPD_LIBS="$MPD_LIBS -lasound";AC_DEFINE(HAVE_ALSA,1,[Define if alsa support is present])],enable_alsa=no) + AM_PATH_ALSA(0.9.0, , enable_alsa=no) fi if test x$enable_iconv = xyes; then |