Fix symbol issue when compiling internal tests.
authorBrian Aker <brian@tangent.org>
Mon, 19 Nov 2012 04:24:48 +0000 (23:24 -0500)
committerBrian Aker <brian@tangent.org>
Mon, 19 Nov 2012 04:24:48 +0000 (23:24 -0500)
libmemcachedinternal/include.am
tests/libmemcached-1.0/include.am

index 678eb1c85c0e861302159a3aadde61f22f9d3119..75e58d637b9a19f90048ea24d8c13ea881eebd54 100644 (file)
@@ -7,6 +7,8 @@
 # will not be exposed in the shipped .so
 noinst_LTLIBRARIES+= libmemcachedinternal/libmemcachedinternal.la
 
+if HAVE_DTRACE
+else
 libmemcachedinternal_libmemcachedinternal_la_SOURCES= $(libmemcached_libmemcached_la_SOURCES)
 libmemcachedinternal_libmemcachedinternal_la_CFLAGS= \
                                                     ${AM_CFLAGS} \
@@ -24,3 +26,4 @@ libmemcachedinternal_libmemcachedinternal_la_LDFLAGS=
 libmemcachedinternal_libmemcachedinternal_la_LDFLAGS+= @DL_LIB@
 libmemcachedinternal_libmemcachedinternal_la_LIBADD= $(libmemcached_libmemcached_la_LIBADD)
 libmemcachedinternal_libmemcachedinternal_la_DEPENDENCIES= $(libmemcached_libmemcached_la_DEPENDENCIES)
+endif
index 8d6a041702b027e15fdbd3a13b73246ed5d5f2d5..1add550fcde17e11eea86d509adc1f08c12addf8 100644 (file)
@@ -38,6 +38,8 @@ noinst_HEADERS+= tests/string.h
 noinst_HEADERS+= tests/touch.h
 noinst_HEADERS+= tests/virtual_buckets.h
 
+if HAVE_DTRACE
+else
 # Test internals
 tests_libmemcached_1_0_internals_CXXFLAGS=
 tests_libmemcached_1_0_internals_DEPENDENCIES=
@@ -61,6 +63,8 @@ noinst_PROGRAMS+= tests/libmemcached-1.0/internals
 test-internal: tests/libmemcached-1.0/internals
        @tests/testplus
 
+endif
+
 tests_libmemcached_1_0_testapp_CXXFLAGS=
 tests_libmemcached_1_0_testapp_CFLAGS=
 tests_libmemcached_1_0_testapp_SOURCES=