You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2009/09/06 02:14:48 UTC

svn commit: r811730 - in /tuscany/cpp: sca/ sca/runtime/core/ sca/runtime/extensions/cpp/tools/scagen/ sca/samples/ sdo/ sdo/samples/

Author: jsdelfino
Date: Sun Sep  6 00:14:47 2009
New Revision: 811730

URL: http://svn.apache.org/viewvc?rev=811730&view=rev
Log:
More fixes to the autoconf build. Fixed Samples and Distros builds.

Added:
    tuscany/cpp/sca/configure.sh
      - copied, changed from r807102, tuscany/cpp/sca/build_scanative.sh
    tuscany/cpp/sdo/configure.sh
      - copied, changed from r807102, tuscany/cpp/sdo/build_sdocpp.sh
Removed:
    tuscany/cpp/sca/build_scanative.sh
    tuscany/cpp/sdo/build_sdocpp.sh
Modified:
    tuscany/cpp/sca/GettingStarted.html
    tuscany/cpp/sca/Makefile.am
    tuscany/cpp/sca/build.sh
    tuscany/cpp/sca/builddist.sh
    tuscany/cpp/sca/configure.ac
    tuscany/cpp/sca/makebindist.sh
    tuscany/cpp/sca/runtime/core/Makefile.am
    tuscany/cpp/sca/runtime/extensions/cpp/tools/scagen/Makefile.am
    tuscany/cpp/sca/runtime/extensions/cpp/tools/scagen/build.xml
    tuscany/cpp/sca/samples/Makefile.am
    tuscany/cpp/sca/samples/build.sh
    tuscany/cpp/sca/samples/configure.ac
    tuscany/cpp/sdo/GettingStarted.html
    tuscany/cpp/sdo/Makefile.am
    tuscany/cpp/sdo/build.sh
    tuscany/cpp/sdo/builddist.sh
    tuscany/cpp/sdo/configure.ac
    tuscany/cpp/sdo/makebindist.sh
    tuscany/cpp/sdo/samples/Makefile.am
    tuscany/cpp/sdo/samples/build.sh
    tuscany/cpp/sdo/samples/configure.ac

Modified: tuscany/cpp/sca/GettingStarted.html
URL: http://svn.apache.org/viewvc/tuscany/cpp/sca/GettingStarted.html?rev=811730&r1=811729&r2=811730&view=diff
==============================================================================
--- tuscany/cpp/sca/GettingStarted.html (original)
+++ tuscany/cpp/sca/GettingStarted.html Sun Sep  6 00:14:47 2009
@@ -226,7 +226,7 @@
   --enable-restbinding    build REST binding extension [default=no]
   --enable-python         build Python component type extension [default=no]
   --enable-ruby           build Ruby component type extension [default=no]</xmp>
-                  A script, <b>build_scanative.sh</b>, is provided that will build and install SCA Native. This script will install to the 
+                  A script, <b>build.sh</b>, is provided that will build and install SCA Native. This script will install to the 
                   location specified by the TUSCANY_SCACPP environment variable if set or into a deploy directory at &lt;tuscany_sca_install_dir&gt;/deploy.
                   This script will check the environment variable settings and will build the extensions whose dependencies are set. For example if RUBY_LIB and 
                   RUBY_HOME are set configure will be called with the --enable-ruby=yes option.

Modified: tuscany/cpp/sca/Makefile.am
URL: http://svn.apache.org/viewvc/tuscany/cpp/sca/Makefile.am?rev=811730&r1=811729&r2=811730&view=diff
==============================================================================
--- tuscany/cpp/sca/Makefile.am (original)
+++ tuscany/cpp/sca/Makefile.am Sun Sep  6 00:14:47 2009
@@ -20,7 +20,7 @@
 datadir=$(prefix)
 
 data_DATA = INSTALL README LICENSE COPYING NOTICE GettingStarted.html
-EXTRA_DIST = LICENSE COPYING INSTALL README NOTICE GettingStarted.html xsd build_scanative.sh
+EXTRA_DIST = LICENSE COPYING INSTALL README NOTICE autogen.sh build.sh builddist.sh configure.sh makebindist.sh GettingStarted.html
 dist-hook:
 	rm -rf `find $(distdir)/ -type d -name .svn`
 	rm -rf `find $(distdir)/ -type d -name .deps`

Modified: tuscany/cpp/sca/build.sh
URL: http://svn.apache.org/viewvc/tuscany/cpp/sca/build.sh?rev=811730&r1=811729&r2=811730&view=diff
==============================================================================
--- tuscany/cpp/sca/build.sh (original)
+++ tuscany/cpp/sca/build.sh Sun Sep  6 00:14:47 2009
@@ -17,66 +17,6 @@
 #  specific language governing permissions and limitations
 #  under the License.
 
-TUSCANY_SCACPP_HOME=`pwd`
-
-if [ x$AXIS2C_HOME = x ]; then
-echo "AXIS2C_HOME not set. Not building Axis2C WS binding extensions"
-
-ENABLE_WS=--enable-wsbinding=no
-else
-echo "Using Axis2C installed at $AXIS2C_HOME"
-ENABLE_SCABINDING=--enable-scabinding
-ENABLE_WS=--enable-wsbinding
-fi
-
-if [ x$TUSCANY_SDOCPP = x ]; then
-export TUSCANY_SDOCPP="$TUSCANY_SCACPP_HOME/../sdo/deploy"
-fi
-echo "Using SDO installed at $TUSCANY_SDOCPP"
-
-if [ x$PYTHON_LIB = x ]; then
-echo "PYTHON_LIB not set. Python extension will not be built"
-elif [ x$PYTHON_INCLUDE = x ]; then
-echo "PYTHON_INCLUDE not set. Python extension will not be built"
-elif [ x$PYTHON_VERSION = x ]; then
-echo "PYTHON_VERSION not set. Python extension will not be built"
-else
-echo "Building PYTHON extension with Python $PYTHON_VERSION installed at $PYTHON_LIB, $PYTHON_INCLUDE"
-ENABLE_PYTHON=--enable-python
-fi
-
-if [ x$RUBY_LIB = x ]; then
-echo "RUBY_LIB not set. Ruby extension will not be built"
-elif [ x$RUBY_INCLUDE = x ]; then
-echo "RUBY_INCLUDE not set. Ruby extension will not be built"
-else
-echo "Building Ruby extension with Ruby installed at $RUBY_LIB, $RUBY_INCLUDE"
-ENABLE_RUBY=--enable-ruby
-fi
-
-if [ x$CURL_LIB = x ]; then
-echo "CURL_LIB not set. REST extension will not be built"
-elif [ x$CURL_INCLUDE = x ]; then
-echo "CURL_INCLUDE not set. REST extension will not be built"
-elif [ x$HTTPD_INCLUDE = x ]; then
-echo "HTTPD_INCLUDE not set. REST extension will not be built"
-elif [ x$APR_INCLUDE = x ]; then
-echo "APR_INCLUDE not set. REST extension will not be built"
-else
-echo "Building REST extension using HTTPD from $HTTPD_INCLUDE, APR from $APR_INCLUDE and libCURL from $CURL_LIB"
-ENABLE_REST=--enable-restbinding
-fi
-cd ${TUSCANY_SCACPP_HOME}/samples
-./autogen.sh
-
-cd $TUSCANY_SCACPP_HOME
-./autogen.sh
-
-if [ x$TUSCANY_SCACPP = x ]; then
-export TUSCANY_SCACPP="$TUSCANY_SCACPP_HOME/deploy"
-fi
-
-./configure --prefix=${TUSCANY_SCACPP} --enable-static=no  ${ENABLE_WS} ${ENABLE_SCABINDING} ${ENABLE_RUBY} ${ENABLE_PYTHON} ${ENABLE_REST}
-make
+./configure.sh
 make install
 

