comparison configure.in @ 4604:d7535d7a40ea

Integrate XFixes and XDamage into the build system.
author Sunny Sachanandani <sunnysachanandani@gmail.com>
date Mon, 19 Jul 2010 20:05:53 +0530
parents 87a2d87786d4
children 844b5ef4b149
comparison
equal deleted inserted replaced
4603:dffa432f0e2b 4604:d7535d7a40ea
1053 x11ext_lib=[`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`] 1053 x11ext_lib=[`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`]
1054 xrender_lib=[`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`] 1054 xrender_lib=[`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`]
1055 xrandr_lib=[`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`] 1055 xrandr_lib=[`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`]
1056 xinput_lib=[`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`] 1056 xinput_lib=[`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`]
1057 xss_lib=[`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`] 1057 xss_lib=[`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`]
1058 ;; 1058 xdamage_lib=[`find_lib "libXdamage.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`]
1059 xfixes_lib=[`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`]
1060 ;;
1059 esac 1061 esac
1060 1062
1061 if test x$ac_cv_func_shmat != xyes; then 1063 if test x$ac_cv_func_shmat != xyes; then
1062 X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY" 1064 X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
1063 fi 1065 fi
1220 fi 1222 fi
1221 fi 1223 fi
1222 if test x$definitely_enable_video_x11_xrender = xyes; then 1224 if test x$definitely_enable_video_x11_xrender = xyes; then
1223 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XRENDER) 1225 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XRENDER)
1224 fi 1226 fi
1225 1227 AC_ARG_ENABLE(video-x11-xdamage-xfixes,
1228 AC_HELP_STRING([--enable-video-x11-xdamage-xfixes], [enable X11 Xdamage and Xfixes extensions [[default=yes]]]),
1229 , enable_video_x11_xdamage=yes)
1230 if test x$enable_video_x11_xdamage = xyes && test x$definitely_enable_video_x11_xrender = xyes ; then
1231 AC_CHECK_HEADER(X11/extensions/Xdamage.h,
1232 have_xdamage_h_hdr=yes,
1233 have_xdamage_h_hdr=no,
1234 [#include <X11/Xlib.h>
1235 ])
1236 AC_CHECK_HEADER(X11/extensions/Xfixes.h,
1237 have_xfixes_h_hdr=yes,
1238 have_xfixes_h_hdr=no,
1239 [#include <X11/Xlib.h>
1240 ])
1241 if test x$have_xdamage_h_hdr = xyes && test x$have_xfixes_h_hdr = xyes ; then
1242 if test x$enable_x11_shared = xyes && test x$xdamage_lib != x && test x$xfixes_lib != x ; then
1243 echo "-- dynamic libXdamage -> $xdamage_lib"
1244 echo "-- dynamic libXfixes -> $xfixes_lib"
1245 AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XDAMAGE, "$xdamage_lib")
1246 AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES, "$xfixes_lib")
1247 definitely_enable_video_x11_xdamage=yes
1248 definitely_enable_video_x11_xfixes=yes
1249 else
1250 AC_CHECK_LIB(Xdamage, XDamageQueryExtension, have_xdamage_lib=yes)
1251 AC_CHECK_LIB(Xfixes, XFixesQueryExtension, have_xfixes_lib=yes)
1252 if test x$have_xdamage_lib = xyes && test x$have_xfixes_lib = xyes ; then
1253 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXdamage -lXfixes"
1254 definitely_enable_video_x11_xdamage=yes
1255 definitely_enable_video_x11_xfixes=yes
1256 fi
1257 fi
1258 fi
1259 fi
1260 if test x$definitely_enable_video_x11_xdamage = xyes && test x$definitely_enable_video_x11_xfixes = xyes ; then
1261 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XDAMAGE)
1262 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XFIXES)
1263 fi
1226 AC_ARG_ENABLE(render-x11, 1264 AC_ARG_ENABLE(render-x11,
1227 AC_HELP_STRING([--enable-render-x11], [enable the X11 render driver [[default=yes]]]), 1265 AC_HELP_STRING([--enable-render-x11], [enable the X11 render driver [[default=yes]]]),
1228 , enable_render_x11=yes) 1266 , enable_render_x11=yes)
1229 if test x$enable_render_x11 = xyes; then 1267 if test x$enable_render_x11 = xyes; then
1230 AC_DEFINE(SDL_VIDEO_RENDER_X11) 1268 AC_DEFINE(SDL_VIDEO_RENDER_X11)
1231 fi 1269 fi
1232 fi 1270 fi
1233 fi 1271 fi
1234 } 1272 }
1235 1273
1236 dnl Check for QNX photon video driver 1274 dnl Check for QNX photon video driver
1237 CheckPHOTON() 1275 CheckPHOTON()