xref: /csrg-svn/usr.sbin/amd/config/Configure (revision 44630)
1*44630Smckusick#!/bin/sh -
2*44630Smckusick#
3*44630Smckusick# Copyright (c) 1989 Jan-Simon Pendry
4*44630Smckusick# Copyright (c) 1989 Imperial College of Science, Technology & Medicine
5*44630Smckusick# Copyright (c) 1989 The Regents of the University of California.
6*44630Smckusick# All rights reserved.
7*44630Smckusick#
8*44630Smckusick# This code is derived from software contributed to Berkeley by
9*44630Smckusick# Jan-Simon Pendry at Imperial College, London.
10*44630Smckusick#
11*44630Smckusick# %sccs.include.redist.sh%
12*44630Smckusick#
13*44630Smckusick#	@(#)Configure	5.1 (Berkeley) 06/29/90
14*44630Smckusick#
15*44630Smckusickecho "Making ./arch and ./os-type executable ..."
16*44630Smckusickuntil chmod +x ./arch ./os-type; do echo "Error: chmod command failed" >&2; exit 1; done
17*44630Smckusickecho "Checking ./arch and ./os-type ..."
18*44630Smckusickecho ""
19*44630Smckusickarch="`sh ./arch 2>/dev/null`"
20*44630Smckusickos="`sh ./os-type 2>/dev/null`"
21*44630Smckusickcase "$arch" in
22*44630Smckusick"") echo "./arch doesn't produce an answer - please check it" >&2; exit 1;;
23*44630Smckusickesac
24*44630Smckusickcase "$os" in
25*44630Smckusick"") echo "./os-type doesn't produce an answer - please check it" >&2; exit 1;;
26*44630Smckusickesac
27*44630Smckusickcat << %
28*44630SmckusickThis machine appears to be a "$arch" running "$os".
29*44630SmckusickIf that is correct just run make.
30*44630SmckusickIf those are incorrect please edit ./arch and ./os-type
31*44630Smckusick%
32*44630Smckusickexit 0
33