--- projects/cms/source/conient/configure 2001/03/14 22:21:35 1.4 +++ projects/cms/source/conient/configure 2003/02/05 19:35:04 1.8 @@ -4,17 +4,25 @@ # i-scream Distributed Centralised Monitoring System # Conient configure script # -# $Id: configure,v 1.4 2001/03/14 22:21:35 tdb Exp $ +# $Id: configure,v 1.8 2003/02/05 19:35:04 tdb Exp $ # ## Config # HTTP Server. This is the source of all downloads. -HTTPSERVER="http://killigrew.ukc.ac.uk/" +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,7 +40,7 @@ for LIB in ${LIBRARIES}; do echo " + ${LIB} found"; \ else \ echo " - ${LIB} not found, fetching from ${HTTPSERVER}${LIB}"; \ - /usr/local/bin/wget -nv ${HTTPSERVER}${LIB}; \ + ${WGET} ${HTTPSERVER}${LIB}; \ fi done