configure.in
changeset 6362 562a9fe60603
parent 6340 eadb3790009f
child 6365 975e23e06124
equal deleted inserted replaced
6360:efd48af40ec3 6362:562a9fe60603
  1104             have_const_param_XextAddDisplay=yes
  1104             have_const_param_XextAddDisplay=yes
  1105             AC_DEFINE(SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY)
  1105             AC_DEFINE(SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY)
  1106             ])
  1106             ])
  1107             AC_MSG_RESULT($have_const_param_XextAddDisplay)
  1107             AC_MSG_RESULT($have_const_param_XextAddDisplay)
  1108 
  1108 
  1109             AC_CHECK_LIB(X11, XGetEventData, AC_DEFINE(SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS, 1, [Have XGenericEvent]))
  1109             dnl AC_CHECK_LIB(X11, XGetEventData, AC_DEFINE(SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS, 1, [Have XGenericEvent]))
       
  1110             AC_MSG_CHECKING([for XGenericEvent])
       
  1111             have_XGenericEvent=no
       
  1112             AC_TRY_COMPILE([
       
  1113               	#include <X11/Xlib.h>
       
  1114             ],[
       
  1115 Display *display;
       
  1116 XEvent event;
       
  1117 XGenericEventCookie *cookie = &event.xcookie;
       
  1118 XNextEvent(display, &event);
       
  1119 XGetEventData(display, cookie);
       
  1120 XFreeEventData(display, cookie);
       
  1121             ],[
       
  1122                 have_XGenericEvent=yes
       
  1123                 AC_DEFINE(SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS)
       
  1124             ])
       
  1125             AC_MSG_RESULT($have_XGenericEvent)
       
  1126 
  1110             AC_CHECK_LIB(X11, XkbKeycodeToKeysym, AC_DEFINE(SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM, 1, [Have XkbKeycodeToKeysym]))
  1127             AC_CHECK_LIB(X11, XkbKeycodeToKeysym, AC_DEFINE(SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM, 1, [Have XkbKeycodeToKeysym]))
  1111 
  1128 
  1112             AC_ARG_ENABLE(video-x11-xcursor,
  1129             AC_ARG_ENABLE(video-x11-xcursor,
  1113 AC_HELP_STRING([--enable-video-x11-xcursor], [enable X11 Xcursor support [[default=yes]]]),
  1130 AC_HELP_STRING([--enable-video-x11-xcursor], [enable X11 Xcursor support [[default=yes]]]),
  1114                             , enable_video_x11_xcursor=yes)
  1131                             , enable_video_x11_xcursor=yes)