configure
changeset 6317 df009b78a763
parent 6313 d86efd889847
child 6319 698c98b83cbb
     1.1 --- a/configure	Thu May 31 13:37:02 2012 +0300
     1.2 +++ b/configure	Thu May 31 09:06:47 2012 -0400
     1.3 @@ -22749,6 +22749,68 @@
     1.4  #define SDL_VIDEO_DRIVER_X11_XINPUT2 1
     1.5  _ACEOF
     1.6  
     1.7 +                { echo "$as_me:$LINENO: checking for xinput2 multitouch" >&5
     1.8 +echo $ECHO_N "checking for xinput2 multitouch... $ECHO_C" >&6; }
     1.9 +            	have_xinput2_multitouch=no
    1.10 +            	cat >conftest.$ac_ext <<_ACEOF
    1.11 +/* confdefs.h.  */
    1.12 +_ACEOF
    1.13 +cat confdefs.h >>conftest.$ac_ext
    1.14 +cat >>conftest.$ac_ext <<_ACEOF
    1.15 +/* end confdefs.h.  */
    1.16 +
    1.17 +              		#include <X11/Xlib.h>
    1.18 +             		#include <X11/Xproto.h>
    1.19 +			#include <X11/extensions/XInput2.h>
    1.20 +
    1.21 +int
    1.22 +main ()
    1.23 +{
    1.24 +
    1.25 +Status
    1.26 +XIAllowTouchEvents(Display *a,int b,unsigned int c,Window d,int f)
    1.27 +{
    1.28 +    return (Status)0;
    1.29 +}
    1.30 +
    1.31 +  ;
    1.32 +  return 0;
    1.33 +}
    1.34 +_ACEOF
    1.35 +rm -f conftest.$ac_objext
    1.36 +if { (ac_try="$ac_compile"
    1.37 +case "(($ac_try" in
    1.38 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1.39 +  *) ac_try_echo=$ac_try;;
    1.40 +esac
    1.41 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    1.42 +  (eval "$ac_compile") 2>conftest.er1
    1.43 +  ac_status=$?
    1.44 +  grep -v '^ *+' conftest.er1 >conftest.err
    1.45 +  rm -f conftest.er1
    1.46 +  cat conftest.err >&5
    1.47 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1.48 +  (exit $ac_status); } && {
    1.49 +	 test -z "$ac_c_werror_flag" ||
    1.50 +	 test ! -s conftest.err
    1.51 +       } && test -s conftest.$ac_objext; then
    1.52 +
    1.53 +            	have_xinput2_multitouch=yes
    1.54 +            	cat >>confdefs.h <<\_ACEOF
    1.55 +#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1
    1.56 +_ACEOF
    1.57 +
    1.58 +
    1.59 +else
    1.60 +  echo "$as_me: failed program was:" >&5
    1.61 +sed 's/^/| /' conftest.$ac_ext >&5
    1.62 +
    1.63 +
    1.64 +fi
    1.65 +
    1.66 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1.67 +            	{ echo "$as_me:$LINENO: result: $have_xinput2_multitouch" >&5
    1.68 +echo "${ECHO_T}$have_xinput2_multitouch" >&6; }
    1.69              fi
    1.70              # Check whether --enable-video-x11-xrandr was given.
    1.71  if test "${enable_video_x11_xrandr+set}" = set; then