Author: robbinspg
Date: Mon Feb 19 04:28:29 2007
New Revision: 509180

URL: http://svn.apache.org/viewvc?view=rev&rev=509180
Log:
Build REST binding if required environment is set

Modified:
    incubator/tuscany/cpp/sca/build.sh
    incubator/tuscany/cpp/sca/runtime/extensions/rest/interface/src/Makefile.am

Modified: incubator/tuscany/cpp/sca/build.sh
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/build.sh?view=diff&rev=509180&r1=509179&r2=509180
==============================================================================
--- incubator/tuscany/cpp/sca/build.sh (original)
+++ incubator/tuscany/cpp/sca/build.sh Mon Feb 19 04:28:29 2007
@@ -53,6 +53,18 @@
 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
 
@@ -63,7 +75,7 @@
 export TUSCANY_SCACPP=`pwd`/deploy
 fi
 
-./configure --prefix=${TUSCANY_SCACPP} --enable-static=no ${WITH_AXIS2C} 
${ENABLE_RUBY} ${ENABLE_PYTHON}
+./configure --prefix=${TUSCANY_SCACPP} --enable-static=no ${WITH_AXIS2C} 
${ENABLE_RUBY} ${ENABLE_PYTHON} ${ENABLE_REST}
 make
 make install
 

Modified: 
incubator/tuscany/cpp/sca/runtime/extensions/rest/interface/src/Makefile.am
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/rest/interface/src/Makefile.am?view=diff&rev=509180&r1=509179&r2=509180
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/rest/interface/src/Makefile.am 
(original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/rest/interface/src/Makefile.am 
Mon Feb 19 04:28:29 2007
@@ -12,8 +12,7 @@
   -L$(top_builddir)/runtime/core/src -ltuscany_sca
 
 INCLUDES = -I$(top_builddir)/runtime/core/src \
-  -I${TUSCANY_SDOCPP}/include \
-  -I${CURL_HOME}/include
+  -I${TUSCANY_SDOCPP}/include
                    
 AM_CPPFLAGS = $(CPPFLAGS) -D_DEBUG
                    



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to