1#!/bin/sh - 2# 3# Copyright (c) 1989 Jan-Simon Pendry 4# Copyright (c) 1989 Imperial College of Science, Technology & Medicine 5# Copyright (c) 1989, 1993 6# The Regents of the University of California. All rights reserved. 7# 8# This code is derived from software contributed to Berkeley by 9# Jan-Simon Pendry at Imperial College, London. 10# 11# %sccs.include.redist.sh% 12# 13# @(#)Configure 8.1 (Berkeley) 06/06/93 14# 15# $Id: Configure,v 5.2.1.2 91/05/07 22:20:26 jsp Alpha $ 16# 17echo "Making ./arch and ./os-type executable ..." 18until chmod +x ./arch ./os-type; do echo "Error: chmod command failed" >&2; exit 1; done 19echo "Checking ./arch and ./os-type ..." 20echo "" 21arch="`sh ./arch 2>/dev/null`" 22os="`sh ./os-type 2>/dev/null`" 23case "$arch" in 24"") echo "./arch doesn't produce an answer - please check it" >&2; exit 1;; 25esac 26case "$os" in 27"") echo "./os-type doesn't produce an answer - please check it" >&2; exit 1;; 28esac 29cat << % 30This machine appears to be a "$arch" running "$os". 31If that is correct just run make. 32If those are incorrect please edit ./arch and ./os-type 33% 34exit 0 35