Modified: tuscany/cpp/sca/builddist.sh
URL: http://svn.apache.org/viewvc/tuscany/cpp/sca/builddist.sh?rev=811730&r1=811729&r2=811730&view=diff
==============================================================================
--- tuscany/cpp/sca/builddist.sh (original)
+++ tuscany/cpp/sca/builddist.sh Sun Sep  6 00:14:47 2009
@@ -18,66 +18,6 @@
 #  under the License.
 
 
-TUSCANY_SCACPP_HOME=`pwd`
-
-if [ x$AXIS2C_HOME = x ]; then
-echo "AXIS2C_HOME not set. Not building Axis2C WS binding extensions"
-
-ENABLE_WS=--enable-wsbinding=no
-else
-echo "Using Axis2C installed at $AXIS2C_HOME"
-ENABLE_SCABINDING=--enable-scabinding
-ENABLE_WS=--enable-wsbinding
-fi
-
-if [ x$TUSCANY_SDOCPP = x ]; then
-echo "TUSCANY_SDOCPP not set"
-exit;
-fi
-echo "Using SDO installed at $TUSCANY_SDOCPP"
-
-if [ x$PYTHON_LIB = x ]; then
-echo "PYTHON_LIB not set. Python extension will not be built"
-elif [ x$PYTHON_INCLUDE = x ]; then
-echo "PYTHON_INCLUDE not set. Python extension will not be built"
-elif [ x$PYTHON_VERSION = x ]; then
-echo "PYTHON_VERSION not set. Python extension will not be built"
-else
-echo "Building PYTHON extension with Python $PYTHON_VERSION installed at $PYTHON_LIB, $PYTHON_INCLUDE"
-ENABLE_PYTHON=--enable-python
-fi
-
-if [ x$RUBY_LIB = x ]; then
-echo "RUBY_LIB not set. Ruby extension will not be built"
-elif [ x$RUBY_INCLUDE = x ]; then
-echo "RUBY_INCLUDE not set. Ruby extension will not be built"
-else
-echo "Building Ruby extension with Ruby installed at $RUBY_LIB, $RUBY_INCLUDE"
-ENABLE_RUBY=--enable-ruby
-fi
-
-if [ x$CURL_LIB = x ]; then
-echo "CURL_LIB not set. REST extension will not be built"
-elif [ x$CURL_INCLUDE = x ]; then
-echo "CURL_INCLUDE not set. REST extension will not be built"
-elif [ x$HTTPD_INCLUDE = x ]; then
-echo "HTTPD_INCLUDE not set. REST extension will not be built"
-elif [ x$APR_INCLUDE = x ]; then
-echo "APR_INCLUDE not set. REST extension will not be built"
-else
-echo "Building REST extension using HTTPD from $HTTPD_INCLUDE, APR from $APR_INCLUDE and libCURL from $CURL_LIB"
-ENABLE_REST=--enable-restbinding
-fi
-
-cd ${TUSCANY_SCACPP_HOME}/samples
-./autogen.sh
-./configure --prefix=${TUSCANY_SCACPP}/samples --enable-static=no ${ENABLE_RUBY} ${ENABLE_PYTHON}
-
-cd $TUSCANY_SCACPP_HOME
-./autogen.sh
-./configure --prefix=${TUSCANY_SCACPP} --enable-static=no  ${ENABLE_WS} ${ENABLE_SCABINDING} ${ENABLE_RUBY} ${ENABLE_PYTHON} ${ENABLE_REST}
-
+./configure.sh
 make bindist
 
-
-

Modified: tuscany/cpp/sca/configure.ac
URL: http://svn.apache.org/viewvc/tuscany/cpp/sca/configure.ac?rev=811730&r1=811729&r2=811730&view=diff
==============================================================================
--- tuscany/cpp/sca/configure.ac (original)
+++ tuscany/cpp/sca/configure.ac Sun Sep  6 00:14:47 2009
@@ -18,9 +18,9 @@
 dnl run autogen.sh to generate the configure script.
 
 AC_PREREQ(2.59)
-AC_INIT(tuscany_sca_native, 1.0-incubator-M3)
+AC_INIT(tuscany-sca, 1.0-M3)
 AC_CANONICAL_SYSTEM
-AM_CONFIG_HEADER(tuscany_sca_config.h)
+AM_CONFIG_HEADER(config.h)
 AM_INIT_AUTOMAKE([tar-ustar])
 AC_PREFIX_DEFAULT(/usr/local/tuscany/sca)
 
@@ -67,6 +67,30 @@
 AC_CHECK_FUNCS([getcwd putenv strdup])
 # AC_CONFIG_SUBDIRS([samples])
 
