xref: /original-bsd/usr.sbin/amd/config/Configure (revision 08cd6844)
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 The Regents of the University of California.
6# 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	5.2 (Berkeley) 03/17/91
14#
15echo "Making ./arch and ./os-type executable ..."
16until chmod +x ./arch ./os-type; do echo "Error: chmod command failed" >&2; exit 1; done
17echo "Checking ./arch and ./os-type ..."
18echo ""
19arch="`sh ./arch 2>/dev/null`"
20os="`sh ./os-type 2>/dev/null`"
21case "$arch" in
22"") echo "./arch doesn't produce an answer - please check it" >&2; exit 1;;
23esac
24case "$os" in
25"") echo "./os-type doesn't produce an answer - please check it" >&2; exit 1;;
26esac
27cat << %
28This machine appears to be a "$arch" running "$os".
29If that is correct just run make.
30If those are incorrect please edit ./arch and ./os-type
31%
32exit 0
33