changeset 1806:8baf6641cd57

Added hardcoded /usr/X11R6 path so GLX detection works on Mac OS X.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 10 May 2006 14:59:08 +0000
parents 259e03cbcb5f
children f173f8fe1fc6
files configure.in
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Wed May 10 07:42:02 2006 +0000
+++ b/configure.in	Wed May 10 14:59:08 2006 +0000
@@ -788,6 +788,17 @@
 AC_HELP_STRING([--enable-video-x11], [use X11 video driver [[default=yes]]]),
                   , enable_video_x11=yes)
     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_XTRA
         if test x$have_x = xyes; then