:
#!/bin/sh
#+---------------------------------------------------------------------
# ECU Configure - prepare and execute ECU configuration program
#----------------------------------------------------------------------
#+:EDITS:
#:05-04-1994-04:38-wht@n4hgf-ECU release 3.30
#:03-13-1994-19:26-wht@fep-facelift + fep WHT detect
#:09-10-1992-13:58-wht@n4hgf-ECU release 3.20
#:08-22-1992-15:37-wht@n4hgf-ECU release 3.20 BETA
#:07-09-1992-18:09-wht@n4hgf-ecunumrev a bad idea
#:07-07-1992-16:30-wht@gyro-add ecunumrev to config
#:08-25-1991-05:11-wht@n4hgf2-added Sun n4hgf2 WHT automation
#:08-06-1991-05:05-wht@n4hgf-change FASI_IN_USE to FASI
#:07-12-1991-14:05-wht@n4hgf-ensure config.c compiles properly
#:04-29-1991-02:39-wht@n4hgf-document/clean

# no changes are recommended
CFLAGS=

# a bit of self indulgence for me (ignore it or be inspired)
SYSTEM=
[ -f /etc/systemid ] && SYSTEM=`cat /etc/systemid`
[ "$SYSTEM" = "n4hgf" ] && CFLAGS='-DWHT'
[ -f /bin/uname ] && SYSTEM=`/bin/uname -n`
[ "$SYSTEM" = "kepler" ] && CFLAGS='-DWHT'
[ -f /etc/hostname.le0 ] && SYSTEM=`cat /etc/hostname.le0`
[ "$SYSTEM" = "gyro" ] && CFLAGS='-DWHT'
[ -f /sbin/uname ] && SYSTEM=`/sbin/uname -n`
[ "$SYSTEM" = "fep" ] && CFLAGS='-DWHT'

echo Please wait while I compile the config program.
rm -f ./config
cc $CFLAGS config.c -o config > /tmp/config.cc.log 2>&1
[ -x ./config ] && rm -f /tmp/config.cc.log
[ -x ./config ] || echo '/tmp/config.cc.log has compile errors'
./config

#end of Configure
