configure
changeset 11138 c936a84f05ba
parent 11134 e22ab7022677
child 11187 c630c47e8f96
     1.1 --- a/configure	Mon Jul 10 17:16:12 2017 -0700
     1.2 +++ b/configure	Mon Jul 10 18:31:28 2017 -0700
     1.3 @@ -22687,6 +22687,44 @@
     1.4  fi
     1.5  
     1.6  
     1.7 +        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1.8 +/* end confdefs.h.  */
     1.9 +
    1.10 +#include <windows.h>
    1.11 +#include <xinput.h>
    1.12 +XINPUT_GAMEPAD_EX x1;
    1.13 +
    1.14 +int
    1.15 +main ()
    1.16 +{
    1.17 +
    1.18 +  ;
    1.19 +  return 0;
    1.20 +}
    1.21 +_ACEOF
    1.22 +if ac_fn_c_try_compile "$LINENO"; then :
    1.23 +  have_xinput_gamepadex=yes
    1.24 +fi
    1.25 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1.26 +        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1.27 +/* end confdefs.h.  */
    1.28 +
    1.29 +#include <windows.h>
    1.30 +#include <xinput.h>
    1.31 +XINPUT_STATE_EX s1;
    1.32 +
    1.33 +int
    1.34 +main ()
    1.35 +{
    1.36 +
    1.37 +  ;
    1.38 +  return 0;
    1.39 +}
    1.40 +_ACEOF
    1.41 +if ac_fn_c_try_compile "$LINENO"; then :
    1.42 +  have_xinput_stateex=yes
    1.43 +fi
    1.44 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1.45  
    1.46          if test x$have_ddraw = xyes; then
    1.47  
    1.48 @@ -22713,6 +22751,16 @@
    1.49  $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
    1.50  
    1.51          fi
    1.52 +        if test x$have_xinput_gamepadex = xyes; then
    1.53 +
    1.54 +$as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
    1.55 +
    1.56 +        fi
    1.57 +        if test x$have_xinput_stateex = xyes; then
    1.58 +
    1.59 +$as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
    1.60 +
    1.61 +        fi
    1.62  
    1.63          SUMMARY_video="${SUMMARY_video} directx"
    1.64          SUMMARY_audio="${SUMMARY_audio} directx"