configure.in
changeset 6311 4e5e46f43438
parent 6303 6bb657898f55
child 6313 d86efd889847
equal deleted inserted replaced
6310:f830e73e2acf 6311:4e5e46f43438
  1089                 enable_x11_shared=no
  1089                 enable_x11_shared=no
  1090                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  1090                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  1091             fi
  1091             fi
  1092             have_video=yes
  1092             have_video=yes
  1093 
  1093 
       
  1094             AC_CHECK_LIB(X11, XGetEventData, AC_DEFINE(SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS, 1, [Have XGenericEvent]))
       
  1095 
  1094             AC_ARG_ENABLE(video-x11-xcursor,
  1096             AC_ARG_ENABLE(video-x11-xcursor,
  1095 AC_HELP_STRING([--enable-video-x11-xcursor], [enable X11 Xcursor support [[default=yes]]]),
  1097 AC_HELP_STRING([--enable-video-x11-xcursor], [enable X11 Xcursor support [[default=yes]]]),
  1096                             , enable_video_x11_xcursor=yes)
  1098                             , enable_video_x11_xcursor=yes)
  1097             if test x$enable_video_x11_xcursor = xyes; then
  1099             if test x$enable_video_x11_xcursor = xyes; then
  1098                 definitely_enable_video_x11_xcursor=no
  1100                 definitely_enable_video_x11_xcursor=no
  1148             AC_ARG_ENABLE(video-x11-xinput,
  1150             AC_ARG_ENABLE(video-x11-xinput,
  1149 AC_HELP_STRING([--enable-video-x11-xinput], [enable X11 XInput extension for manymouse, tablets, etc [[default=yes]]]),
  1151 AC_HELP_STRING([--enable-video-x11-xinput], [enable X11 XInput extension for manymouse, tablets, etc [[default=yes]]]),
  1150                             , enable_video_x11_xinput=yes)
  1152                             , enable_video_x11_xinput=yes)
  1151             if test x$enable_video_x11_xinput = xyes; then
  1153             if test x$enable_video_x11_xinput = xyes; then
  1152                 definitely_enable_video_x11_xinput=no
  1154                 definitely_enable_video_x11_xinput=no
  1153                 AC_CHECK_HEADER(X11/extensions/XInput.h,
  1155                 AC_CHECK_HEADER(X11/extensions/XInput2.h,
  1154                                 have_xinput_h_hdr=yes,
  1156                                 have_xinput_h_hdr=yes,
  1155                                 have_xinput_h_hdr=no,
  1157                                 have_xinput_h_hdr=no,
  1156                                 [#include <X11/Xlib.h>
  1158                                 [#include <X11/Xlib.h>
  1157                                 ])
  1159                                 ])
  1158                 if test x$have_xinput_h_hdr = xyes; then
  1160                 if test x$have_xinput_h_hdr = xyes; then
  1159                     if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  1161                     if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  1160                         echo "-- dynamic libXi -> $xinput_lib"
  1162                         echo "-- dynamic libXi -> $xinput_lib"
  1161                         AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT, "$xinput_lib", [ ])
  1163                         AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2, "$xinput_lib", [ ])
  1162                         definitely_enable_video_x11_xinput=yes
  1164                         definitely_enable_video_x11_xinput=yes
  1163                     else
  1165                     else
  1164                         AC_CHECK_LIB(Xi, XOpenDevice, have_xinput_lib=yes)
  1166                         AC_CHECK_LIB(Xi, XOpenDevice, have_xinput_lib=yes)
  1165                         if test x$have_xinput_lib = xyes ; then
  1167                         if test x$have_xinput_lib = xyes ; then
  1166                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  1168                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  1168                         fi
  1170                         fi
  1169                     fi
  1171                     fi
  1170                 fi
  1172                 fi
  1171             fi
  1173             fi
  1172             if test x$definitely_enable_video_x11_xinput = xyes; then
  1174             if test x$definitely_enable_video_x11_xinput = xyes; then
  1173                 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINPUT, 1, [ ])
  1175                 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINPUT2, 1, [ ])
  1174             fi
  1176             fi
  1175             AC_ARG_ENABLE(video-x11-xrandr,
  1177             AC_ARG_ENABLE(video-x11-xrandr,
  1176 AC_HELP_STRING([--enable-video-x11-xrandr], [enable X11 Xrandr extension for fullscreen [[default=yes]]]),
  1178 AC_HELP_STRING([--enable-video-x11-xrandr], [enable X11 Xrandr extension for fullscreen [[default=yes]]]),
  1177                             , enable_video_x11_xrandr=yes)
  1179                             , enable_video_x11_xrandr=yes)
  1178             if test x$enable_video_x11_xrandr = xyes; then
  1180             if test x$enable_video_x11_xrandr = xyes; then