Add XShape test to configure scripts.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 13 Jul 2010 02:43:10 -0400
changeset 4793cb31d2fdbe61
parent 4792 aece2b6fb985
child 4794 e562160a873f
Add XShape test to configure scripts.
configure.in
include/SDL_config.h.in
include/SDL_config_macosx.h
     1.1 --- a/configure.in	Tue Jul 13 02:27:59 2010 -0400
     1.2 +++ b/configure.in	Tue Jul 13 02:43:10 2010 -0400
     1.3 @@ -1116,6 +1116,19 @@
     1.4                  AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINERAMA)
     1.5                  SOURCES="$SOURCES $srcdir/src/video/Xext/Xinerama/*.c"
     1.6              fi
     1.7 +            AC_ARG_ENABLE(video-x11-xshape,
     1.8 +AC_HELP_STRING([--enable-video-x11-xshape], [enable X11 XShape support [[default=yes]]]),
     1.9 +                            , enable_video_x11_xshape=yes)
    1.10 +            if test x$enable_video_x11_xshape = xyes; then
    1.11 +                AC_CHECK_HEADER(X11/extensions/shape.h,
    1.12 +                                have_shape_h_hdr=yes,
    1.13 +                                have_shape_h_hdr=no,
    1.14 +                                [#include <X11/Xlib.h>
    1.15 +                                ])
    1.16 +                if test x$have_shape_h_hdr = xyes; then
    1.17 +                    AC_DEFINE(SDL_VIDEO_DRIVER_X11_XSHAPE)
    1.18 +                fi
    1.19 +            fi
    1.20              AC_ARG_ENABLE(video-x11-xrandr,
    1.21  AC_HELP_STRING([--enable-video-x11-xrandr], [enable X11 Xrandr extension for fullscreen [[default=yes]]]),
    1.22                              , enable_video_x11_xrandr=yes)
     2.1 --- a/include/SDL_config.h.in	Tue Jul 13 02:27:59 2010 -0400
     2.2 +++ b/include/SDL_config.h.in	Tue Jul 13 02:43:10 2010 -0400
     2.3 @@ -278,6 +278,7 @@
     2.4  #undef SDL_VIDEO_DRIVER_X11_XINPUT
     2.5  #undef SDL_VIDEO_DRIVER_X11_SCRNSAVER
     2.6  #undef SDL_VIDEO_DRIVER_X11_XV
     2.7 +#undef SDL_VIDEO_DRIVER_X11_XSHAPE
     2.8  
     2.9  #undef SDL_VIDEO_RENDER_D3D
    2.10  #undef SDL_VIDEO_RENDER_GDI
     3.1 --- a/include/SDL_config_macosx.h	Tue Jul 13 02:27:59 2010 -0400
     3.2 +++ b/include/SDL_config_macosx.h	Tue Jul 13 02:43:10 2010 -0400
     3.3 @@ -144,6 +144,7 @@
     3.4  #define SDL_VIDEO_DRIVER_X11_XINPUT 1
     3.5  #define SDL_VIDEO_DRIVER_X11_SCRNSAVER 1
     3.6  #define SDL_VIDEO_DRIVER_X11_XV 1
     3.7 +#define SDL_VIDEO_DRIVER_X11_XSHAPE 1
     3.8  
     3.9  #define SDL_VIDEO_RENDER_OGL	1
    3.10  #define SDL_VIDEO_RENDER_X11	1