From 4becf676e0b09b421821b6895251549ec98d4e5d Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 3 Jan 2012 11:35:59 -0800 Subject: glx: More hacking around versions of XCB that lack GLX_ARB_create_context support Detect whether a new enough version of XCB is installed at configure time. If it is not, don't enable the extension and don't build the unit tests. v2: Move the AM_CONDIATION outside the case-statement so that it is invoked even for non-GLX builds. This prevents build failures with osmesa, for example. Signed-off-by: Ian Romanick Reviewed-by: Kenneth Graunke Tested-by: Robert Hooker --- tests/glx/Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/glx/Makefile.am b/tests/glx/Makefile.am index 0b061176e1a..cdebf5d0cb1 100644 --- a/tests/glx/Makefile.am +++ b/tests/glx/Makefile.am @@ -4,6 +4,7 @@ AM_CXXFLAGS = -I$(top_builddir)/src/glx -I$(top_builddir)/src/mapi \ $(X11_CFLAGS) $(GTEST_CFLAGS) if HAVE_GTEST +if HAVE_XCB_GLX_CREATE_CONTEXT TESTS = glx_unittest check_PROGRAMS = glx_unittest @@ -13,4 +14,5 @@ glx_unittest_SOURCES = \ fake_glx_screen.cpp glx_unittest_LDADD = $(top_builddir)/src/glx/libglx.a $(GTEST_LIBS) -lgtest_main -endif \ No newline at end of file +endif +endif -- cgit v1.2.3