configure.in
changeset 11138 c936a84f05ba
parent 11131 afa5670fa967
child 11175 cbc6a8a5b701
     1.1 --- a/configure.in	Mon Jul 10 17:16:12 2017 -0700
     1.2 +++ b/configure.in	Mon Jul 10 18:31:28 2017 -0700
     1.3 @@ -2801,6 +2801,16 @@
     1.4          AC_CHECK_HEADER(dxgi.h, have_dxgi=yes)
     1.5          AC_CHECK_HEADER(xaudio2.h, have_xaudio2=yes)
     1.6          AC_CHECK_HEADER(xinput.h, have_xinput=yes)
     1.7 +        AC_TRY_COMPILE([
     1.8 +#include <windows.h>
     1.9 +#include <xinput.h>
    1.10 +XINPUT_GAMEPAD_EX x1;
    1.11 +        ],[],[have_xinput_gamepadex=yes])
    1.12 +        AC_TRY_COMPILE([
    1.13 +#include <windows.h>
    1.14 +#include <xinput.h>
    1.15 +XINPUT_STATE_EX s1;
    1.16 +        ],[],[have_xinput_stateex=yes])
    1.17  
    1.18          if test x$have_ddraw = xyes; then
    1.19              AC_DEFINE(HAVE_DDRAW_H, 1, [ ])
    1.20 @@ -2817,6 +2827,12 @@
    1.21          if test x$have_xinput = xyes; then
    1.22              AC_DEFINE(HAVE_XINPUT_H, 1, [ ])
    1.23          fi
    1.24 +        if test x$have_xinput_gamepadex = xyes; then
    1.25 +            AC_DEFINE(HAVE_XINPUT_GAMEPAD_EX, 1, [ ])
    1.26 +        fi
    1.27 +        if test x$have_xinput_stateex = xyes; then
    1.28 +            AC_DEFINE(HAVE_XINPUT_STATE_EX, 1, [ ])
    1.29 +        fi
    1.30  
    1.31          SUMMARY_video="${SUMMARY_video} directx"
    1.32          SUMMARY_audio="${SUMMARY_audio} directx"