configure.in
changeset 7380 e5830832d3f0
parent 7379 b27c778a2bdb
child 7388 058097637b4c
     1.1 --- a/configure.in	Mon Jul 08 09:21:54 2013 -0700
     1.2 +++ b/configure.in	Mon Jul 08 13:26:59 2013 -0400
     1.3 @@ -646,8 +646,19 @@
     1.4  CheckOSS()
     1.5  {
     1.6      AC_ARG_ENABLE(oss,
     1.7 -AC_HELP_STRING([--enable-oss], [support the OSS audio API [[default=yes]]]),
     1.8 -                  , enable_oss=yes)
     1.9 +AC_HELP_STRING([--enable-oss], [support the OSS audio API [[default=maybe]]]),
    1.10 +                  , enable_oss=maybe)
    1.11 +
    1.12 +    # OpenBSD "has" OSS, but it's not really for app use. They want you to
    1.13 +    #  use sndio instead. So on there, we default to disabled. You can force
    1.14 +    #  it on if you really want, though.
    1.15 +    if test x$enable_oss = xmaybe; then
    1.16 +        enable_oss=yes
    1.17 +        case "$host" in
    1.18 +            *-*-openbsd*)
    1.19 +                enable_oss=no;;
    1.20 +    fi
    1.21 +
    1.22      if test x$enable_audio = xyes -a x$enable_oss = xyes; then
    1.23          AC_MSG_CHECKING(for OSS audio support)
    1.24          have_oss=no
    1.25 @@ -2334,7 +2345,7 @@
    1.26                  SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
    1.27                  have_audio=yes
    1.28              ;;
    1.29 -            netbsd|openbsd)
    1.30 +            netbsd)  # Don't use this on OpenBSD, it's busted.
    1.31                  AC_DEFINE(SDL_AUDIO_DRIVER_BSD, 1, [ ])
    1.32                  SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
    1.33                  have_audio=yes