#!/bin/csh

#Check the type of machine, sgi, sun or BSD/386.
set sysId=`uname -s`
switch ($sysId)
	case IRIX :
	    set machine=sgi
	    cp src/Makefile.sgi src/Makefile
	    breaksw
	case SunOS:
	    set machine=sun
	    cp src/Makefile.sun src/Makefile
	    breaksw
	case BSD/386:
	    set machine=bsd386
	    cp src/Makefile.bsd386 src/Makefile
	    breaksw
endsw

echo $machine > __machine
echo This seems to be a $machine box...


#look for perl
set perle=`which perl`
if ( $#perle > 1 ) then
    	echo Perl does not exist or is not in your path
	exit
else	
    	echo \#\!$perle > __perlpath
endif


#look for gnuplot
set gnue=`which gnuplot`
if ( $#gnue > 1 ) then
    	echo Gnuplot does not exist or is not in your path
	echo \$gnuplot=0\; > __gnuplot
else
	echo \$gnuplot=1\; > __gnuplot
endif






