# Version 2.01 April 30, 2002.  Change PROGRAM to "other" for generic 
#	distribution.
# Version 2.00 January 25, 2002.  WHOI distribution of JGOFS data management 
#	system.

setenv JGOFSDIR `pwd`
setenv MYADDR globec.whoi.edu
setenv PERL /usr/local/bin/perl
setenv SYS Solaris
setenv PROGRAM other

setenv BUTTONIMAGESDIR http://globec.whoi.edu/images

#These are new options for the multicolumn dir CGI script.  They
#	are not needed otherwise.
#setenv STARTNEWCOLSTRINGS gb,nep,soglobec
#setenv STARTCOUNTSUBDIRECTORYLEVEL 4

# Should only need to edit above this line.

# For MYADDR use your IP node name
# For PERL write the full path to the perl compiler
# For SYS the choices are linux, SunOS, Solaris, or IRIX.
# For PROGRAM the choices are Globec or JGOFS te get predefined 
#	settings.  See below to see what these settings are.
# For STARTNEWCOLSTRINGS specify the names of the directory levels
#	you want to display in the multicolumn dir listing.
# For STARTCOUNTSUBDIRECTORYLEVEL specify the directory level at which
#	the above directories show up, where the root directory, /, is
#	at level 0.

if ( "$SYS" == "linux" ) then
setenv CC "cc -DLINUX"
setenv FC "g77 -O"
setenv AR "ar rv"
setenv RANLIB "ranlib"
setenv NAWK awk
else if ( "$SYS" == "SunOS" ) then
setenv CC "cc -DSUN"
setenv FC "f77"
setenv AR "ar rv"
setenv RANLIB "ranlib"
setenv NAWK nawk
else if ( "$SYS" == "Solaris" ) then
setenv CC "cc -DSOL -DSVR4 -lnsl -lsocket"
#env CC "/opt/SUNWspro/bin/cc -DSOL -DSVR4 -lnsl -lsocket"
setenv FC "f77 -lnsl -lsocket"
setenv AR "ar srv"
setenv RANLIB "echo"
setenv NAWK nawk
else if ( "$SYS" == "Irix" ) then
setenv CC "cc -cckr -DIRIX"
setenv FC "f77"
setenv AR "ar srv"
setenv RANLIB "echo"
setenv NAWK nawk
setenv SHELL /sbin/sh
endif

setenv OPTIONSERVER optserv1.whoi.edu/jg/otheropt

if ( "$PROGRAM" == "JGOFS" ) then
setenv INFOSERVER usjgofs.whoi.edu/jg/info
setenv DIRSERVER usjgofs.whoi.edu/jg/dir
setenv DMONAME "US JGOFS"
setenv OBJDIR /jgofs
else if ( "$PROGRAM" == "Globec" ) then
setenv INFOSERVER globec.whoi.edu/jg/info
setenv DIRSERVER globec.whoi.edu/jg/dir
setenv DMONAME "U.S. GLOBEC"
setenv OBJDIR /globec
else
setenv INFOSERVER ${MYADDR}/jg/info
setenv DIRSERVER ${MYADDR}/jg/dir
setenv DMONAME "${MYADDR} -- "
setenv OBJDIR /
endif

#
# end of environment
