[CF-Devel] ALSA 0.9.x sound server patches
crossfire-devel-admin at archives.real-time.com
crossfire-devel-admin at archives.real-time.com
Tue Aug 26 21:42:34 CDT 2003
>
> Perhaps it should also be noted that --disable_alsa
>
>
>
> in client/configure does not work:
>
> > --disable-alsa disable ALSA sound support default=use alsa sound
>
>
support > if alsa libraries exist
>
>
> Kevin Bulgrien
The following patch adds a --disable-alsa9 option which lets me compile
an OSS version of cfsndserv...
Would someone please consider committing this to CVS? The patch is
for client/configure.in.
Kevin R. Bulgrien
-------------- next part --------------
--- client/configure.in 2003-08-26 21:22:18.000000000 -0500
+++ client/configure.in.krb 2003-08-26 21:12:04.000000000 -0500
@@ -46,7 +46,10 @@
AC_ARG_ENABLE(sound, [ --disable-sound disable sound support [default=implement sound support if supported libraries exist]],
sound=no, sound=yes )
-dnl This is because some of us use OSS sound, even with ALSA libs installed
+dnl These are because some of us use OSS sound, even with ALSA or ALSA9 libs installed
+
+AC_ARG_ENABLE(alsa9, [ --disable-alsa9 disable ALSA9 sound support [default=use alsa9 sound support if alsa9 libraries exist]],
+ alsa9=no, alsa9=yes )
AC_ARG_ENABLE(alsa, [ --disable-alsa disable ALSA sound support [default=use alsa sound support if alsa libraries exist]],
alsa=no, alsa=yes )
@@ -162,7 +165,9 @@
AC_CHECK_LIB(asound, main, alsa_sound=yes, , -lm)
fi
AC_CHECK_LIB(audio, alNewConfig, sgi_sound=yes, )
- AC_CHECK_HEADER(alsa/asoundlib.h, alsa9_sound=yes, alsa_sound=no)
+ if eval "test x$alsa9 = xyes"; then
+ AC_CHECK_HEADER(alsa/asoundlib.h, alsa9_sound=yes, alsa_sound=no)
+ fi
AC_CHECK_HEADER(sys/soundcard.h, oss_sound=yes, oss_sound=no)
AC_CHECK_HEADER(sys/audioio.h, sun_sound=yes, sun_sound=no)
More information about the crossfire
mailing list