#!/bin/sh

# try to guess the target type if not specified, assuming that the
# current machine is the target

# Currently, this is only a rough guess, and could be expanded to get
# information from /proc, etc...


arch=`uname -m`

case $arch in
	i386)	# 386sx or 386dx.. we'll assume it's a DX
		echo "pc-i386dx"
		;;

	i486)	# 486sx or 486dx.. better assume it's an SX (no math co)
		echo "pc-i486sx"
		;;
	
	i586)	# Pentium
		echo "pc-i586"
		;;

	i686)	# Pentium Pro
		echo "pc-i686"
		;;

	*)	# just to be on the safe side...
		echo "pc-i386"
		;;
esac

