UIMA-2363 updated buildsdk to add APR-Util binaries.

git-svn-id: https://svn.apache.org/repos/asf/uima/uimacpp/trunk@1239197 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/buildsdk.sh b/buildsdk.sh
index 20ce090..066acf9 100755
--- a/buildsdk.sh
+++ b/buildsdk.sh
@@ -31,6 +31,8 @@
 	echo "      APR_HOME - root of the APR install."
 	echo "      ICU_HOME - root of the ICU install."
 	echo "      XERCES_HOME - root of the XERCES install."
+ 	echo "      ACTIVEMQ_HOME - root of the XERCES install." 
+        echo "      APU_HOME - root of the APR Util install Required if ACTIVEMQ_HOME is set."
 }
 
 
@@ -156,11 +158,31 @@
 fi
 
 if [  -r "$UIMA_INSTALLDIR"/bin/deployCppService ]; then
+   echo "checking $ACTIVEMQ_HOME"
+   if [ "$ACTIVEMQ_HOME" = "" ]; then
+      echo ERROR: ACTIVEMQ_HOME must be set to location of ActiveMQ CPP install.
+      echo UIMACPP SDK was not built.
+      exit
+   fi
+   echo "checking $APU_HOME"
+   if [ "$APU_HOME" = "" ]; then
+      echo ERROR: APU_HOME must be set to location where APR-Util is installed.
+      echo UIMACPP SDK was not built.
+      exit
+   fi
+
+
    if [ ! -d "$ACTIVEMQ_HOME"/lib ]; then
       echo ERROR: ACTIVEMQ_HOME "$ACTIVEMQ_HOME" is invalid.
       echo UIMACPP SDK was not built.
       exit
    fi
+   echo "checking $APU_HOME"
+   if [ ! -d "$APU_HOME"/lib ]; then
+      echo ERROR: APU_HOME "$APU_HOME"  is invalid.
+      echo UIMACPP SDK was not built.
+      exit
+   fi
 fi
 
 
@@ -238,6 +260,11 @@
   eval cp $CPLR "$ACTIVEMQ_HOME"/lib/libactivemq-cpp*.$LIBEXT"*" "$UIMA_DIR"/lib/
 fi
 
+if [ ! "$APU_HOME" = "" ]; then
+  echo copying from "$APU_HOME"...
+  eval cp $CPLR "$APU_HOME"/lib/libaprutil*.$LIBEXT"*" "$UIMA_DIR"/lib/
+fi
+
 echo copying the scriptators...
 SCRIPTATORS_HOME=$UIMACPP_SOURCE/scriptators
 cp $CPLR "$SCRIPTATORS_HOME" "$UIMA_DIR"/