# HG changeset patch # User Sam Lantinga # Date 990578177 0 # Node ID d3bc792e136d38783dadbd9140df1d21eb41c1a2 # Parent 27cb016592f9acfac90c479b6902c1e12a0eeb8f Added detection of Open Sound System on Solaris x86 diff -r 27cb016592f9 -r d3bc792e136d configure.in --- a/configure.in Wed May 23 00:06:08 2001 +0000 +++ b/configure.in Wed May 23 00:36:17 2001 +0000 @@ -242,21 +242,7 @@ AC_MSG_CHECKING(for OSS audio support) have_oss=no AC_TRY_COMPILE([ - #ifdef linux - #include - #endif - #ifdef __FreeBSD__ - #include - #endif - #ifdef __bsdi__ #include - #endif - #ifdef __OpenBSD__ - #include - #endif - #ifdef __USLC__ - #include - #endif ],[ int arg = SNDCTL_DSP_SETFRAGMENT; ],[ @@ -1146,6 +1132,8 @@ CheckDummyVideo CheckNASM CheckOSS + CheckARTSC + CheckESD CheckNAS CheckX11 CheckDGA @@ -1386,6 +1374,7 @@ CFLAGS="$CFLAGS -D__ELF__" # Fix for nasm on Solaris x86 CheckDummyVideo CheckNASM + CheckOSS CheckARTSC CheckESD CheckNAS @@ -1488,6 +1477,7 @@ *-*-hpux*) ARCH=hpux CheckDummyVideo + CheckOSS CheckNAS CheckX11 CheckGGI @@ -1531,6 +1521,7 @@ *-*-aix*) ARCH=aix CheckDummyVideo + CheckOSS CheckNAS CheckX11 CheckGGI diff -r 27cb016592f9 -r d3bc792e136d docs.html --- a/docs.html Wed May 23 00:06:08 2001 +0000 +++ b/docs.html Wed May 23 00:36:17 2001 +0000 @@ -16,6 +16,7 @@ Major changes since SDL 1.0.0:
    +
  • 1.2.1: Added detection of Open Sound System on Solaris x86
  • 1.2.1: Added initial support for Nano-X (thanks Hsieh-Fu!)
  • 1.2.1: Fixed endian detection on IA64 architectures (thanks Bill!)
  • 1.2.1: Added --disable-dga configure option to disable DGA diff -r 27cb016592f9 -r d3bc792e136d src/audio/SDL_audio.c --- a/src/audio/SDL_audio.c Wed May 23 00:06:08 2001 +0000 +++ b/src/audio/SDL_audio.c Wed May 23 00:36:17 2001 +0000 @@ -40,11 +40,6 @@ /* Available audio drivers */ static AudioBootStrap *bootstrap[] = { -#if defined(unix) && \ - !defined(linux) && !defined(__FreeBSD__) && !defined(__CYGWIN32__) \ - && !defined(__bsdi__) - &AUDIO_bootstrap, -#endif #ifdef OSS_SUPPORT &DSP_bootstrap, &DMA_bootstrap, @@ -52,6 +47,10 @@ #ifdef ALSA_SUPPORT &ALSA_bootstrap, #endif +#if (defined(unix) && !defined(__CYGWIN32__)) && \ + !defined(OSS_SUPPORT) && !defined(ALSA_SUPPORT) + &AUDIO_bootstrap, +#endif #ifdef ARTSC_SUPPORT &ARTSC_bootstrap, #endif diff -r 27cb016592f9 -r d3bc792e136d src/audio/SDL_sysaudio.h --- a/src/audio/SDL_sysaudio.h Wed May 23 00:06:08 2001 +0000 +++ b/src/audio/SDL_sysaudio.h Wed May 23 00:36:17 2001 +0000 @@ -99,11 +99,6 @@ SDL_AudioDevice *(*create)(int devindex); } AudioBootStrap; -#if defined(unix) && \ - !defined(linux) && !defined(__FreeBSD__) && !defined(__CYGWIN32__) \ - && !defined(__bsdi__) -extern AudioBootStrap AUDIO_bootstrap; -#endif #ifdef OSS_SUPPORT extern AudioBootStrap DSP_bootstrap; extern AudioBootStrap DMA_bootstrap; @@ -111,6 +106,10 @@ #ifdef ALSA_SUPPORT extern AudioBootStrap ALSA_bootstrap; #endif +#if (defined(unix) && !defined(__CYGWIN32__)) && \ + !defined(OSS_SUPPORT) && !defined(ALSA_SUPPORT) +extern AudioBootStrap AUDIO_bootstrap; +#endif #ifdef ARTSC_SUPPORT extern AudioBootStrap ARTSC_bootstrap; #endif diff -r 27cb016592f9 -r d3bc792e136d src/audio/dma/SDL_dmaaudio.c --- a/src/audio/dma/SDL_dmaaudio.c Wed May 23 00:06:08 2001 +0000 +++ b/src/audio/dma/SDL_dmaaudio.c Wed May 23 00:36:17 2001 +0000 @@ -39,21 +39,7 @@ #include #include #include -#ifdef linux -#include -#endif -#ifdef __bsdi__ #include -#endif -#ifdef __FreeBSD__ -#include -#endif -#ifdef __OpenBSD__ -#include -#endif -#ifdef __USLC__ -#include -#endif #ifndef MAP_FAILED #define MAP_FAILED ((Uint8 *)-1) diff -r 27cb016592f9 -r d3bc792e136d src/audio/dsp/SDL_dspaudio.c --- a/src/audio/dsp/SDL_dspaudio.c Wed May 23 00:06:08 2001 +0000 +++ b/src/audio/dsp/SDL_dspaudio.c Wed May 23 00:36:17 2001 +0000 @@ -37,21 +37,7 @@ #include #include #include -#ifdef linux -#include -#endif -#ifdef __bsdi__ #include -#endif -#ifdef __FreeBSD__ -#include -#endif -#ifdef __OpenBSD__ -#include -#endif -#ifdef __USLC__ -#include -#endif #include "SDL_audio.h" #include "SDL_error.h"