3 # This is the bootstrapping configuration script for Ganymede. The
4 # only thing we count on to run this script is that /bin/sh works.
6 # Get enough information from the user to be able to find Perl 5 and
7 # run scripts/configurator.perl. We'll set a bunch of environment variables
8 # for configurator.perl to use to do its thing.
10 # Last Revision Changed: $Rev$
11 # Last Changed By: $Author$
12 # Last Mod Date: $Date$
15 ###############################################################################
17 echo "Ganymede configure script"
21 # Figure out how to do an echo without trailing newline
24 case "`echo 'x\c'`" in
25 'x\c') echo="echo -n" nnl
= ;; # BSD
26 x
) echo="echo" nnl
="\c" ;; # Sys V
27 *) echo "$0 quitting: Can't set up echo." 1>&2; exit 1 ;;
30 # Find the source files, if location was not specified.
32 # Try the directory containing this script, then its parent.
36 GROOTDIR
=`echo $prog|sed 's%/[^/][^/]*$%%'`
37 # if the program name is the same as the srcdir name, we have no path
39 #test "x$GROOTDIR" = "x$prog" && GROOTDIR=.
40 #if test ! -d $GROOTDIR/build/src/classes; then
41 # echo "configure: error: can not find sources in $rootdir" 1>&2; exit 1;
47 guessperl
=`which perl`> /dev
/null
2>&1
49 if `$guessperl $GROOTDIR/scripts/versiontest.pl > /dev/null 2>&1`; then
52 $echo "Where is perl 5 installed? [$guessperl] ${nnl}"
56 if test ! -z "$userperl"; then
67 guessjava
=`which java`
68 guessjava
=`dirname ${guessjava}`
70 $echo "What is the location of the directory where java is installed? [$guessjava] ${nnl}"
74 if test ! -z "$userjava"; then
86 $echo "Where is Apache Ant located? [$guessant] ${nnl}"
90 if test ! -z "$userant"; then
98 $GPERL $GROOTDIR/scripts
/configurator.perl