#!/bin/csh -fb
#
# aimake
#
# Architecture Dependent Make Facility.  Automatically sets PVM
# machine-type for make to use.
#
# 22 Jul 1991  Robert Manchek  manchek@CS.UTK.EDU.
#

#
# begin heuristic section that may need to be tuned.
#
if (-x /bin/arch) then
	switch (`/bin/arch`)
	case sun2:
		set ARCH=SUN2
		breaksw
	case sun3:
		set ARCH=SUN3
		breaksw
	case sun4:
		set ARCH=SUN4
	default:
		breaksw
	endsw
endif
if (-e /pcs750.bin) then
	if (-e /ultrixboot) then
		set ARCH=UVAX
	else
		set ARCH=VAX
	endif
else
	if (-e /ultrixboot) then
		set ARCH=PMAX
	endif
endif
if (-e /etc/vg) set ARCH=RIOS
if (-e /bin/titan) set ARCH=TITN
if (-e /dynix) set ARCH=SYMM
if (-e /usr/bin/getcube) set ARCH=I860
if (-e /unicos) set ARCH=CRAY
if (-e /usr/bin/asm56000) set ARCH=NEXT
#
# ugh, done.
#

echo $ARCH
