summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2009-11-30 08:36:59 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2009-11-30 08:36:59 +0000
commit0b9d0491fe4fb19c8d2f269c805d0b022ca157f4 (patch)
tree4c7a7cc35ad96f6a412eca9a1089ed0120ad2039
parentff124040623879bc48a0ba5cf06a841642adef53 (diff)
More build improvements, added a configure option to turn on debugging and profiling, fixed compile and link options to support multithreading where applicable, moved non-building tools to contrib, and adjusted the top readmes and build instructions.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@885350 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--sca-cpp/trunk/AUTHORS3
-rw-r--r--sca-cpp/trunk/ChangeLog12
-rw-r--r--sca-cpp/trunk/INSTALL15
-rwxr-xr-xsca-cpp/trunk/LICENSE26
-rw-r--r--sca-cpp/trunk/NEWS13
-rw-r--r--sca-cpp/trunk/README47
-rw-r--r--sca-cpp/trunk/components/cache/Makefile.am13
-rw-r--r--sca-cpp/trunk/configure.ac26
-rw-r--r--sca-cpp/trunk/contrib/tools/Makefile.am (renamed from sca-cpp/trunk/tools/Makefile.am)0
-rw-r--r--sca-cpp/trunk/contrib/tools/TuscanyDriver/TuscanyServiceLoader.cpp (renamed from sca-cpp/trunk/tools/TuscanyDriver/TuscanyServiceLoader.cpp)0
-rw-r--r--sca-cpp/trunk/contrib/tools/TuscanyDriver/TuscanyServiceLoader.h (renamed from sca-cpp/trunk/tools/TuscanyDriver/TuscanyServiceLoader.h)0
-rw-r--r--sca-cpp/trunk/contrib/tools/TuscanyDriver/main.cpp (renamed from sca-cpp/trunk/tools/TuscanyDriver/main.cpp)0
-rw-r--r--sca-cpp/trunk/etc/git-exclude4
-rw-r--r--sca-cpp/trunk/kernel/Makefile.am8
-rw-r--r--sca-cpp/trunk/modules/atom/Makefile.am2
-rw-r--r--sca-cpp/trunk/modules/eval/Makefile.am4
-rw-r--r--sca-cpp/trunk/modules/http/Makefile.am2
-rw-r--r--sca-cpp/trunk/modules/json/Makefile.am2
-rw-r--r--sca-cpp/trunk/modules/scdl/Makefile.am2
-rw-r--r--sca-cpp/trunk/modules/server/Makefile.am13
-rw-r--r--sca-cpp/trunk/test/store-function/Makefile.am2
-rw-r--r--sca-cpp/trunk/test/store-object/Makefile.am2
-rw-r--r--sca-cpp/trunk/test/store-script/Makefile.am4
23 files changed, 162 insertions, 38 deletions
diff --git a/sca-cpp/trunk/AUTHORS b/sca-cpp/trunk/AUTHORS
index 8bb2a95d64..b06da1bf3a 100644
--- a/sca-cpp/trunk/AUTHORS
+++ b/sca-cpp/trunk/AUTHORS
@@ -1,2 +1,5 @@
+Apache Tuscany SCA Runtime
+==========================
+
The Apache Software Foundation (http://www.apache.org/)
diff --git a/sca-cpp/trunk/ChangeLog b/sca-cpp/trunk/ChangeLog
index e69de29bb2..a4151dc22a 100644
--- a/sca-cpp/trunk/ChangeLog
+++ b/sca-cpp/trunk/ChangeLog
@@ -0,0 +1,12 @@
+Apache Tuscany SCA Runtime
+==========================
+
+For a log of all changes see the Tuscany commits mailing list:
+commits@tuscany.apache.org
+
+Archives:
+http://www.mail-archive.com/commits@tuscany.apache.org
+
+To subscribe send an email to:
+commits-subscribe@tuscany.apache.org
+
diff --git a/sca-cpp/trunk/INSTALL b/sca-cpp/trunk/INSTALL
index c183bd97a1..5d9239d1ff 100644
--- a/sca-cpp/trunk/INSTALL
+++ b/sca-cpp/trunk/INSTALL
@@ -10,7 +10,10 @@ HTTP server and APR
httpd-2.2-13
libapr-1-0.3.8
libaprutil-1-0.3.9
-(the easiest is to build httpd using configure --with-included-apr)
+
+Recommended httpd configure options:
+--with-included-apr to build httpd with the included APR distribution,
+--with-mpm=worker to run the Tuscany httpd modules in multiple threads.
XML
libxml2-2.7.5
@@ -19,11 +22,14 @@ JSON
SpiderMonkey libmozjs
(included in xulrunner-1.9.1.5)
-To configure the build do this:
+To configure the Tuscany build do this:
./autogen.sh
./configure --prefix=<install dir>
-To configure where to find dependencies, see:
+To turn on debugging, profiling and strict warning compile options:
+./configure --enable-maintainer-mode
+
+To configure where to find dependencies, see the configure help:
./configure --help
To build the runtime, do this:
@@ -45,6 +51,3 @@ make dist
To build a binary distribution, do this:
make bindist
-Layout
-======
-
diff --git a/sca-cpp/trunk/LICENSE b/sca-cpp/trunk/LICENSE
index f433b1a53f..6b0b1270ff 100755
--- a/sca-cpp/trunk/LICENSE
+++ b/sca-cpp/trunk/LICENSE
@@ -175,3 +175,29 @@
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
diff --git a/sca-cpp/trunk/NEWS b/sca-cpp/trunk/NEWS
index e69de29bb2..dea502fcae 100644
--- a/sca-cpp/trunk/NEWS
+++ b/sca-cpp/trunk/NEWS
@@ -0,0 +1,13 @@
+Apache Tuscany SCA Runtime
+==========================
+
+For any news see the Tuscany development mailing list:
+dev@tuscany.apache.org
+
+Archives:
+http://www.mail-archive.com/dev@tuscany.apache.org
+http://marc.info/?l=tuscany-dev
+
+To subscribe send an email to:
+dev-subscribe@tuscany.apache.org
+
diff --git a/sca-cpp/trunk/README b/sca-cpp/trunk/README
index 3bc9272d49..dc449f9c5d 100644
--- a/sca-cpp/trunk/README
+++ b/sca-cpp/trunk/README
@@ -1,8 +1,8 @@
Apache Tuscany SCA Runtime
==========================
-Getting the code
-================
+Getting the source code
+=======================
To checkout the source code with commit access, do this:
git svn init -s https://svn.apache.org/repos/asf/tuscany/sca-cpp tuscany-sca-cpp
@@ -19,16 +19,55 @@ or
svn checkout http://svn.apache.org/repos/asf/tuscany/sca-cpp tuscany-sca-cpp
+Layout
+======
+
+Here's a rough guide to the Tuscany SCA source tree:
+
+ /
+ |-- trunk Master development branch
+ | |
+ | |-- kernel SCA runtime kernel
+ | |
+ | |-- modules Modules that plug into the runtime
+ | | |-- atom AtomPub encoding support
+ | | |-- json JSON-RPC encoding support
+ | | |-- http HTTP protocol support
+ | | |-- eval Scheme script evaluator
+ | | |-- server HTTPD server integration
+ | |
+ | |-- components Useful SCA components
+ | | |-- cache Memcached-based cache component
+ | | |-- store Persistent store component
+ | |
+ | |-- test Integration tests
+ | |
+ | |-- samples Sample Applications
+ | |
+ | |-- contrib Various contributions to the project
+ |
+ |-- branches Topic and release branches
+ |
+ |-- tags Release tags
+
+
+Building
+========
+
+See the INSTALL file.
+
+
Contributing to the project
===========================
-To contribute to the project or report issues see the mailing list:
+To contribute to the project or report issues see the Tuscany development
+mailing list:
dev@tuscany.apache.org
Archives:
http://www.mail-archive.com/dev@tuscany.apache.org
http://marc.info/?l=tuscany-dev
-To subscribe:
+To subscribe send an email to:
dev-subscribe@tuscany.apache.org
diff --git a/sca-cpp/trunk/components/cache/Makefile.am b/sca-cpp/trunk/components/cache/Makefile.am
index d1a589bb52..22410eb611 100644
--- a/sca-cpp/trunk/components/cache/Makefile.am
+++ b/sca-cpp/trunk/components/cache/Makefile.am
@@ -15,17 +15,20 @@
# specific language governing permissions and limitations
# under the License.
-noinst_PROGRAMS = mcache-test
+noinst_PROGRAMS = mcache-test mcache-client-test
-INCLUDES = -I. -I$(top_builddir)/kernel -I${LIBXML2_INCLUDE} -I${APR_INCLUDE}
+INCLUDES = -I. -I$(top_builddir)/kernel -I${LIBXML2_INCLUDE} -I${APR_INCLUDE} -I${JS_INCLUDE} -I${CURL_INCLUDE}
compdir=$(prefix)/components/cache
comp_LTLIBRARIES = libmcache.la
libmcache_la_SOURCES = mcache.cpp
-libmcache_la_LIBADD = -lpthread -L${APR_LIB} -lapr-1 -laprutil-1
+libmcache_la_LIBADD = -L${APR_LIB} -lapr-1 -laprutil-1
mcache_test_SOURCES = mcache-test.cpp
-mcache_test_LDADD = -lpthread -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1
+mcache_test_LDADD = -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1
-TESTS = memcached-test
+mcache_client_test_SOURCES = mcache-client-test.cpp
+mcache_client_test_LDADD = -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1 -L${CURL_LIB} -lcurl -L${JS_LIB} -lmozjs
+
+TESTS = memcached-test memcached-server-test
diff --git a/sca-cpp/trunk/configure.ac b/sca-cpp/trunk/configure.ac
index 32b7e055fc..ada22c92e7 100644
--- a/sca-cpp/trunk/configure.ac
+++ b/sca-cpp/trunk/configure.ac
@@ -158,7 +158,25 @@ AC_MSG_NOTICE([checking for library functions])
AC_CHECK_FUNCS([gettimeofday select])
# Configure GCC C++ compile options
-AC_SUBST([CXXFLAGS], ["${CXXFLAGS} -D_DEBUG -O0 -g3 -Wall -std=c++0x -fmessage-length=0"])
+# Configure debugging, profiling and compile-time warnings
+AC_MSG_CHECKING([whether to compile for debugging and profiling])
+AC_ARG_ENABLE(maintainer-mode, [AS_HELP_STRING([--enable-maintainer-mode], [compile for debugging and profiling [default=no]])],
+[ case "${enableval}" in
+ no)
+ AC_MSG_RESULT(no)
+ ;;
+ *)
+ AC_MSG_RESULT(yes)
+ want_maintainer_mode=true
+ ;;
+ esac ],
+[ AC_MSG_RESULT(no)])
+if test "$want_maintainer_mode" = "true"; then
+ AC_SUBST([CXXFLAGS], ["-D_DEBUG -O0 -g3 -pg -Wall -Wextra -Wno-ignored-qualifiers -Winit-self -Wmissing-include-dirs -Wcast-qual -Wcast-align -Wwrite-strings -Wpointer-arith -Wconversion -Waddress -Wlogical-op -Wredundant-decls -std=c++0x -fmessage-length=0"])
+ AC_SUBST([LDFLAGS], ["${LDFLAGS} -pg"])
+else
+ AC_SUBST([CXXFLAGS], ["-O3 -std=c++0x -fmessage-length=0"])
+fi
# Configure exuberant ctags
TAGSFILE="`pwd`/tags"
@@ -166,7 +184,7 @@ AC_SUBST([CTAGSFLAGS], ["${CTAGSFLAGS} --c++-kinds=+p --fields=+iaS --extra=+q -
# Configure TUSCANY_SCACPP
TUSCANY_SCACPP=`echo "$TUSCANY_SCACPP"`
-if test "x$TUSCANY_SCACPP" = "x"; then
+if test "$TUSCANY_SCACPP" = ""; then
SCAPWD=`pwd`
AC_SUBST([TUSCANY_SCACPP], ["$SCAPWD"])
fi
@@ -181,14 +199,14 @@ AC_ARG_ENABLE(doxygen, [AS_HELP_STRING([--enable-doxygen], [build Doxygen docume
*)
AC_MSG_RESULT(yes)
AC_PATH_PROG(DOXYGEN, doxygen, , $PATH)
- if test x$DOXYGEN = x; then
+ if test "$DOXYGEN" = ""; then
AC_MSG_ERROR([could not find doxygen])
fi
want_doxygen=true
;;
esac ],
[ AC_MSG_RESULT(no)])
-AM_CONDITIONAL([WANT_DOXYGEN], [test x$want_doxygen = xtrue])
+AM_CONDITIONAL([WANT_DOXYGEN], [test "$want_doxygen" = "true"])
AC_CONFIG_FILES([Makefile
kernel/Makefile
diff --git a/sca-cpp/trunk/tools/Makefile.am b/sca-cpp/trunk/contrib/tools/Makefile.am
index de5c2d1b1e..de5c2d1b1e 100644
--- a/sca-cpp/trunk/tools/Makefile.am
+++ b/sca-cpp/trunk/contrib/tools/Makefile.am
diff --git a/sca-cpp/trunk/tools/TuscanyDriver/TuscanyServiceLoader.cpp b/sca-cpp/trunk/contrib/tools/TuscanyDriver/TuscanyServiceLoader.cpp
index 2abdc16c28..2abdc16c28 100644
--- a/sca-cpp/trunk/tools/TuscanyDriver/TuscanyServiceLoader.cpp
+++ b/sca-cpp/trunk/contrib/tools/TuscanyDriver/TuscanyServiceLoader.cpp
diff --git a/sca-cpp/trunk/tools/TuscanyDriver/TuscanyServiceLoader.h b/sca-cpp/trunk/contrib/tools/TuscanyDriver/TuscanyServiceLoader.h
index de35c38119..de35c38119 100644
--- a/sca-cpp/trunk/tools/TuscanyDriver/TuscanyServiceLoader.h
+++ b/sca-cpp/trunk/contrib/tools/TuscanyDriver/TuscanyServiceLoader.h
diff --git a/sca-cpp/trunk/tools/TuscanyDriver/main.cpp b/sca-cpp/trunk/contrib/tools/TuscanyDriver/main.cpp
index 7fdde27177..7fdde27177 100644
--- a/sca-cpp/trunk/tools/TuscanyDriver/main.cpp
+++ b/sca-cpp/trunk/contrib/tools/TuscanyDriver/main.cpp
diff --git a/sca-cpp/trunk/etc/git-exclude b/sca-cpp/trunk/etc/git-exclude
index b9baef8244..c964ee932c 100644
--- a/sca-cpp/trunk/etc/git-exclude
+++ b/sca-cpp/trunk/etc/git-exclude
@@ -60,9 +60,6 @@ tags
doxygen
# Specific ignores
-sca/runtime/extensions/cpp/tools/scagen/docs/
-account_client
-calculator_client
kernel-test
xsd-test
atom-test
@@ -72,6 +69,7 @@ json-test
cache-test
client-test
mcache-test
+mcache-client-test
curl-test
scdl-test
store-function-test
diff --git a/sca-cpp/trunk/kernel/Makefile.am b/sca-cpp/trunk/kernel/Makefile.am
index 1a9d5c8533..bfaeb2ce9b 100644
--- a/sca-cpp/trunk/kernel/Makefile.am
+++ b/sca-cpp/trunk/kernel/Makefile.am
@@ -26,16 +26,18 @@ include_HEADERS = *.hpp
INCLUDES = -I. -I$(top_builddir)/kernel -I${LIBXML2_INCLUDE} -I${APR_INCLUDE}
kernel_test_SOURCES = kernel-test.cpp
+kernel_test_CXXFLAGS = $(CXXFLAGS) -D_REENTRANT
kernel_test_LDADD = -lpthread -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1
libdynlib_test_la_SOURCES = dynlib-test.cpp
-libdynlib_test_la_LIBADD = -lpthread -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1
+libdynlib_test_la_CXXFLAGS = $(CXXFLAGS) -D_REENTRANT
+libdynlib_test_la_LIBADD = -lpthread -L${APR_LIB} -lapr-1 -laprutil-1
cache_test_SOURCES = cache-test.cpp
-cache_test_LDADD = -lpthread -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1
+cache_test_LDADD = -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1
xsd_test_SOURCES = xsd-test.cpp
-xsd_test_LDADD = -lpthread -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1
+xsd_test_LDADD = -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1
TESTS = kernel-test diskcache-test
diff --git a/sca-cpp/trunk/modules/atom/Makefile.am b/sca-cpp/trunk/modules/atom/Makefile.am
index 2e4eb4b89f..fa411b11a0 100644
--- a/sca-cpp/trunk/modules/atom/Makefile.am
+++ b/sca-cpp/trunk/modules/atom/Makefile.am
@@ -20,7 +20,7 @@ noinst_PROGRAMS = atom-test
INCLUDES = -I. -I$(top_builddir)/kernel -I${LIBXML2_INCLUDE} -I${APR_INCLUDE}
atom_test_SOURCES = atom-test.cpp
-atom_test_LDADD = -lpthread -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1
+atom_test_LDADD = -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1
TESTS = atom-test
diff --git a/sca-cpp/trunk/modules/eval/Makefile.am b/sca-cpp/trunk/modules/eval/Makefile.am
index b6b85c6965..ecf2a6e332 100644
--- a/sca-cpp/trunk/modules/eval/Makefile.am
+++ b/sca-cpp/trunk/modules/eval/Makefile.am
@@ -23,10 +23,10 @@ nobase_data_DATA = *.xsd
INCLUDES = -I. -I$(top_builddir)/kernel -I${LIBXML2_INCLUDE} -I${APR_INCLUDE}
eval_test_SOURCES = eval-test.cpp
-eval_test_LDADD = -lpthread -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1
+eval_test_LDADD = -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1
eval_shell_SOURCES = eval-shell.cpp
-eval_shell_LDADD = -lpthread -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1
+eval_shell_LDADD = -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1
TESTS = eval-test
diff --git a/sca-cpp/trunk/modules/http/Makefile.am b/sca-cpp/trunk/modules/http/Makefile.am
index ffc7b58599..2f38513564 100644
--- a/sca-cpp/trunk/modules/http/Makefile.am
+++ b/sca-cpp/trunk/modules/http/Makefile.am
@@ -20,6 +20,6 @@ noinst_PROGRAMS = curl-test
INCLUDES = -I. -I$(top_builddir)/kernel -I${LIBXML2_INCLUDE} -I${HTTPD_INCLUDE} -I${APR_INCLUDE} -I${JS_INCLUDE} -I${CURL_INCLUDE}
curl_test_SOURCES = curl-test.cpp
-curl_test_LDADD = -lpthread -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1 -L${CURL_LIB} -lcurl -L${JS_LIB} -lmozjs
+curl_test_LDADD = -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1 -L${CURL_LIB} -lcurl -L${JS_LIB} -lmozjs
TESTS = httpd-test http-test
diff --git a/sca-cpp/trunk/modules/json/Makefile.am b/sca-cpp/trunk/modules/json/Makefile.am
index 57f8b76602..c200060e56 100644
--- a/sca-cpp/trunk/modules/json/Makefile.am
+++ b/sca-cpp/trunk/modules/json/Makefile.am
@@ -20,7 +20,7 @@ noinst_PROGRAMS = json-test
INCLUDES = -I. -I$(top_builddir)/kernel -I${LIBXML2_INCLUDE} -I${APR_INCLUDE} -I${JS_INCLUDE}
json_test_SOURCES = json-test.cpp
-json_test_LDADD = -lpthread -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1 -L${JS_LIB} -lmozjs
+json_test_LDADD = -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1 -L${JS_LIB} -lmozjs
TESTS = json-test
diff --git a/sca-cpp/trunk/modules/scdl/Makefile.am b/sca-cpp/trunk/modules/scdl/Makefile.am
index e4b16a8822..a43b2a721e 100644
--- a/sca-cpp/trunk/modules/scdl/Makefile.am
+++ b/sca-cpp/trunk/modules/scdl/Makefile.am
@@ -20,7 +20,7 @@ noinst_PROGRAMS = scdl-test
INCLUDES = -I. -I$(top_builddir)/kernel -I${LIBXML2_INCLUDE} -I${APR_INCLUDE}
scdl_test_SOURCES = scdl-test.cpp
-scdl_test_LDADD = -lpthread -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1
+scdl_test_LDADD = -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1
TESTS = scdl-test
diff --git a/sca-cpp/trunk/modules/server/Makefile.am b/sca-cpp/trunk/modules/server/Makefile.am
index 204c8e4ae4..0740790ad1 100644
--- a/sca-cpp/trunk/modules/server/Makefile.am
+++ b/sca-cpp/trunk/modules/server/Makefile.am
@@ -23,14 +23,21 @@ lib_LTLIBRARIES = libmod_tuscany_eval.la libmod_tuscany_wiring.la
INCLUDES = -I. -I$(top_builddir)/kernel -I${LIBXML2_INCLUDE} -I${HTTPD_INCLUDE} -I${APR_INCLUDE} -I${JS_INCLUDE} -I${CURL_INCLUDE}
libmod_tuscany_eval_la_SOURCES = mod-eval.cpp
+libmod_tuscany_eval_la_CXXFLAGS = $(CXXFLAGS) -D_REENTRANT
libmod_tuscany_eval_la_LIBADD = -lpthread -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1 -L${CURL_LIB} -lcurl -L${JS_LIB} -lmozjs
libmod_tuscany_wiring_la_SOURCES = mod-wiring.cpp
+libmod_tuscany_wiring_la_CXXFLAGS = $(CXXFLAGS) -D_REENTRANT
libmod_tuscany_wiring_la_LIBADD = -lpthread -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1 -L${CURL_LIB} -lcurl -L${JS_LIB} -lmozjs
-client_test_SOURCES = client-test.cpp
-client_test_LDADD = -lpthread -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1 -L${CURL_LIB} -lcurl -L${JS_LIB} -lmozjs
+testdir=$(prefix)/test
+test_LTLIBRARIES = libimpl-test.la
-TESTS = httpd-test http-test wiring-test
+libimpl_test_la_SOURCES = impl-test.cpp
+libimpl_test_la_CXXFLAGS = $(CXXFLAGS) -D_REENTRANT
+libimpl_test_la_LIBADD = -lpthread -L${APR_LIB} -lapr-1 -laprutil-1
+client_test_SOURCES = client-test.cpp
+client_test_LDADD = -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1 -L${CURL_LIB} -lcurl -L${JS_LIB} -lmozjs
+TESTS = httpd-test server-test wiring-test
diff --git a/sca-cpp/trunk/test/store-function/Makefile.am b/sca-cpp/trunk/test/store-function/Makefile.am
index 1628ffb624..7645db2273 100644
--- a/sca-cpp/trunk/test/store-function/Makefile.am
+++ b/sca-cpp/trunk/test/store-function/Makefile.am
@@ -22,7 +22,7 @@ noinst_HEADERS = *.hpp
INCLUDES = -I. -I$(top_builddir)/kernel -I${LIBXML2_INCLUDE} -I${APR_INCLUDE}
store_function_test_SOURCES = store-function-test.cpp
-store_function_test_LDADD = -lpthread -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1
+store_function_test_LDADD = -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1
TESTS = store-function-test
diff --git a/sca-cpp/trunk/test/store-object/Makefile.am b/sca-cpp/trunk/test/store-object/Makefile.am
index 0ff35210d4..83b8bc7d4e 100644
--- a/sca-cpp/trunk/test/store-object/Makefile.am
+++ b/sca-cpp/trunk/test/store-object/Makefile.am
@@ -22,7 +22,7 @@ noinst_HEADERS = *.hpp
INCLUDES = -I. -I$(top_builddir)/kernel -I${LIBXML2_INCLUDE} -I${APR_INCLUDE}
store_object_test_SOURCES = store-object-test.cpp
-store_object_test_LDADD = -lpthread -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1
+store_object_test_LDADD = -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1
TESTS = store-object-test
diff --git a/sca-cpp/trunk/test/store-script/Makefile.am b/sca-cpp/trunk/test/store-script/Makefile.am
index 9795d16a2b..7e8413ba91 100644
--- a/sca-cpp/trunk/test/store-script/Makefile.am
+++ b/sca-cpp/trunk/test/store-script/Makefile.am
@@ -20,7 +20,7 @@ noinst_PROGRAMS = store-script-test
INCLUDES = -I. -I$(top_builddir)/kernel -I$(top_builddir)/modules/eval -I${LIBXML2_INCLUDE} -I${APR_INCLUDE} -I${JS_INCLUDE}
store_script_test_SOURCES = store-script-test.cpp
-store_script_test_LDADD = -lpthread -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1 -L${JS_LIB} -lmozjs
+store_script_test_LDADD = -L${LIBXML2_LIB} -lxml2 -L${APR_LIB} -lapr-1 -laprutil-1 -L${JS_LIB} -lmozjs
-TESTS = store-script-test store-http-test
+TESTS = store-script-test store-composite-test