[PATCH 1/3] test: Only build hashtable tests if building X-Resource extension

Keith Packard keithp at keithp.com
Wed Sep 10 16:00:00 PDT 2014


The hash table functions are only included in the server when the
X-Resource extension is built, so don't try to build and test them
unless the X-Resource extension is being built.

Signed-off-by: Keith Packard <keithp at keithp.com>
---
 test/Makefile.am | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test/Makefile.am b/test/Makefile.am
index 32edc7a..8344276 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -5,7 +5,10 @@ if XORG
 # Tests that require at least some DDX functions in order to fully link
 # For now, requires xf86 ddx, could be adjusted to use another
 SUBDIRS += xi2
-noinst_PROGRAMS += xkb input xtest misc fixes xfree86 hashtabletest os signal-logging touch
+noinst_PROGRAMS += xkb input xtest misc fixes xfree86 os signal-logging touch
+if RES
+noinst_PROGRAMS += hashtabletest
+endif
 endif
 check_LTLIBRARIES = libxservertest.la
 
-- 
2.0.1



More information about the xorg-devel mailing list