Added X include path so SDL_syswm.h works correctly on systems with X11 in a non-standard directory.
authorSam Lantinga <slouken@libsdl.org>
Sun, 21 Jul 2013 12:37:43 -0700
changeset 7494 25575b2a188f
parent 7493 7bfda8f0bfdf
child 7495 c4ba5e5c2765
Added X include path so SDL_syswm.h works correctly on systems with X11 in a non-standard directory.
configure
configure.in
--- a/configure	Sun Jul 21 12:21:22 2013 -0700
+++ b/configure	Sun Jul 21 12:37:43 2013 -0700
@@ -19562,6 +19562,9 @@
             SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
             EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
 
+            # Needed so SDL applications can include SDL_syswm.h
+            SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
+
             if test x$enable_x11_shared = xmaybe; then
                 enable_x11_shared=$x11_symbols_private
             fi
--- a/configure.in	Sun Jul 21 12:21:22 2013 -0700
+++ b/configure.in	Sun Jul 21 12:37:43 2013 -0700
@@ -1173,6 +1173,9 @@
             SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
             EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
 
+            # Needed so SDL applications can include SDL_syswm.h
+            SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
+
             if test x$enable_x11_shared = xmaybe; then
                 enable_x11_shared=$x11_symbols_private
             fi