--- projects/cms/source/conient/configure 2001/07/18 16:09:08 1.6 +++ projects/cms/source/conient/configure 2003/02/11 22:00:55 1.10 @@ -4,7 +4,7 @@ # i-scream Distributed Centralised Monitoring System # Conient configure script # -# $Id: configure,v 1.6 2001/07/18 16:09:08 tdb Exp $ +# $Id: configure,v 1.10 2003/02/11 22:00:55 tdb Exp $ # ## Config @@ -14,7 +14,15 @@ HTTPSERVER="http://www.i-scream.org.uk/downloads/lib/" # This script uses wget, set it's path and parameters here WGETPARAM="-nv" -WGET="/usr/local/bin/wget ${WGETPARAM}" +if test -x /usr/bin/wget; then + WGET="/usr/bin/wget ${WGETPARAM}" +else + if test -x /usr/local/bin/wget; then + WGET="/usr/local/bin/wget ${WGETPARAM}" + else + WGET="wget ${WGETPARAM}"; + fi +fi # This should always be the same SRCROOT=`pwd` @@ -24,7 +32,7 @@ SRCROOT=`pwd` echo "> Checking for required libraries" cd build/lib -LIBRARIES="crimson.jar jaxp.jar iscream-util.jar" +LIBRARIES="crimson.jar jaxp.jar iscream_util.jar" for LIB in ${LIBRARIES}; do @@ -32,10 +40,23 @@ for LIB in ${LIBRARIES}; do echo " + ${LIB} found"; \ else \ echo " - ${LIB} not found, fetching from ${HTTPSERVER}${LIB}"; \ - ${WGET} ${HTTPSERVER}${LIB}; \ + ${WGET} -nv ${HTTPSERVER}${LIB}; \ fi done + +## Cache javadoc API package-list files +echo "> Caching remote API's" + +JDKURL="http://java.sun.com/j2se/1.4.1/docs/api/" +mkdir -p ${SRCROOT}/.api-cache/jdk +cd ${SRCROOT}/.api-cache/jdk +if test -r "package-list"; then \ + echo " + jdk/package-list found"; \ +else \ + echo " - jdk/package-list not found, fetching from ${JDKURL}package-list"; \ + ${WGET} ${JDKURL}package-list; \ +fi ## Write out the include file for the Makefile's