configure.in
changeset 12248 a65c2e471570
parent 12245 0c1c3e41a6f2
child 12249 4f358c108da1
equal deleted inserted replaced
12247:f1cfd508f012 12248:a65c2e471570
  3050         AC_CHECK_HEADER(ddraw.h, have_ddraw=yes)
  3050         AC_CHECK_HEADER(ddraw.h, have_ddraw=yes)
  3051         AC_CHECK_HEADER(dsound.h, have_dsound=yes)
  3051         AC_CHECK_HEADER(dsound.h, have_dsound=yes)
  3052         AC_CHECK_HEADER(dinput.h, have_dinput=yes)
  3052         AC_CHECK_HEADER(dinput.h, have_dinput=yes)
  3053         AC_CHECK_HEADER(dxgi.h, have_dxgi=yes)
  3053         AC_CHECK_HEADER(dxgi.h, have_dxgi=yes)
  3054         AC_CHECK_HEADER(xinput.h, have_xinput=yes)
  3054         AC_CHECK_HEADER(xinput.h, have_xinput=yes)
  3055         AC_CHECK_HEADER(mmdeviceapi.h, have_wasapi=yes)
       
  3056         AC_CHECK_HEADER(audioclient.h,,have_wasapi=no)
       
  3057         AC_TRY_COMPILE([
  3055         AC_TRY_COMPILE([
  3058 #include <windows.h>
  3056 #include <windows.h>
  3059 #include <xinput.h>
  3057 #include <xinput.h>
  3060 XINPUT_GAMEPAD_EX x1;
  3058 XINPUT_GAMEPAD_EX x1;
  3061         ],[],[have_xinput_gamepadex=yes])
  3059         ],[],[have_xinput_gamepadex=yes])
  3088         fi
  3086         fi
  3089 
  3087 
  3090         SUMMARY_video="${SUMMARY_video} directx"
  3088         SUMMARY_video="${SUMMARY_video} directx"
  3091         SUMMARY_audio="${SUMMARY_audio} directx"
  3089         SUMMARY_audio="${SUMMARY_audio} directx"
  3092 
  3090 
  3093         AC_ARG_ENABLE(wasapi,
       
  3094 AC_HELP_STRING([--enable-wasapi], [use the Windows WASAPI audio driver [[default=yes]]]),
       
  3095                                 , enable_wasapi=yes)
       
  3096 
       
  3097         # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  3091         # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  3098         # FIXME:  ...so force it off for now.
  3092         # FIXME:  ...so force it off for now.
  3099         case "$host" in
  3093         case "$host" in
  3100             *-*-cygwin*)
  3094             *-*-cygwin*)
  3101             have_dinput=false
  3095             have_dinput=false
  3102             ;;
  3096             ;;
  3103         esac
  3097         esac
  3104     fi
  3098     fi
       
  3099 
       
  3100     AC_CHECK_HEADER(mmdeviceapi.h, have_wasapi=yes)
       
  3101     AC_CHECK_HEADER(audioclient.h,,have_wasapi=no)
       
  3102     AC_ARG_ENABLE(wasapi,
       
  3103 AC_HELP_STRING([--enable-wasapi], [use the Windows WASAPI audio driver [[default=yes]]]),
       
  3104                                 , enable_wasapi=yes)
  3105 }
  3105 }
  3106 
  3106 
  3107 dnl Check for the dlfcn.h interface for dynamically loading objects
  3107 dnl Check for the dlfcn.h interface for dynamically loading objects
  3108 CheckDLOPEN()
  3108 CheckDLOPEN()
  3109 {
  3109 {