configure.in
changeset 12054 e604fe493d45
parent 12035 1a7dec71e8e0
child 12055 bf70bfa02215
equal deleted inserted replaced
12046:8963fea8c431 12054:e604fe493d45
  3077         fi
  3077         fi
  3078 
  3078 
  3079         SUMMARY_video="${SUMMARY_video} directx"
  3079         SUMMARY_video="${SUMMARY_video} directx"
  3080         SUMMARY_audio="${SUMMARY_audio} directx"
  3080         SUMMARY_audio="${SUMMARY_audio} directx"
  3081 
  3081 
       
  3082         AC_ARG_ENABLE(audio-wasapi,
       
  3083 AC_HELP_STRING([--enable-audio-wasapi], [use the Windows WASAPI audio driver [[default=yes]]]),
       
  3084                                 , enable_audio_wasapi=yes)
       
  3085 
  3082         # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  3086         # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  3083         # FIXME:  ...so force it off for now.
  3087         # FIXME:  ...so force it off for now.
  3084         case "$host" in
  3088         case "$host" in
  3085             *-*-cygwin*)
  3089             *-*-cygwin*)
  3086             have_dinput=false
  3090             have_dinput=false
  3545             SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  3549             SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  3546             if test x$have_dsound = xyes; then
  3550             if test x$have_dsound = xyes; then
  3547                 AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND, 1, [ ])
  3551                 AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND, 1, [ ])
  3548                 SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  3552                 SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  3549             fi
  3553             fi
  3550             if test x$have_wasapi = xyes; then
  3554             if test x$have_wasapi = xyes -a x$enable_audio_wasapi = xyes; then
  3551                 AC_DEFINE(SDL_AUDIO_DRIVER_WASAPI, 1, [ ])
  3555                 AC_DEFINE(SDL_AUDIO_DRIVER_WASAPI, 1, [ ])
       
  3556                 SUMMARY_audio="${SUMMARY_audio} wasapi"
  3552                 SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  3557                 SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  3553             fi
  3558             fi
  3554             have_audio=yes
  3559             have_audio=yes
  3555         fi
  3560         fi
  3556         # Set up files for the joystick library
  3561         # Set up files for the joystick library