scons: Add X11 include path if X11 is available.
authorVinson Lee <vlee@freedesktop.org>
Mon, 19 Jan 2015 20:54:44 +0000 (12:54 -0800)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 22 Jan 2015 21:29:43 +0000 (21:29 +0000)
commit9db7b12cb283b915865d99d2fd3356af0662a18e
tree1444aaa572df9828a1480d752e56e7bc8e73b93d
parentfea35bbf6de48c3995032ee40f1e82094111eef5
scons: Add X11 include path if X11 is available.

Mac OS X XQuartz places X11 headers at /opt/X11/include.

This patch fixes this Mac OS X SCons build error.

  Compiling src/gallium/state_trackers/glx/xlib/glx_api.c ...
In file included from src/gallium/state_trackers/glx/xlib/glx_api.c:34:
include/GL/glx.h:30:10: fatal error: 'X11/Xlib.h' file not found
         ^

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
scons/gallium.py