Index: trunk/psLib/test/pstap/src/Makefile.am
===================================================================
--- trunk/psLib/test/pstap/src/Makefile.am	(revision 8731)
+++ trunk/psLib/test/pstap/src/Makefile.am	(revision 8841)
@@ -5,6 +5,12 @@
 	$(PSLIB_LIBS)
 
+TEST_LTLIBS = libpstap.la
+libpstap_la_SOURCES = pstap.c
 noinst_HEADERS = pstap.h
-check_LTLIBRARIES = libpstap.la
 
-libpstap_la_SOURCES = pstap.c
+if BUILD_TESTS
+lib_LTLIBRARIES = $(TEST_LTLIBS)
+else
+check_LTLIBRARIES = $(TEST_LTLIBS)
+endif
+