+# Configure TUSCANY_SCACPP and TUSCANY_SDOCPP
+TUSCANY_SCACPP=`echo "$TUSCANY_SCACPP"`
+if test "x$TUSCANY_SCACPP" = "x"; then
+  SCAPWD=`pwd`
+  AC_SUBST([TUSCANY_SCACPP], ["$SCAPWD"])
+fi
+
+TUSCANY_SDOCPP=`echo "$TUSCANY_SDOCPP"`
+if test "x$TUSCANY_SDOCPP" = "x"; then
+  SCAPWD=`pwd`
+  AC_SUBST([TUSCANY_SDOCPP], ["$SCAPWD/../sdo/deploy"])
+fi
+
+# Configure LIBXML2_INCLUDE and LIBXML2_LIB
+LIBXML2_INCLUDE=`echo "$LIBXML2_INCLUDE"`
+if test "x$LIBXML2_INCLUDE" = "x"; then
+  AC_SUBST([LIBXML2_INCLUDE], ["/usr/include/libxml2"])
+fi
+
+LIBXML2_LIB=`echo "$LIBXML2_LIB"`
+if test "x$LIBXML2_LIB" = "x"; then
+  AC_SUBST([LIBXML2_LIB], ["/usr/lib"])
+fi
+
 AC_MSG_CHECKING(whether to build all component type and binding extensions)
 AC_ARG_ENABLE(all-extensions, [AS_HELP_STRING([--enable-all-extensions],[build all runtime extensions [default=no]])],
 [ case "${enableval}" in

Copied: tuscany/cpp/sca/configure.sh (from r807102, tuscany/cpp/sca/build_scanative.sh)
URL: http://svn.apache.org/viewvc/tuscany/cpp/sca/configure.sh?p2=tuscany/cpp/sca/configure.sh&p1=tuscany/cpp/sca/build_scanative.sh&r1=807102&r2=811730&rev=811730&view=diff
==============================================================================
--- tuscany/cpp/sca/build_scanative.sh (original)
+++ tuscany/cpp/sca/configure.sh Sun Sep  6 00:14:47 2009
@@ -20,58 +20,61 @@
 TUSCANY_SCACPP_HOME=`pwd`
 
 if [ x$AXIS2C_HOME = x ]; then
-echo "AXIS2C_HOME not set. Not building Axis2C WS binding extensions"
-
-ENABLE_WS=--enable-wsbinding=no
+  echo "AXIS2C_HOME not set. Not building Axis2C WS binding extensions"
+  ENABLE_WS=--enable-wsbinding=no
 else
 echo "Using Axis2C installed at $AXIS2C_HOME"
-ENABLE_SCABINDING=--enable-scabinding
-ENABLE_WS=--enable-wsbinding
+  ENABLE_SCABINDING=--enable-scabinding
+  ENABLE_WS=--enable-wsbinding
 fi
 
 if [ x$TUSCANY_SDOCPP = x ]; then
-export TUSCANY_SDOCPP="$TUSCANY_SCACPP_HOME/../sdo/deploy"
+  export TUSCANY_SDOCPP="$TUSCANY_SCACPP_HOME/../sdo/deploy"
 fi
 echo "Using SDO installed at $TUSCANY_SDOCPP"
 
 if [ x$PYTHON_LIB = x ]; then
-echo "PYTHON_LIB not set. Python extension will not be built"
+  echo "PYTHON_LIB not set. Python extension will not be built"
 elif [ x$PYTHON_INCLUDE = x ]; then
-echo "PYTHON_INCLUDE not set. Python extension will not be built"
+  echo "PYTHON_INCLUDE not set. Python extension will not be built"
 elif [ x$PYTHON_VERSION = x ]; then
-echo "PYTHON_VERSION not set. Python extension will not be built"
+  echo "PYTHON_VERSION not set. Python extension will not be built"
 else
-echo "Building PYTHON extension with Python $PYTHON_VERSION installed at $PYTHON_LIB, $PYTHON_INCLUDE"
-ENABLE_PYTHON=--enable-python
+  echo "Building PYTHON extension with Python $PYTHON_VERSION installed at $PYTHON_LIB, $PYTHON_INCLUDE"
+  ENABLE_PYTHON=--enable-python
 fi
 
 if [ x$RUBY_LIB = x ]; then
-echo "RUBY_LIB not set. Ruby extension will not be built"
+  echo "RUBY_LIB not set. Ruby extension will not be built"
 elif [ x$RUBY_INCLUDE = x ]; then
-echo "RUBY_INCLUDE not set. Ruby extension will not be built"
+  echo "RUBY_INCLUDE not set. Ruby extension will not be built"
 else
-echo "Building Ruby extension with Ruby installed at $RUBY_LIB, $RUBY_INCLUDE"
-ENABLE_RUBY=--enable-ruby
+  echo "Building Ruby extension with Ruby installed at $RUBY_LIB, $RUBY_INCLUDE"
+  ENABLE_RUBY=--enable-ruby
 fi
 
 if [ x$CURL_LIB = x ]; then
-echo "CURL_LIB not set. REST extension will not be built"
+  echo "CURL_LIB not set. REST extension will not be built"
 elif [ x$CURL_INCLUDE = x ]; then
-echo "CURL_INCLUDE not set. REST extension will not be built"
+  echo "CURL_INCLUDE not set. REST extension will not be built"
 elif [ x$HTTPD_INCLUDE = x ]; then
-echo "HTTPD_INCLUDE not set. REST extension will not be built"
+  echo "HTTPD_INCLUDE not set. REST extension will not be built"
 elif [ x$APR_INCLUDE = x ]; then
-echo "APR_INCLUDE not set. REST extension will not be built"
+  echo "APR_INCLUDE not set. REST extension will not be built"
 else
-echo "Building REST extension using HTTPD from $HTTPD_INCLUDE, APR from $APR_INCLUDE and libCURL from $CURL_LIB"
-ENABLE_REST=--enable-restbinding
+  echo "Building REST extension using HTTPD from $HTTPD_INCLUDE, APR from $APR_INCLUDE and libCURL from $CURL_LIB"
+  ENABLE_REST=--enable-restbinding
 fi
 
 if [ x$TUSCANY_SCACPP = x ]; then
-export TUSCANY_SCACPP="$TUSCANY_SCACPP_HOME/deploy"
+  export TUSCANY_SCACPP="$TUSCANY_SCACPP_HOME/deploy"
 fi
 
+./autogen.sh
 ./configure --prefix=${TUSCANY_SCACPP} --enable-static=no  ${ENABLE_WS} ${ENABLE_SCABINDING} ${ENABLE_RUBY} ${ENABLE_PYTHON} ${ENABLE_REST}
-make
-make install
 
+cd ${TUSCANY_SCACPP_HOME}/samples
+./autogen.sh
+./configure --prefix=${TUSCANY_SCACPP} --enable-static=no  ${ENABLE_RUBY} ${ENABLE_PYTHON}
+
+cd $TUSCANY_SCACPP_HOME

Modified: tuscany/cpp/sca/makebindist.sh
URL: http://svn.apache.org/viewvc/tuscany/cpp/sca/makebindist.sh?rev=811730&r1=811729&r2=811730&view=diff
==============================================================================
--- tuscany/cpp/sca/makebindist.sh (original)
+++ tuscany/cpp/sca/makebindist.sh Sun Sep  6 00:14:47 2009
@@ -19,64 +19,14 @@
 
 TUSCANY_SCACPP_HOME=`pwd`
 
-if [ x$AXIS2C_HOME = x ]; then
-echo "AXIS2C_HOME not set. Not building Axis2C WS binding extensions"
-
-ENABLE_WS=--enable-wsbinding=no
-else
-echo "Using Axis2C installed at $AXIS2C_HOME"
-ENABLE_SCABINDING=--enable-scabinding
-ENABLE_WS=--enable-wsbinding
-fi
-
 if [ x$TUSCANY_SDOCPP = x ]; then
-echo "TUSCANY_SDOCPP not set"
-exit;
-fi
-echo "Using SDO installed at $TUSCANY_SDOCPP"
-
-if [ x$PYTHON_LIB = x ]; then
-echo "PYTHON_LIB not set. Python extension will not be built"
-elif [ x$PYTHON_INCLUDE = x ]; then
-echo "PYTHON_INCLUDE not set. Python extension will not be built"
-elif [ x$PYTHON_VERSION = x ]; then
-echo "PYTHON_VERSION not set. Python extension will not be built"
-else
-echo "Building PYTHON extension with Python $PYTHON_VERSION installed at $PYTHON_LIB, $PYTHON_INCLUDE"
-ENABLE_PYTHON=--enable-python
-fi
-
-if [ x$RUBY_LIB = x ]; then
-echo "RUBY_LIB not set. Ruby extension will not be built"
-elif [ x$RUBY_INCLUDE = x ]; then
-echo "RUBY_INCLUDE not set. Ruby extension will not be built"
-else
-echo "Building Ruby extension with Ruby installed at $RUBY_LIB, $RUBY_INCLUDE"
-ENABLE_RUBY=--enable-ruby
-fi
-
-if [ x$CURL_LIB = x ]; then
-echo "CURL_LIB not set. REST extension will not be built"
-elif [ x$CURL_INCLUDE = x ]; then
-echo "CURL_INCLUDE not set. REST extension will not be built"
-elif [ x$HTTPD_INCLUDE = x ]; then
-echo "HTTPD_INCLUDE not set. REST extension will not be built"
-elif [ x$APR_INCLUDE = x ]; then
-echo "APR_INCLUDE not set. REST extension will not be built"
-else
-echo "Building REST extension using HTTPD from $HTTPD_INCLUDE, APR from $APR_INCLUDE and libCURL from $CURL_LIB"
-ENABLE_REST=--enable-restbinding
+  export TUSCANY_SDOCPP="$TUSCANY_SCACPP_HOME/../../sdo/deploy"
 fi
+./configure.sh
 
-cd $TUSCANY_SCACPP_HOME
-./configure --prefix=${TUSCANY_SCACPP_HOME}/deploy --enable-static=no  ${ENABLE_WS} ${ENABLE_SCABINDING} ${ENABLE_RUBY} ${ENABLE_PYTHON} ${ENABLE_REST}
-make
 make install
 
 cd ${TUSCANY_SCACPP_HOME}/samples
-export TUSCANY_SCACPP=${TUSCANY_SCACPP_HOME}/deploy
-./configure --prefix=${TUSCANY_SCACPP_HOME}/deploy --enable-static=no ${ENABLE_RUBY} ${ENABLE_PYTHON}
-make
 make install
 
 cd ${TUSCANY_SCACPP_HOME}/deploy

Modified: tuscany/cpp/sca/runtime/core/Makefile.am
URL: http://svn.apache.org/viewvc/tuscany/cpp/sca/runtime/core/Makefile.am?rev=811730&r1=811729&r2=811730&view=diff
==============================================================================
--- tuscany/cpp/sca/runtime/core/Makefile.am (original)
+++ tuscany/cpp/sca/runtime/core/Makefile.am Sun Sep  6 00:14:47 2009
@@ -17,3 +17,6 @@
 
 SUBDIRS = src
 nobase_data_DATA = xsd/*.*
+
+EXTRA_DIST = xsd
+

Modified: tuscany/cpp/sca/runtime/extensions/cpp/tools/scagen/Makefile.am
URL: http://svn.apache.org/viewvc/tuscany/cpp/sca/runtime/extensions/cpp/tools/scagen/Makefile.am?rev=811730&r1=811729&r2=811730&view=diff
==============================================================================
--- tuscany/cpp/sca/runtime/extensions/cpp/tools/scagen/Makefile.am (original)
+++ tuscany/cpp/sca/runtime/extensions/cpp/tools/scagen/Makefile.am Sun Sep  6 00:14:47 2009
@@ -26,11 +26,9 @@
 	touch scagen_build
 	
 clean:
+	rm -rf build
 	rm -f scagen_build
 	                    
 install-exec-hook:
 	cp build/scagen.jar $(bindir)
 	
-	 
-    
-

Modified: tuscany/cpp/sca/runtime/extensions/cpp/tools/scagen/build.xml
URL: http://svn.apache.org/viewvc/tuscany/cpp/sca/runtime/extensions/cpp/tools/scagen/build.xml?rev=811730&r1=811729&r2=811730&view=diff
==============================================================================
--- tuscany/cpp/sca/runtime/extensions/cpp/tools/scagen/build.xml (original)
+++ tuscany/cpp/sca/runtime/extensions/cpp/tools/scagen/build.xml Sun Sep  6 00:14:47 2009
@@ -19,149 +19,133 @@
 -->
 
 
-<project name="org.apache.tuscany.sca.cpp.tools" default="all" basedir="../../../../..">
+<project name="org.apache.tuscany.sca.cpp.tools" default="all" basedir=".">
 
-	<import file="${basedir}/antscripts/system.xml"/>
-	<import file="${basedir}/antscripts/compile-targets.xml"/>
-	
-	<target name="init">
-		<tstamp/>
-		<property name="this.dir"             location="${basedir}/runtime/extensions/cpp/tools/scagen"/>
-		<property name="build.result.folder"  location="${this.dir}/build" />
-		<property name="temp.folder"          location="${this.dir}/tmp" />
-		<property name="junit.jar.folder"     location="${this.dir}/lib" />
-	    <property name="java.src.dir"         location="${this.dir}/src" />
-		<property name="java.docs.dir"        location="${this.dir}/docs/api"/>
-		<property name="tool.name"            value="scagen" />
-		<property name="bin.dir"              location="${tuscanySCA.install.dir}/extensions/cpp/bin" />
-	</target>
-
-	<!-- Add "test" to the depends list below to add auto-testing to the build -->
-	<!-- a junit.jar is needed at ${junit.jar.folder}/junit.jar though         -->
-	<target name="all" depends="init,scagen.jar,tobin">
-	</target>
-	
-	<target name="install" depends="tobin"/>
-
-	<target name="test" depends="init,jars,test.jar">
-		<java classname="org.apache.tuscany.sca.cpp.tools.junit.TestAllCompositesTest">
-			<classpath>
-				<pathelement location="${build.result.folder}/test.jar" />
-				<pathelement location="${junit.jar.folder}/junit.jar" />
-				<pathelement location="${build.result.folder}/scagen.jar" />
-				<pathelement path="${java.class.path}" />
-			</classpath>
-		</java>
-	</target>
-
-	<target name="doc">
-		<javadoc packagenames="org.apache.tuscany.sca.cpp.tools.*"
-			sourcepath="${java.src.dir}"
-			defaultexcludes="yes"
-			destdir="${java.docs.dir}"
-			author="true"
-			version="true"
-			use="true"
-			windowtitle="SCA for C++ Tools">
-		  <doctitle>
-              <![CDATA[<h1>SCA for C++ Tools</h1>]]>
-          </doctitle>
-		  <bottom>
-                <![CDATA[<i>Copyright 2005 The Apache Software Foundation or its licensors, as applicable.</i>]]></bottom>
-          <group title="C++ Parser" packages="org.apache.tuscany.sca.cpp.tools.common" />
-          <group title="SCA Services Generator" packages="org.apache.tuscany.sca.cpp.tools.services" />
-          <link offline="true" href="http://java.sun.com/products/jdk/1.2/docs/api/" packagelistLoc="C:\tmp" />
-        </javadoc>
+    <target name="init">
+        <property name="build.result.folder" value="${basedir}/build" />
+        <property name="temp.folder" value="${basedir}/tmp" />
+        <property name="junit.jar.folder" value="${basedir}/lib" />
+        <property name="tool.name" value="scagen" />
+        <property name="bin.dir" value="${basedir}/../../deploy/bin" />
     </target>
 
-    <target name="jars" depends="init, scagen.jar, src.jar">
+    <!-- Add "test" to the depends list below to add auto-testing to the build -->
+    <!-- a junit.jar is needed at ${junit.jar.folder}/junit.jar though         -->
+    <target name="all" depends="init,jars,doc,scripts,zip.all">
     </target>
 
-    <target name="scripts" depends="init">
-        <mkdir dir="${build.result.folder}" />
+    <target name="test" depends="init,jars,test.jar">
+        <java classname="org.apache.tuscany.sca.cpp.tools.junit.TestAllCompositesTest">
+            <classpath>
+                <pathelement location="${build.result.folder}/test.jar" />
+                <pathelement location="${junit.jar.folder}/junit.jar" />
+                <pathelement location="${build.result.folder}/scagen.jar" />
+                <pathelement path="${java.class.path}" />
+            </classpath>
+        </java>
     </target>
 
-    <target name="src.jar" depends="init">
-        <delete dir="${temp.folder}/src.jar.bin" quiet="true"/>
-        <mkdir dir="${temp.folder}/src.jar.bin"/>
-        <!-- Copy necessary resources i.e XSL stylesheets, test input etc for the src jar too -->
-    	<copy todir="${temp.folder}/src.jar.bin" failonerror="true">
-	      <fileset dir="${java.src.dir}" />
-        </copy>
-        <mkdir dir="${build.result.folder}" />
-        <jar jarfile="${build.result.folder}/src.jar" basedir="${temp.folder}/src.jar.bin" />
-        <delete dir="${temp.folder}/test.jar.bin" />
-    </target>
 
-    <target name="test.jar" depends="init, scagen.jar" unless="test.jar" description="Create jar for unit tests: test.jar.">
-        <delete dir="${temp.folder}/test.jar.bin" />
-    	<mkdir dir="${temp.folder}/test.jar.bin" />
-    	<!-- compile the source code -->
-    	<javac srcdir="junit" destdir="${temp.folder}/test.jar.bin" failonerror="true" includeAntRuntime="no">
-	        <src path="junit/" />
-	        <classpath>
-	        	<pathelement path="${junit.jar.folder}/junit.jar" />
-	        	<pathelement path="${build.result.folder}/scagen.jar" />
-	        </classpath>
-    	</javac>
-    	<!-- Copy necessary resources i.e XSL stylesheets, test input etc -->
-    	<copy todir="${temp.folder}/test.jar.bin" failonerror="true">
-    		<fileset dir="junit/" excludes="testoutput/**" />
-    	</copy>
-    	<mkdir dir="${build.result.folder}" />
-    	<jar jarfile="${build.result.folder}/test.jar" basedir="${temp.folder}/test.jar.bin" />
-    	<delete dir="${temp.folder}/test.jar.bin" />
-    </target>
 
-	<target name="scagen.jar" depends="init" unless="scagen.jar" description="Create main jar: scagen.jar">
-		<mkdir dir="${temp.folder}/scagen.jar.bin" />
-		<!-- compile the source code -->
-		<javac srcdir="${java.src.dir}"
-			destdir="${temp.folder}/scagen.jar.bin"
-			failonerror="true"
-			includeAntRuntime="no">
-		  <src path="${java.src.dir}"/>
-		</javac>
-		<!-- Copy necessary resources i.e XSL stylesheets, test input etc -->
-		<copy todir="${temp.folder}/scagen.jar.bin" failonerror="true">
-			<fileset dir="${java.src.dir}" excludes="**/*.java" />
-		</copy>
-
-		<copy todir="${temp.folder}/scagen.jar.bin/META-INF" failonerror="true">
-			<fileset dir="${this.dir}/META-INF/" />
-		</copy>
-
-		<mkdir dir="${build.result.folder}" />
-		<jar jarfile="${build.result.folder}/scagen.jar" basedir="${temp.folder}/scagen.jar.bin">
-			<manifest>
-				<attribute name="Main-Class" value="org.apache.tuscany.sca.cpp.tools.services.Scagen" />
-			</manifest>
-		</jar>
-	</target>
-
-	<target name="tobin" depends="scagen.jar, scripts" description="move the desired stuff to bin">
-		<copy file="${build.result.folder}/scagen.jar" todir="${bin.dir}" />
-        <copy file="${this.dir}/scagen${script.ext}" todir="${bin.dir}" />
-	</target>
+    <target name="doc">
+        <javadoc packagenames="org.apache.tuscany.sca.cpp.tools.*" sourcepath="src" defaultexcludes="yes" destdir="docs/api" author="true" version="true" use="true" windowtitle="SCA for C++ Tools">
+            <doctitle>
+                <![CDATA[<h1>SCA for C++ Tools</h1>]]>
+            </doctitle>
+        <bottom>
+            <![CDATA[<i>Copyright 2005 The Apache Software Foundation or its licensors, as applicable.</i>]]></bottom>
+    <group title="C++ Parser" packages="org.apache.tuscany.sca.cpp.tools.common" />
+    <group title="SCA Services Generator" packages="org.apache.tuscany.sca.cpp.tools.services" />
+    <link offline="true" href="http://java.sun.com/products/jdk/1.2/docs/api/" packagelistLoc="C:\tmp" />
+</javadoc>
+</target>
+
+<target name="jars" depends="init, scagen.jar, src.jar">
+</target>
+
+<target name="scripts" depends="init">
+<mkdir dir="${build.result.folder}" />
+</target>
+
+
+
+<target name="src.jar" depends="init">
+<delete dir="${temp.folder}/src.jar.bin" />
+<mkdir dir="${temp.folder}/src.jar.bin" />
+<!-- Copy necessary resources i.e XSL stylesheets, test input etc
+             for the src jar too
+         -->
+<copy todir="${temp.folder}/src.jar.bin" failonerror="true">
+    <fileset dir="src/" />
+</copy>
+<mkdir dir="${build.result.folder}" />
+<jar jarfile="${build.result.folder}/src.jar" basedir="${temp.folder}/src.jar.bin" />
+<delete dir="${temp.folder}/test.jar.bin" />
+</target>
+
+<target name="test.jar" depends="init, scagen.jar" unless="test.jar" description="Create jar for unit tests: test.jar.">
+<delete dir="${temp.folder}/test.jar.bin" />
+<mkdir dir="${temp.folder}/test.jar.bin" />
+<!-- compile the source code -->
+<javac srcdir="junit" destdir="${temp.folder}/test.jar.bin" failonerror="true" includeAntRuntime="no">
+    <src path="junit/" />
+    <classpath>
+        <pathelement path="${junit.jar.folder}/junit.jar" />
+        <pathelement path="${build.result.folder}/scagen.jar" />
+    </classpath>
+</javac>
+<!-- Copy necessary resources i.e XSL stylesheets, test input etc -->
+<copy todir="${temp.folder}/test.jar.bin" failonerror="true">
+    <fileset dir="junit/" excludes="testoutput/**" />
+</copy>
+<mkdir dir="${build.result.folder}" />
+<jar jarfile="${build.result.folder}/test.jar" basedir="${temp.folder}/test.jar.bin" />
+<delete dir="${temp.folder}/test.jar.bin" />
+</target>
+
+<target name="scagen.jar" depends="init" unless="scagen.jar" description="Create main jar: scagen.jar">
+<delete dir="${temp.folder}/scagen.jar.bin" />
+<mkdir dir="${temp.folder}/scagen.jar.bin" />
+<!-- compile the source code -->
+<javac srcdir="src" destdir="${temp.folder}/scagen.jar.bin" failonerror="true" includeAntRuntime="no">
+    <src path="src/" />
+</javac>
+<!-- Copy necessary resources i.e XSL stylesheets, test input etc -->
+<copy todir="${temp.folder}/scagen.jar.bin" failonerror="true">
+    <fileset dir="src/" excludes="**/*.java" />
+</copy>
+	
+<copy todir="${temp.folder}/scagen.jar.bin/META-INF" failonerror="true">
+    <fileset dir="META-INF/"/>
+</copy>
 	
-	<target name="clean" depends="init" description="Clean of all the files created.">
-		<delete dir="${build.result.folder}" quiet="true"/>
-		<delete dir="${temp.folder}" quiet="true"/>
-		<delete dir="${java.docs.dir}" quiet="true"/>
-        <delete dir="${bin.dir}" file="scagen.jar" quiet="true"/>
-        <delete dir="${bin.dir}" file="scagen${script.ext}" quiet="true"/>
-	</target>
-
-	<target name="zip.all" depends="jars" description="Create a zip containing everything">
-		<delete file="${build.result.folder}/org.apache.tuscany.sca.cpp.tools.zip" />
-		<zip 
-			zipfile="${build.result.folder}/org.apache.tuscany.sca.cpp.tools.zip" 
-			excludes="bin/**,tmp/**,lib/**,junit/testoutput/**" 
-			basedir="." 
-			filesonly="true" 
-			whenempty="skip" 
-			update="false" />
-		<delete dir="${temp.folder}" />
-	</target>
+<mkdir dir="${build.result.folder}" />
+<jar jarfile="${build.result.folder}/scagen.jar" basedir="${temp.folder}/scagen.jar.bin">
+    <manifest>
+        <attribute name="Main-Class" value="org.apache.tuscany.sca.cpp.tools.services.Scagen" />
+    </manifest>
+</jar>
+<delete dir="${temp.folder}/scagen.jar.bin" />
+</target>
+
+<target name="tobin" depends="jars, scripts" description="move the desired stuff to bin">
+    <move file="${build.result.folder}/scagen.jar" todir="${bin.dir}" />
+</target>
+
+    
+
+<target name="clean" depends="init" description="Clean of all the files created.">
+<delete file="${build.result.folder}/test.jar" />
+<delete file="${build.result.folder}/src.jar" />
+<delete file="${build.result.folder}/scagen.jar" />
+<delete file="${build.result.folder}/org.apache.tuscany.sca.cpp.tools.zip" />
+<delete dir="${temp.folder}" />
+</target>
+
+<target name="zip.all" depends="jars" description="Create a zip containing everything">
+<delete file="${build.result.folder}/org.apache.tuscany.sca.cpp.tools.zip" />
+<zip zipfile="${build.result.folder}/org.apache.tuscany.sca.cpp.tools.zip" excludes="bin/**,tmp/**,lib/**,junit/testoutput/**" basedir="." filesonly="true" whenempty="skip" update="false" />
+<delete dir="${temp.folder}" />
+</target>
 
 </project>

Modified: tuscany/cpp/sca/samples/Makefile.am
URL: http://svn.apache.org/viewvc/tuscany/cpp/sca/samples/Makefile.am?rev=811730&r1=811729&r2=811730&view=diff
==============================================================================
--- tuscany/cpp/sca/samples/Makefile.am (original)
+++ tuscany/cpp/sca/samples/Makefile.am Sun Sep  6 00:14:47 2009
@@ -36,4 +36,5 @@
 endif
 SUBDIRS = ${CPP_SAMPLES} ${PYTHON_SAMPLES} ${RUBY_SAMPLES} ${PYTHON_RUBY_SAMPLES}
 
-EXTRA_DIST = GettingStarted.html
+EXTRA_DIST = autogen.sh build.sh GettingStarted.html
+

Modified: tuscany/cpp/sca/samples/build.sh
URL: http://svn.apache.org/viewvc/tuscany/cpp/sca/samples/build.sh?rev=811730&r1=811729&r2=811730&view=diff
==============================================================================
--- tuscany/cpp/sca/samples/build.sh (original)
+++ tuscany/cpp/sca/samples/build.sh Sun Sep  6 00:14:47 2009
@@ -17,41 +17,6 @@
 #  specific language governing permissions and limitations
 #  under the License.
 
-
-if [ x$TUSCANY_SCACPP = x ]; then
-echo "TUSCANY_SCACPP not set"
-exit;
-fi
-echo "Using SCA installed at $TUSCANY_SCACPP"
-
-if [ x$TUSCANY_SDOCPP = x ]; then
-echo "TUSCANY_SDOCPP not set"
-exit;
-fi
-echo "Using SDO installed at $TUSCANY_SDOCPP"
-
-
-if [ x$PYTHON_LIB = x ]; then
-echo "PYTHON_LIB not set. Python samples will not be built"
-elif [ x$PYTHON_INCLUDE = x ]; then
-echo "PYTHON_INCLUDE not set. Python samples will not be built"
-elif [ x$PYTHON_VERSION = x ]; then
-echo "PYTHON_VERSION not set. Python samples will not be built"
-else
-echo "Building PYTHON samples with Python $PYTHON_VERSION installed at $PYTHON_LIB, $PYTHON_INCLUDE"
-ENABLE_PYTHON=--enable-python
-fi
-
-if [ x$RUBY_LIB = x ]; then
-echo "RUBY_LIB not set. Ruby samples will not be built"
-elif [ x$RUBY_INCLUDE = x ]; then
-echo "RUBY_INCLUDE not set. Ruby samples will not be built"
-else
-echo "Building Ruby samples with Ruby installed at $RUBY_LIB, $RUBY_INCLUDE"
-ENABLE_RUBY=--enable-ruby
-fi
-
-./configure --prefix=${TUSCANY_SCACPP}/samples --enable-static=no ${ENABLE_RUBY} ${ENABLE_PYTHON}
-make
+./configure.sh
 make install
 

Modified: tuscany/cpp/sca/samples/configure.ac
URL: http://svn.apache.org/viewvc/tuscany/cpp/sca/samples/configure.ac?rev=811730&r1=811729&r2=811730&view=diff
==============================================================================
--- tuscany/cpp/sca/samples/configure.ac (original)
+++ tuscany/cpp/sca/samples/configure.ac Sun Sep  6 00:14:47 2009
@@ -18,7 +18,7 @@
 dnl run autogen.sh to generate the configure script.
 
 AC_PREREQ(2.59)
-AC_INIT(tuscany_sca_samples, 1.0-incubator-M3)
+AC_INIT(tuscany-sca-samples, 1.0-M3)
 AC_CANONICAL_SYSTEM
 AM_CONFIG_HEADER(config.h)
 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
@@ -66,6 +66,19 @@
 AC_FUNC_VPRINTF
 AC_CHECK_FUNCS([getcwd putenv strdup])
 
+# Configure TUSCANY_SCACPP and TUSCANY_SDOCPP
+TUSCANY_SCACPP=`echo "$TUSCANY_SCACPP"`
+if test "x$TUSCANY_SCACPP" = "x"; then
+  SCAPWD=`pwd`
+  AC_SUBST([TUSCANY_SCACPP], ["$SCAPWD/.."])
+fi
+
+TUSCANY_SDOCPP=`echo "$TUSCANY_SDOCPP"`
+if test "x$TUSCANY_SDOCPP" = "x"; then
+  SCAPWD=`pwd`
+  AC_SUBST([TUSCANY_SDOCPP], ["$SCAPWD/../../sdo/deploy"])
+fi
+
 AC_MSG_CHECKING(whether to build all samples)
 AC_ARG_ENABLE(all-samples, [AS_HELP_STRING([--enable-all-samples],[build all samples [default=no]])],
 [ case "${enableval}" in

Modified: tuscany/cpp/sdo/GettingStarted.html
URL: http://svn.apache.org/viewvc/tuscany/cpp/sdo/GettingStarted.html?rev=811730&r1=811729&r2=811730&view=diff
==============================================================================
--- tuscany/cpp/sdo/GettingStarted.html (original)
+++ tuscany/cpp/sdo/GettingStarted.html Sun Sep  6 00:14:47 2009
@@ -151,7 +151,7 @@
 	              NOTE: If you don't provide a --prefix configure option, it will by default install into
                   /usr/local/tuscany/sdo. Use ./configure --help to see all the available options.<br>
                   To build the sdo_axiom utility library you must specify the --with-axis2c=yes option on the configure command<p>
-                  A script, <b>build_sdocpp.sh</b>, is provided that will build and install SDO for C++. This script will install to the 
+                  A script, <b>build.sh</b>, is provided that will build and install SDO for C++. This script will install to the 
                   location specified by the TUSCANY_SDOCPP environment variable if set or into a deploy directory at &lt;tuscany_sdo_install_dir&gt;/deploy.
                   This script will check for the correct environment variable settings and will only build the sdo_axiom utility 
                   library if AXIS2C_HOME is set.</LI>

Modified: tuscany/cpp/sdo/Makefile.am
URL: http://svn.apache.org/viewvc/tuscany/cpp/sdo/Makefile.am?rev=811730&r1=811729&r2=811730&view=diff
==============================================================================
--- tuscany/cpp/sdo/Makefile.am (original)
+++ tuscany/cpp/sdo/Makefile.am Sun Sep  6 00:14:47 2009
@@ -20,7 +20,7 @@
 datadir=$(prefix)
 
 data_DATA = INSTALL README LICENSE COPYING NOTICE GettingStarted.html
-EXTRA_DIST = LICENSE COPYING INSTALL README NOTICE build_sdocpp.sh sdotest.sh GettingStarted.html doc
+EXTRA_DIST = LICENSE COPYING INSTALL README NOTICE autogen.sh build.sh builddist.sh configure.sh makebindist.sh sdotest.sh GettingStarted.html doc
 dist-hook:
 	rm -rf `find $(distdir)/ -type d -name .svn`
 	rm -rf `find $(distdir)/ -type d -name .deps`

Modified: tuscany/cpp/sdo/build.sh
URL: http://svn.apache.org/viewvc/tuscany/cpp/sdo/build.sh?rev=811730&r1=811729&r2=811730&view=diff
==============================================================================
--- tuscany/cpp/sdo/build.sh (original)
+++ tuscany/cpp/sdo/build.sh Sun Sep  6 00:14:47 2009
@@ -17,33 +17,6 @@
 #  specific language governing permissions and limitations
 #  under the License.
 
-
-if [ x$LIBXML2_INCLUDE = x ]; then
-export LIBXML2_INCLUDE=/usr/include/libxml2
-fi
-if [ x$LIBXML2_LIB = x ]; then
-export LIBXML2_LIB=/usr/lib
-fi
-
-if [ x$AXIS2C_HOME = x ]; then
-echo "AXIS2C_HOME not set. not building SDO Axiom utility"
-
-else
-echo "Using Axis2C installed at $AXIS2C_HOME"
-WITH_AXIS2C=--with-axis2c
-fi
-
-TUSCANY_SDOCPP_HOME=`pwd`
-cd ${TUSCANY_SDOCPP_HOME}/samples
-./autogen.sh
-
-cd $TUSCANY_SDOCPP_HOME
-./autogen.sh
-
-if [ x$TUSCANY_SDOCPP = x ]; then
-export TUSCANY_SDOCPP=`pwd`/deploy
-fi
-
-./configure --prefix=${TUSCANY_SDOCPP} ${WITH_AXIS2C} --enable-static=no
-make
+./configure.sh
 make install
+

Modified: tuscany/cpp/sdo/builddist.sh
URL: http://svn.apache.org/viewvc/tuscany/cpp/sdo/builddist.sh?rev=811730&r1=811729&r2=811730&view=diff
==============================================================================
--- tuscany/cpp/sdo/builddist.sh (original)
+++ tuscany/cpp/sdo/builddist.sh Sun Sep  6 00:14:47 2009
@@ -17,34 +17,6 @@
 #  specific language governing permissions and limitations
 #  under the License.
 
-TUSCANY_SDOCPP_HOME=`pwd`
-
-if [ x$AXIS2C_HOME = x ]; then
-echo "AXIS2C_HOME not set. not building SDO Axiom utility"
-else
-echo "Using Axis2C installed at $AXIS2C_HOME"
-WITH_AXIS2C=--with-axis2c
-fi
-
-if [ x$LIBXML2_INCLUDE = x ]; then
-echo "LIBXML2_INCLUDE not set"
-exit;
-fi
-if [ x$LIBXML2_LIB = x ]; then
-echo "LIBXML2_LIB not set"
-exit;
-fi
-echo "Using libxml2 installed at $LIBXML2_LIB, $LIBXML2_INCLUDE"
-
-cd ${TUSCANY_SDOCPP_HOME}/samples
-./autogen.sh
-./configure --prefix=${TUSCANY_SDOCPP_HOME}/deploy/samples --enable-static=no
-
-cd $TUSCANY_SDOCPP_HOME
-./autogen.sh
-./configure --prefix=${TUSCANY_SDOCPP_HOME}/deploy --enable-static=no ${WITH_AXIS2C} 
-
+./configure.sh
 make bindist
 
-
-

Modified: tuscany/cpp/sdo/configure.ac
URL: http://svn.apache.org/viewvc/tuscany/cpp/sdo/configure.ac?rev=811730&r1=811729&r2=811730&view=diff
==============================================================================
--- tuscany/cpp/sdo/configure.ac (original)
+++ tuscany/cpp/sdo/configure.ac Sun Sep  6 00:14:47 2009
@@ -18,9 +18,9 @@
 dnl run autogen.sh to generate the configure script.
 
 AC_PREREQ(2.59)
-AC_INIT(tuscany_sdo_cpp, 1.0-incubator-M3)
+AC_INIT(tuscany-sdo, 1.0-M3)
 AC_CANONICAL_SYSTEM
-AM_CONFIG_HEADER(tuscany_sdo_config.h)
+AM_CONFIG_HEADER(config.h)
 AM_INIT_AUTOMAKE([tar-ustar])
 AC_PREFIX_DEFAULT(/usr/local/tuscany/sdo)
 
@@ -64,6 +64,24 @@
 AC_FUNC_VPRINTF
 AC_CHECK_FUNCS([strchr strrchr])
 
+# Configure TUSCANY_SDOCPP
+TUSCANY_SDOCPP=`echo "$TUSCANY_SDOCPP"`
+if test "x$TUSCANY_SDOCPP" = "x"; then
+  SDOPWD=`pwd`
+  AC_SUBST([TUSCANY_SDOCPP], ["$SDOPWD"])
+fi
+
+# Configure LIBXML2_INCLUDE and LIBXML2_LIB
+LIBXML2_INCLUDE=`echo "$LIBXML2_INCLUDE"`
+if test "x$LIBXML2_INCLUDE" = "x"; then
+  AC_SUBST([LIBXML2_INCLUDE], ["/usr/include/libxml2"])
+fi
+
+LIBXML2_LIB=`echo "$LIBXML2_LIB"`
+if test "x$LIBXML2_LIB" = "x"; then
+  AC_SUBST([LIBXML2_LIB], ["/usr/lib"])
+fi
+
 AC_MSG_CHECKING(whether to build SDO Axiom utility)
 AC_ARG_WITH(axis2c, [AS_HELP_STRING([--with-axis2c],[build SDO Axiom utility [default=no]])],
 [ case "${withval}" in

Copied: tuscany/cpp/sdo/configure.sh (from r807102, tuscany/cpp/sdo/build_sdocpp.sh)
URL: http://svn.apache.org/viewvc/tuscany/cpp/sdo/configure.sh?p2=tuscany/cpp/sdo/configure.sh&p1=tuscany/cpp/sdo/build_sdocpp.sh&r1=807102&r2=811730&rev=811730&view=diff
==============================================================================
--- tuscany/cpp/sdo/build_sdocpp.sh (original)
+++ tuscany/cpp/sdo/configure.sh Sun Sep  6 00:14:47 2009
@@ -19,12 +19,10 @@
 
 
 if [ x$LIBXML2_INCLUDE = x ]; then
-echo "LIBXML2_INCLUDE not set"
-exit;
+export LIBXML2_INCLUDE=/usr/include/libxml2
 fi
 if [ x$LIBXML2_LIB = x ]; then
-echo "LIBXML2_LIB not set"
-exit;
+export LIBXML2_LIB=/usr/lib
 fi
 
 if [ x$AXIS2C_HOME = x ]; then
@@ -35,10 +33,15 @@
 WITH_AXIS2C=--with-axis2c
 fi
 
+TUSCANY_SDOCPP_HOME=`pwd`
 if [ x$TUSCANY_SDOCPP = x ]; then
-export TUSCANY_SDOCPP=`pwd`/deploy
+  export TUSCANY_SDOCPP=`pwd`/deploy
 fi
+./autogen.sh
+./configure --prefix=${TUSCANY_SDOCPP} ${WITH_AXIS2C} --enable-static=no
 
+cd ${TUSCANY_SDOCPP_HOME}/samples
+./autogen.sh
 ./configure --prefix=${TUSCANY_SDOCPP} ${WITH_AXIS2C} --enable-static=no
-make
-make install
+
+cd $TUSCANY_SDOCPP_HOME

Modified: tuscany/cpp/sdo/makebindist.sh
URL: http://svn.apache.org/viewvc/tuscany/cpp/sdo/makebindist.sh?rev=811730&r1=811729&r2=811730&view=diff
==============================================================================
--- tuscany/cpp/sdo/makebindist.sh (original)
+++ tuscany/cpp/sdo/makebindist.sh Sun Sep  6 00:14:47 2009
@@ -19,26 +19,16 @@
 
 TUSCANY_SDOCPP_HOME=`pwd`
 
-if [ x$AXIS2C_HOME = x ]; then
-echo "AXIS2C_HOME not set. not building SDO Axiom utility"
-else
-echo "Using Axis2C installed at $AXIS2C_HOME"
-WITH_AXIS2C=--with-axis2c
-fi
-
-cd ${TUSCANY_SDOCPP_HOME}
-./configure --prefix=${TUSCANY_SDOCPP_HOME}/deploy --enable-static=no ${WITH_AXIS2C} 
-make
+./configure.sh
+
 make install
 
 cd ${TUSCANY_SDOCPP_HOME}/samples
-export TUSCANY_SDOCPP=${TUSCANY_SDOCPP_HOME}/deploy
-./configure --prefix=${TUSCANY_SDOCPP_HOME}/deploy --enable-static=no
-make
 make install
 
 cd ${TUSCANY_SDOCPP_HOME}/deploy
 for i in `find . -name "*.la"`
 do
 	rm $i
-done
\ No newline at end of file
+done
+

Modified: tuscany/cpp/sdo/samples/Makefile.am
URL: http://svn.apache.org/viewvc/tuscany/cpp/sdo/samples/Makefile.am?rev=811730&r1=811729&r2=811730&view=diff
==============================================================================
--- tuscany/cpp/sdo/samples/Makefile.am (original)
+++ tuscany/cpp/sdo/samples/Makefile.am Sun Sep  6 00:14:47 2009
@@ -17,4 +17,4 @@
 
 SUBDIRS = misc
 
-EXTRA_DIST = GettingStarted.html build.sh
+EXTRA_DIST = autogen.sh build.sh GettingStarted.html

Modified: tuscany/cpp/sdo/samples/build.sh
URL: http://svn.apache.org/viewvc/tuscany/cpp/sdo/samples/build.sh?rev=811730&r1=811729&r2=811730&view=diff
==============================================================================
--- tuscany/cpp/sdo/samples/build.sh (original)
+++ tuscany/cpp/sdo/samples/build.sh Sun Sep  6 00:14:47 2009
@@ -17,13 +17,6 @@
 #  specific language governing permissions and limitations
 #  under the License.
 
-if [ x$TUSCANY_SDOCPP = x ]; then
-echo "TUSCANY_SDOCPP not set"
-exit;
-fi
-echo "Using SDO installed at $TUSCANY_SDOCPP"
-
-./configure --prefix=${TUSCANY_SDOCPP}/samples --enable-static=no
-make
+./configure.sh
 make install
 

Modified: tuscany/cpp/sdo/samples/configure.ac
URL: http://svn.apache.org/viewvc/tuscany/cpp/sdo/samples/configure.ac?rev=811730&r1=811729&r2=811730&view=diff
==============================================================================
--- tuscany/cpp/sdo/samples/configure.ac (original)
+++ tuscany/cpp/sdo/samples/configure.ac Sun Sep  6 00:14:47 2009
@@ -18,7 +18,7 @@
 dnl run autogen.sh to generate the configure script.
 
 AC_PREREQ(2.59)
-AC_INIT(tuscany_sdo_samples, 1.0-incubator-M3)
+AC_INIT(tuscany-sdo-samples, 1.0-M3)
 AC_CANONICAL_SYSTEM
 AM_CONFIG_HEADER(config.h)
 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
@@ -48,6 +48,24 @@
 fi
 AM_CONDITIONAL([DARWIN], [test x$is_darmin = xtrue])
 
+# Configure TUSCANY_SDOCPP
+TUSCANY_SDOCPP=`echo "$TUSCANY_SDOCPP"`
+if test "x$TUSCANY_SDOCPP" = "x"; then
+  SDOPWD=`pwd`
+  AC_SUBST([TUSCANY_SDOCPP], ["$SDOPWD/.."])
+fi
+
+# Configure LIBXML2_INCLUDE and LIBXML2_LIB
+LIBXML2_INCLUDE=`echo "$LIBXML2_INCLUDE"`
+if test "x$LIBXML2_INCLUDE" = "x"; then
+  AC_SUBST([LIBXML2_INCLUDE], ["/usr/include/libxml2"])
+fi
+
+LIBXML2_LIB=`echo "$LIBXML2_LIB"`
+if test "x$LIBXML2_LIB" = "x"; then
+  AC_SUBST([LIBXML2_LIB], ["/usr/lib"])
+fi
+
 AC_CONFIG_FILES([Makefile
                  misc/Makefile
                  ])