# -*-sh-*-
#
-# $Id: sw.in,v 1.1 1999/06/02 16:53:32 mdw Exp $
+# $Id: sw.in,v 1.2 2004/04/08 01:52:19 mdw Exp $
#
# Determine a canonical `sw' architecture name
#
# along with sw-tools; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#----- Revision history -----------------------------------------------------
-#
-# $Log: sw.in,v $
-# Revision 1.1 1999/06/02 16:53:32 mdw
-# Initial revision
-#
-
# --- Commentary ---
#
# This is deliberately *not* the same as Autoconf's `config.guess'. The GNU
# --- Step one: find out about the CPU architecture ---
-CPU=`uname -p`; CPU=`echo $CPU | tr A-Z a-z`
+CPU=`uname -p 2>/dev/null || echo unknown`; CPU=`echo $CPU | tr A-Z a-z`
case $CPU in
unknown) CPU=`uname -m` ;;
esac