Disable OSS and BSD audio targets on OpenBSD.
--HG-- extra : rebase_source : f724ffb3927c2331c888eba6f55b71d114269bf4
This commit is contained in:
parent
c6348f33e7
commit
40e8b24572
1 changed files with 14 additions and 3 deletions
17
configure.in
17
configure.in
|
@ -646,8 +646,19 @@ dnl See if the OSS audio interface is supported
|
|||
CheckOSS()
|
||||
{
|
||||
AC_ARG_ENABLE(oss,
|
||||
AC_HELP_STRING([--enable-oss], [support the OSS audio API [[default=yes]]]),
|
||||
, enable_oss=yes)
|
||||
AC_HELP_STRING([--enable-oss], [support the OSS audio API [[default=maybe]]]),
|
||||
, enable_oss=maybe)
|
||||
|
||||
# OpenBSD "has" OSS, but it's not really for app use. They want you to
|
||||
# use sndio instead. So on there, we default to disabled. You can force
|
||||
# it on if you really want, though.
|
||||
if test x$enable_oss = xmaybe; then
|
||||
enable_oss=yes
|
||||
case "$host" in
|
||||
*-*-openbsd*)
|
||||
enable_oss=no;;
|
||||
fi
|
||||
|
||||
if test x$enable_audio = xyes -a x$enable_oss = xyes; then
|
||||
AC_MSG_CHECKING(for OSS audio support)
|
||||
have_oss=no
|
||||
|
@ -2334,7 +2345,7 @@ case "$host" in
|
|||
SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
|
||||
have_audio=yes
|
||||
;;
|
||||
netbsd|openbsd)
|
||||
netbsd) # Don't use this on OpenBSD, it's busted.
|
||||
AC_DEFINE(SDL_AUDIO_DRIVER_BSD, 1, [ ])
|
||||
SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
|
||||
have_audio=yes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue