fixed alsa checking (someone got a little ahead of himself)

This commit is contained in:
Bill Currie 2000-02-13 07:12:42 +00:00
parent 9a2b4c0e5a
commit 82b6c3139e

View file

@ -105,6 +105,10 @@ AC_ARG_ENABLE(ipv6,
NET_SOURCE=net_udp.c
)
AC_ARG_ENABLE(alsa,
[ --diable-alsa disable alsa support],
)
AC_ARG_ENABLE(zlib,
[ --disable-zlib disable zlib support],
)
@ -544,15 +548,17 @@ AC_CHECK_LIB(mme,waveOutOpen,HAVE_LIBMME=yes)
SOUND_LIBS=""
SOUND_STYLE=""
AC_MSG_CHECKING(for sound support)
if test -z "$SOUND_STYLE" -a "x$ac_cv_header_sys_asoundlib_h" = "xyes"; then
AC_EGREP_CPP([QF_maGiC_VALUE],[
if test "x$enable_alsa" != "xno"; then
if test -z "$SOUND_STYLE" -a "x$ac_cv_header_sys_asoundlib_h" = "xyes"; then
AC_EGREP_CPP([QF_maGiC_VALUE],[
#include <sys/asoundlib.h>
#if defined(SND_LIB_MAJOR) && defined(SND_LIB_MINOR)
#if SND_LIB_MAJOR>0 || (SND_LIB_MAJOR==0 && SND_LIB_MINOR>=5)
QF_maGiC_VALUE
#endif
#endif
],[ SOUND_STYLE="ALSA" SOUND_LIBS="-lasound"])
],[ SOUND_STYLE="ALSA" SOUND_LIBS="-lasound"])
fi
fi
if test -z "$SOUND_STYLE" -a "x$ac_cv_header_sys_soundcard_h" = "xyes"; then