mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-03-21 08:21:27 +00:00
fixed alsa checking (someone got a little ahead of himself)
This commit is contained in:
parent
9a2b4c0e5a
commit
82b6c3139e
1 changed files with 9 additions and 3 deletions
12
configure.in
12
configure.in
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue