Commit dedf915e authored by Sam Lantinga's avatar Sam Lantinga

Added hardcoded /usr/X11R6 path so GLX detection works on Mac OS X.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401766
parent 9d85d36f
...@@ -788,6 +788,17 @@ CheckX11() ...@@ -788,6 +788,17 @@ CheckX11()
AC_HELP_STRING([--enable-video-x11], [use X11 video driver [[default=yes]]]), AC_HELP_STRING([--enable-video-x11], [use X11 video driver [[default=yes]]]),
, enable_video_x11=yes) , enable_video_x11=yes)
if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
case "$host" in
*-*-darwin*) # Latest Mac OS X actually ships with Xrandr/Xrender libs...
# This isn't strictly necessary for X11, but for GLX detection
if test "x$x_includes" = xNONE; then
x_includes="/usr/X11R6/include"
fi
if test "x$x_libraries" != xNONE; then
x_libraries="/usr/X11R6/lib"
fi
;;
esac
AC_PATH_X AC_PATH_X
AC_PATH_XTRA AC_PATH_XTRA
if test x$have_x = xyes; then if test x$have_x = xyes; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment