summaryrefslogtreecommitdiffstats
path: root/sca-cpp
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-05-31 17:42:16 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-05-31 17:42:16 +0000
commit76cf55f98aad01d77a19330855b1b7712ad7a031 (patch)
tree20f8300221b496764ad2452436d17f12435d0e29 /sca-cpp
parentb85f56b7c32f101ad41255bde647bbdcd12dd796 (diff)
Build the expat XML parser separately instead of building it as part of libstrophe.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@949816 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp')
-rw-r--r--sca-cpp/trunk/INSTALL8
-rw-r--r--sca-cpp/trunk/components/chat/Makefile.am6
-rw-r--r--sca-cpp/trunk/configure.ac2
-rwxr-xr-xsca-cpp/trunk/ubuntu/ubuntu-bin-image4
-rwxr-xr-xsca-cpp/trunk/ubuntu/ubuntu-install26
5 files changed, 21 insertions, 25 deletions
diff --git a/sca-cpp/trunk/INSTALL b/sca-cpp/trunk/INSTALL
index 0fa2fb6c9e..df4714ec9e 100644
--- a/sca-cpp/trunk/INSTALL
+++ b/sca-cpp/trunk/INSTALL
@@ -94,16 +94,16 @@ a Java 5+ JDK (http://openjdk.java.net/, http://harmony.apache.org/)
XMPP Chat:
Apache Vysper 0.5 (http://mina.apache.org/)
-Libstrophe (http://code.stanziq.com/cgit/strophe/libstrophe/)
-build it from source at git://code.stanziq.com//libstrophe
-requires libcheck-0.9.6
+Libstrophe (http://code.stanziq.com/strophe/)
+build it from source at git://github.com/jsdelfino/libstrophe.git
+requires Expat 2.0.1 (http://sourceforge.net/projects/expat/)
SQL Database:
postgresql-9.0 (http://www.postgresql.org/)
Logging:
-Apache Thrift 0.2.0 (http://incubator.apache.org/thrift/)
Facebook Scribe 2.2 (http://github.com/facebook/scribe/downloads)
+requires Apache Thrift 0.2.0 (http://incubator.apache.org/thrift/)
Cloud deployment:
Apache Libcloud 0.3.1 (http://incubator.apache.org/libcloud/)
diff --git a/sca-cpp/trunk/components/chat/Makefile.am b/sca-cpp/trunk/components/chat/Makefile.am
index c82e94c371..5e48f74065 100644
--- a/sca-cpp/trunk/components/chat/Makefile.am
+++ b/sca-cpp/trunk/components/chat/Makefile.am
@@ -32,16 +32,16 @@ EXTRA_DIST = chat.composite *.scm
comp_LTLIBRARIES = libchatter.la
libchatter_la_SOURCES = chatter.cpp
-libchatter_la_LDFLAGS = -L${LIBSTROPHE_LIB} -R${LIBSTROPHE_LIB} -lstrophe -lexpat -lssl -lresolv
+libchatter_la_LDFLAGS = -L${LIBSTROPHE_LIB} -R${LIBSTROPHE_LIB} -lstrophe -lssl -lresolv
noinst_DATA = libchatter.so
libchatter.so:
ln -s .libs/libchatter.so
xmpp_test_SOURCES = xmpp-test.cpp
-xmpp_test_LDFLAGS = -L${LIBSTROPHE_LIB} -R${LIBSTROPHE_LIB} -lstrophe -lexpat -lssl -lresolv
+xmpp_test_LDFLAGS = -L${LIBSTROPHE_LIB} -R${LIBSTROPHE_LIB} -lstrophe -lssl -lresolv
client_test_SOURCES = client-test.cpp
-client_test_LDFLAGS = -lxml2 -lcurl -lmozjs -L${LIBSTROPHE_LIB} -R${LIBSTROPHE_LIB} -lstrophe -lexpat -lssl -lresolv
+client_test_LDFLAGS = -lxml2 -lcurl -lmozjs -L${LIBSTROPHE_LIB} -R${LIBSTROPHE_LIB} -lstrophe -lssl -lresolv
noinst_PROGRAMS = xmpp-test client-test
dist_noinst_SCRIPTS = server-test
diff --git a/sca-cpp/trunk/configure.ac b/sca-cpp/trunk/configure.ac
index 25d10efd78..805c08c993 100644
--- a/sca-cpp/trunk/configure.ac
+++ b/sca-cpp/trunk/configure.ac
@@ -671,7 +671,7 @@ if test "${want_chat}" = "true"; then
AC_MSG_ERROR([--enable-chat requires multi-threading, use --enable-threads])
fi
LIBS="-L${LIBSTROPHE_LIB} ${default_LIBS}"
- AC_CHECK_LIB([strophe], [xmpp_initialize], [], [AC_MSG_ERROR([couldn't find a suitable libstrophe, use --with-libstrophe=PATH])], [-lexpat -lssl -lresolv])
+ AC_CHECK_LIB([strophe], [xmpp_initialize], [], [AC_MSG_ERROR([couldn't find a suitable libstrophe, use --with-libstrophe=PATH])], [-lssl -lresolv])
AM_CONDITIONAL([WANT_CHAT], true)
AC_DEFINE([WANT_CHAT], 1, [enable Chat component])
diff --git a/sca-cpp/trunk/ubuntu/ubuntu-bin-image b/sca-cpp/trunk/ubuntu/ubuntu-bin-image
index c3ef606ed0..4ba1a2fec4 100755
--- a/sca-cpp/trunk/ubuntu/ubuntu-bin-image
+++ b/sca-cpp/trunk/ubuntu/ubuntu-bin-image
@@ -58,10 +58,6 @@ sudo apt-get -y install libboost-dev libboost-program-options-dev libboost-files
if [ "$?" != "0" ]; then
exit $?
fi
-sudo apt-get -y install check
-if [ "$?" != "0" ]; then
- exit $?
-fi
sudo apt-get -y install openjdk-6-jdk
if [ "$?" != "0" ]; then
exit $?
diff --git a/sca-cpp/trunk/ubuntu/ubuntu-install b/sca-cpp/trunk/ubuntu/ubuntu-install
index fa4d7e598b..1b71610367 100755
--- a/sca-cpp/trunk/ubuntu/ubuntu-install
+++ b/sca-cpp/trunk/ubuntu/ubuntu-install
@@ -168,28 +168,28 @@ if [ "$?" != "0" ]; then
fi
cd $build
-# Build Libstrophe
-sudo apt-get -y install check
+# Build Libexpat
+wget http://sourceforge.net/projects/expat/files/expat/2.0.1/expat-2.0.1.tar.gz/download
+tar xzf expat-2.0.1.tar.gz
+cd expat-2.0.1
+./configure --prefix=$build/expat-2.0.1-bin
+make
+make install
if [ "$?" != "0" ]; then
exit $?
fi
-git clone git://code.stanziq.com/libstrophe
+cd $build
+
+# Build Libstrophe
+git clone git://github.com/jsdelfino/libstrophe.git
cd libstrophe
-git submodule init
-git submodule update
-aclocal
-automake --add-missing --foreign --copy
-autoconf
-./configure --prefix=$build/libstrophe-bin
+./bootstrap.sh
+./configure --prefix=$build/libstrophe-bin --with-expat=$build/expat-2.0.1-bin
make
make install
if [ "$?" != "0" ]; then
exit $?
fi
-cd $build
-mkdir -p $build/libstrophe-bin/include
-cp $build/libstrophe/*.h $build/libstrophe-bin/include
-cp $build/libstrophe/src/*.h $build/libstrophe-bin/include
# Install Apache Vysper
sudo apt-get -y install openjdk-6-jdk