annotate config.sub @ 905:c15f25529e61

[xemacs-hg @ 2002-07-06 21:05:42 by andyp] toolbar redisplay patch
author andyp
date Sat, 06 Jul 2002 21:05:58 +0000
parents c33ae14dd6d0
children 3580ae2ce979
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 #! /bin/sh
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
2 # Configuration validation subroutine script.
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
4 # Free Software Foundation, Inc.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
5
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
6 timestamp='2001-01-12'
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
7
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 # This file is (in principle) common to ALL GNU software.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 # The presence of a machine in this file suggests that SOME GNU software
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 # can handle that machine. It does not imply ALL GNU software can.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 # This file is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 # it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 # the Free Software Foundation; either version 2 of the License, or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 # (at your option) any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 # This program is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 # GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 # You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 # along with this program; if not, write to the Free Software
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 # Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 # Boston, MA 02111-1307, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 # As a special exception to the GNU General Public License, if you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 # distribute this file as part of a program that contains a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 # configuration script generated by Autoconf, you may include it under
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 # the same distribution terms that you use for the rest of that program.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
32 # Please send patches to <config-patches@gnu.org>.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
33 #
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 # Configuration subroutine to validate and canonicalize a configuration type.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 # Supply the specified configuration type as an argument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 # If it is invalid, we print an error message on stderr and exit with code 1.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 # Otherwise, we print the canonical config type on stdout and succeed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 # This file is supposed to be the same for all GNU packages
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 # and recognize all the CPU types, system types and aliases
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 # that are meaningful with *any* GNU software.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 # Each package is responsible for reporting which valid configurations
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 # it does not support. The user should be able to distinguish
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 # a failure to support a valid configuration from a meaningless
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 # configuration.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 # The goal of this file is to map all the various variations of a given
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 # machine specification into a single specification in the form:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
50 # or in some cases, the newer four-part form:
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
51 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 # It is wrong to echo any other type of specification.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
54 me=`echo "$0" | sed -e 's,.*/,,'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
55
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
56 usage="\
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
57 Usage: $0 [OPTION] CPU-MFR-OPSYS
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
58 $0 [OPTION] ALIAS
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
59
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
60 Canonicalize a configuration name.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
61
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
62 Operation modes:
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
63 -h, --help print this help, then exit
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
64 -t, --time-stamp print date of last modification, then exit
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
65 -v, --version print version number, then exit
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
66
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
67 Report bugs and patches to <config-patches@gnu.org>."
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
68
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
69 version="\
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
70 GNU config.sub ($timestamp)
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
71
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
72 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
73 Free Software Foundation, Inc.
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
74
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
75 This is free software; see the source for copying conditions. There is NO
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
76 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
77
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
78 help="
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
79 Try \`$me --help' for more information."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
81 # Parse command line
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
82 while test $# -gt 0 ; do
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
83 case $1 in
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
84 --time-stamp | --time* | -t )
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
85 echo "$timestamp" ; exit 0 ;;
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
86 --version | -v )
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
87 echo "$version" ; exit 0 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
88 --help | --h* | -h )
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
89 echo "$usage"; exit 0 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
90 -- ) # Stop option processing
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
91 shift; break ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
92 - ) # Use stdin as input.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
93 break ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
94 -* )
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
95 echo "$me: invalid option $1$help"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
96 exit 1 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
97
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
98 *local*)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
99 # First pass through any local machine types.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
100 echo $1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
101 exit 0;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
102
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
103 * )
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
104 break ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
105 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
106 done
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
107
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
108 case $# in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
109 0) echo "$me: missing argument$help" >&2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
110 exit 1;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
111 1) ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
112 *) echo "$me: too many arguments$help" >&2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
113 exit 1;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
116 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
117 # Here we must recognize all the valid KERNEL-OS combinations.
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
118 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
119 case $maybe_os in
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
120 nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
121 os=-$maybe_os
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
122 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
123 ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
124 *)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
125 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
126 if [ $basic_machine != $1 ]
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
127 then os=`echo $1 | sed 's/.*-/-/'`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
128 else os=; fi
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
129 ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
130 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 ### Let's recognize common machines as not being operating systems so
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 ### that things like config.sub decstation-3100 work. We also
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 ### recognize some manufacturers as not being operating systems, so we
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 ### can provide default operating systems below.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 case $os in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 -sun*os*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 # Prevent following clause from handling this invalid input.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
146 -apple | -axis)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 os=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 basic_machine=$1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
150 -sim | -cisco | -oki | -wec | -winbond)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
151 os=
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
152 basic_machine=$1
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
153 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
154 -scout)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
155 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
156 -wrs)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
157 os=-vxworks
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
158 basic_machine=$1
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
159 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 -hiux*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 os=-hiuxwe2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 -sco5)
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
164 os=-sco3.2v5
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
165 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 -sco4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 os=-sco3.2v4
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
169 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 -sco3.2.[4-9]*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
173 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 -sco3.2v[4-9]*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 # Don't forget version if it is 3.2v4 or newer.
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
177 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 -sco*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 os=-sco3.2v2
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
181 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
183 -udk*)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
184 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
185 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 -isc)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 os=-isc2.2
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
188 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 -clix*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 basic_machine=clipper-intergraph
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 -isc*)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
194 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 -lynx*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 os=-lynxos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 -ptx*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 -windowsnt*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 os=`echo $os | sed -e 's/windowsnt/winnt/'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 -psos*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 os=-psos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
208 -mint | -mint[0-9]*)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
209 basic_machine=m68k-atari
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
210 os=-mint
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
211 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 # Decode aliases for certain CPU-COMPANY combinations.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 case $basic_machine in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 # Recognize the basic CPU types without company name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 # Some are omitted here because they have special meanings below.
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
218 tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
219 | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
220 | pyramid | mn10200 | mn10300 | tron | a29k \
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
221 | 580 | i960 | h8300 \
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
222 | x86 | ppcbe | mipsbe | mipsle | shbe | shle \
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
223 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
224 | hppa64 \
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
225 | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
226 | alphaev6[78] \
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
227 | we32k | ns16k | clipper | i370 | sh | sh[34] \
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
228 | powerpc | powerpcle \
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
229 | 1750a | dsp16xx | pdp10 | pdp11 \
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
230 | mips16 | mips64 | mipsel | mips64el \
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
231 | mips64orion | mips64orionel | mipstx39 | mipstx39el \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
232 | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
233 | mips64vr5000 | miprs64vr5000el | mcore \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
234 | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
235 | thumb | d10v | d30v | fr30 | avr | openrisc)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 basic_machine=$basic_machine-unknown
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 ;;
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
238 m6811 | m68hc11 | m6812 | m68hc12)
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
239 # Motorola 68HC11/12.
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
240 basic_machine=$basic_machine-unknown
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
241 os=-none
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
242 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
243 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
244 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
245
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
246 # We use `pc' rather than `unknown'
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
247 # because (1) that's what they normally are, and
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
248 # (2) the word "unknown" tends to confuse beginning users.
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
249 i[234567]86 | x86_64)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
250 basic_machine=$basic_machine-pc
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
251 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 # Object if more than one company name word.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 *-*-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 # Recognize the basic CPU types with company name.
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
258 # FIXME: clean up the formatting here.
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
259 vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
260 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
261 | arm-* | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
262 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
263 | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
264 | xmp-* | ymp-* \
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
265 | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
266 | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
267 | hppa2.0n-* | hppa64-* \
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
268 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
269 | alphaev6[78]-* \
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
270 | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
271 | clipper-* | orion-* \
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
272 | sparclite-* | pdp10-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
273 | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
274 | mips64el-* | mips64orion-* | mips64orionel-* \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
275 | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
276 | mipstx39-* | mipstx39el-* | mcore-* \
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
277 | f30[01]-* | f700-* | s390-* | sv1-* | t3e-* \
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
278 | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
279 | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
280 | bs2000-* | tic54x-* | c54x-* | x86_64-*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 # Recognize the various machine names and aliases which stand
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 # for a CPU type and a company and sometimes even an OS.
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
284 386bsd)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
285 basic_machine=i386-unknown
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
286 os=-bsd
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
287 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 basic_machine=m68000-att
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 3b*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292 basic_machine=we32k-att
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
294 a29khif)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
295 basic_machine=a29k-amd
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
296 os=-udi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
297 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
298 adobe68k)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
299 basic_machine=m68010-adobe
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
300 os=-scout
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
301 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 alliant | fx80)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303 basic_machine=fx80-alliant
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 altos | altos3068)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306 basic_machine=m68k-altos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308 am29k)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 basic_machine=a29k-none
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312 amdahl)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313 basic_machine=580-amdahl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
316 amiga | amiga-*)
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
317 basic_machine=m68k-unknown
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
319 amigaos | amigados)
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
320 basic_machine=m68k-unknown
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
321 os=-amigaos
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323 amigaunix | amix)
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
324 basic_machine=m68k-unknown
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327 apollo68)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328 basic_machine=m68k-apollo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
331 apollo68bsd)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
332 basic_machine=m68k-apollo
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
333 os=-bsd
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
334 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335 aux)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336 basic_machine=m68k-apple
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 os=-aux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339 balance)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 basic_machine=ns32k-sequent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341 os=-dynix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 convex-c1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 basic_machine=c1-convex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
345 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
347 convex-c2)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348 basic_machine=c2-convex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 convex-c32)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352 basic_machine=c32-convex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 convex-c34)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356 basic_machine=c34-convex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
357 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359 convex-c38)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360 basic_machine=c38-convex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
361 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
362 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
363 cray | ymp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
364 basic_machine=ymp-cray
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
365 os=-unicos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 cray2)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368 basic_machine=cray2-cray
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
369 os=-unicos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
370 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 [ctj]90-cray)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372 basic_machine=c90-cray
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
373 os=-unicos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
374 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
375 crds | unos)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376 basic_machine=m68k-crds
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
377 ;;
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
378 cris | cris-* | etrax*)
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
379 basic_machine=cris-axis
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
380 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
381 da30 | da30-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
382 basic_machine=m68k-da30
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
383 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
384 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
385 basic_machine=mips-dec
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
386 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387 delta | 3300 | motorola-3300 | motorola-delta \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
388 | 3300-motorola | delta-motorola)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
389 basic_machine=m68k-motorola
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
390 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
391 delta88)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
392 basic_machine=m88k-motorola
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
393 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
394 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
395 dpx20 | dpx20-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
396 basic_machine=rs6000-bull
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
397 os=-bosx
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
398 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
399 dpx2* | dpx2*-bull)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
400 basic_machine=m68k-bull
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
401 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
402 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
403 ebmon29k)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
404 basic_machine=a29k-amd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
405 os=-ebmon
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
406 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
407 elxsi)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
408 basic_machine=elxsi-elxsi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
409 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
410 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
411 encore | umax | mmax)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
412 basic_machine=ns32k-encore
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
413 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
414 es1800 | OSE68k | ose68k | ose | OSE)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
415 basic_machine=m68k-ericsson
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
416 os=-ose
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
417 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
418 fx2800)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
419 basic_machine=i860-alliant
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
420 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
421 genix)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
422 basic_machine=ns32k-ns
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
423 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
424 gmicro)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
425 basic_machine=tron-gmicro
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
426 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
427 ;;
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
428 go32)
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
429 basic_machine=i386-pc
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
430 os=-go32
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
431 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
432 h3050r* | hiux*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
433 basic_machine=hppa1.1-hitachi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
434 os=-hiuxwe2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
435 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
436 h8300hms)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
437 basic_machine=h8300-hitachi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
438 os=-hms
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
439 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
440 h8300xray)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
441 basic_machine=h8300-hitachi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
442 os=-xray
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
443 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
444 h8500hms)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
445 basic_machine=h8500-hitachi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
446 os=-hms
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
447 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
448 harris)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
449 basic_machine=m88k-harris
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
450 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
451 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
452 hp300-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
453 basic_machine=m68k-hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
454 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
455 hp300bsd)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
456 basic_machine=m68k-hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
457 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
458 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
459 hp300hpux)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
460 basic_machine=m68k-hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
461 os=-hpux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
462 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
463 hp3k9[0-9][0-9] | hp9[0-9][0-9])
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
464 basic_machine=hppa1.0-hp
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
465 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
466 hp9k2[0-9][0-9] | hp9k31[0-9])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
467 basic_machine=m68000-hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
468 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
469 hp9k3[2-9][0-9])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
470 basic_machine=m68k-hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
471 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
472 hp9k6[0-9][0-9] | hp6[0-9][0-9])
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
473 basic_machine=hppa1.0-hp
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
474 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
475 hp9k7[0-79][0-9] | hp7[0-79][0-9])
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
476 basic_machine=hppa1.1-hp
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
477 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
478 hp9k78[0-9] | hp78[0-9])
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
479 # FIXME: really hppa2.0-hp
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
480 basic_machine=hppa1.1-hp
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
481 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
482 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
483 # FIXME: really hppa2.0-hp
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
484 basic_machine=hppa1.1-hp
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
485 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
486 hp9k8[0-9][13679] | hp8[0-9][13679])
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
487 basic_machine=hppa1.1-hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
488 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
489 hp9k8[0-9][0-9] | hp8[0-9][0-9])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
490 basic_machine=hppa1.0-hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
491 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
492 hppa-next)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
493 os=-nextstep3
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
494 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
495 hppaosf)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
496 basic_machine=hppa1.1-hp
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
497 os=-osf
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
498 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
499 hppro)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
500 basic_machine=hppa1.1-hp
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
501 os=-proelf
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
502 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
503 i370-ibm* | ibm*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
504 basic_machine=i370-ibm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
505 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
506 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
507 i[34567]86v32)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
508 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
509 os=-sysv32
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
510 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
511 i[34567]86v4*)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
512 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
513 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
514 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
515 i[34567]86v)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
516 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
517 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
518 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
519 i[34567]86sol2)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
520 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
521 os=-solaris2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
522 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
523 i386mach)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
524 basic_machine=i386-mach
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
525 os=-mach
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
526 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
527 i386-vsta | vsta)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
528 basic_machine=i386-unknown
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
529 os=-vsta
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
530 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
531 iris | iris4d)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
532 basic_machine=mips-sgi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
533 case $os in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
534 -irix*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
535 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
536 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
537 os=-irix4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
538 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
539 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
540 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
541 isi68 | isi)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
542 basic_machine=m68k-isi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
543 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
544 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
545 m88k-omron*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
546 basic_machine=m88k-omron
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
547 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
548 magnum | m3230)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
549 basic_machine=mips-mips
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
550 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
551 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
552 merlin)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
553 basic_machine=ns32k-utek
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
554 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
555 ;;
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
556 mingw32)
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
557 basic_machine=i386-pc
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
558 os=-mingw32
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
559 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
560 miniframe)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
561 basic_machine=m68000-convergent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
562 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
563 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
564 basic_machine=m68k-atari
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
565 os=-mint
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
566 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
567 mipsel*-linux*)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
568 basic_machine=mipsel-unknown
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
569 os=-linux-gnu
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
570 ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
571 mips*-linux*)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
572 basic_machine=mips-unknown
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
573 os=-linux-gnu
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
574 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
575 mips3*-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
576 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
577 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
578 mips3*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
579 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
580 ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
581 mmix*)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
582 basic_machine=mmix-knuth
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
583 os=-mmixware
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
584 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
585 monitor)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
586 basic_machine=m68k-rom68k
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
587 os=-coff
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
588 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
589 msdos)
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
590 basic_machine=i386-pc
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
591 os=-msdos
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
592 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
593 mvs)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
594 basic_machine=i370-ibm
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
595 os=-mvs
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
596 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
597 ncr3000)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
598 basic_machine=i486-ncr
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
599 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
600 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
601 netbsd386)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
602 basic_machine=i386-unknown
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
603 os=-netbsd
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
604 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
605 netwinder)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
606 basic_machine=armv4l-rebel
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
607 os=-linux
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
608 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
609 news | news700 | news800 | news900)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
610 basic_machine=m68k-sony
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
611 os=-newsos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
612 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
613 news1000)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
614 basic_machine=m68030-sony
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
615 os=-newsos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
616 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
617 news-3600 | risc-news)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
618 basic_machine=mips-sony
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
619 os=-newsos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
620 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
621 necv70)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
622 basic_machine=v70-nec
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
623 os=-sysv
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
624 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
625 next | m*-next )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
626 basic_machine=m68k-next
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
627 case $os in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
628 -nextstep* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
629 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
630 -ns2*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
631 os=-nextstep2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
632 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
633 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
634 os=-nextstep3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
635 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
636 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
637 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
638 nh3000)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
639 basic_machine=m68k-harris
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
640 os=-cxux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
641 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
642 nh[45]000)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
643 basic_machine=m88k-harris
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
644 os=-cxux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
645 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
646 nindy960)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
647 basic_machine=i960-intel
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
648 os=-nindy
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
649 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
650 mon960)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
651 basic_machine=i960-intel
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
652 os=-mon960
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
653 ;;
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
654 nonstopux)
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
655 basic_machine=mips-compaq
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
656 os=-nonstopux
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
657 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
658 np1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
659 basic_machine=np1-gould
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
660 ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
661 nsr-tandem)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
662 basic_machine=nsr-tandem
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
663 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
664 op50n-* | op60c-*)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
665 basic_machine=hppa1.1-oki
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
666 os=-proelf
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
667 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
668 OSE68000 | ose68000)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
669 basic_machine=m68000-ericsson
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
670 os=-ose
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
671 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
672 os68k)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
673 basic_machine=m68k-none
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
674 os=-os68k
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
675 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
676 pa-hitachi)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
677 basic_machine=hppa1.1-hitachi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
678 os=-hiuxwe2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
679 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
680 paragon)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
681 basic_machine=i860-intel
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
682 os=-osf
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
683 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
684 pbd)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
685 basic_machine=sparc-tti
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
686 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
687 pbb)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
688 basic_machine=m68k-tti
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
689 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
690 pc532 | pc532-*)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
691 basic_machine=ns32k-pc532
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
692 ;;
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
693 pentium | p5 | k5 | k6 | nexgen)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
694 basic_machine=i586-pc
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
695 ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
696 pentiumpro | p6 | 6x86 | athlon)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
697 basic_machine=i686-pc
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
698 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
699 pentiumii | pentium2)
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
700 basic_machine=i686-pc
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
701 ;;
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
702 pentium-* | p5-* | k5-* | k6-* | nexgen-*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
703 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
704 ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
705 pentiumpro-* | p6-* | 6x86-* | athlon-*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
706 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
707 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
708 pentiumii-* | pentium2-*)
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
709 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
710 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
711 pn)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
712 basic_machine=pn-gould
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
713 ;;
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
714 power) basic_machine=power-ibm
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
715 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
716 ppc) basic_machine=powerpc-unknown
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
717 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
718 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
719 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
720 ppcle | powerpclittle | ppc-le | powerpc-little)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
721 basic_machine=powerpcle-unknown
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
722 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
723 ppcle-* | powerpclittle-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
724 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
725 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
726 ps2)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
727 basic_machine=i386-ibm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
728 ;;
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
729 pw32)
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
730 basic_machine=i586-unknown
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
731 os=-pw32
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
732 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
733 rom68k)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
734 basic_machine=m68k-rom68k
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
735 os=-coff
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
736 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
737 rm[46]00)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
738 basic_machine=mips-siemens
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
739 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
740 rtpc | rtpc-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
741 basic_machine=romp-ibm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
742 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
743 sa29200)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
744 basic_machine=a29k-amd
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
745 os=-udi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
746 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
747 sequent)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
748 basic_machine=i386-sequent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
749 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
750 sh)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
751 basic_machine=sh-hitachi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
752 os=-hms
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
753 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
754 sparclite-wrs)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
755 basic_machine=sparclite-wrs
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
756 os=-vxworks
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
757 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
758 sps7)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
759 basic_machine=m68k-bull
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
760 os=-sysv2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
761 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
762 spur)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
763 basic_machine=spur-unknown
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
764 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
765 st2000)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
766 basic_machine=m68k-tandem
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
767 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
768 stratus)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
769 basic_machine=i860-stratus
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
770 os=-sysv4
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
771 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
772 sun2)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
773 basic_machine=m68000-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
774 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
775 sun2os3)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
776 basic_machine=m68000-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
777 os=-sunos3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
778 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
779 sun2os4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
780 basic_machine=m68000-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
781 os=-sunos4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
782 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
783 sun3os3)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
784 basic_machine=m68k-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
785 os=-sunos3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
786 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
787 sun3os4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
788 basic_machine=m68k-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
789 os=-sunos4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
790 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
791 sun4os3)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
792 basic_machine=sparc-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
793 os=-sunos3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
794 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
795 sun4os4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
796 basic_machine=sparc-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
797 os=-sunos4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
798 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
799 sun4sol2)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
800 basic_machine=sparc-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
801 os=-solaris2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
802 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
803 sun3 | sun3-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
804 basic_machine=m68k-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
805 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
806 sun4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
807 basic_machine=sparc-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
808 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
809 sun386 | sun386i | roadrunner)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
810 basic_machine=i386-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
811 ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
812 sv1)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
813 basic_machine=sv1-cray
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
814 os=-unicos
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
815 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
816 symmetry)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
817 basic_machine=i386-sequent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
818 os=-dynix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
819 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
820 t3e)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
821 basic_machine=t3e-cray
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
822 os=-unicos
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
823 ;;
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
824 tic54x | c54x*)
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
825 basic_machine=tic54x-unknown
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
826 os=-coff
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
827 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
828 tx39)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
829 basic_machine=mipstx39-unknown
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
830 ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
831 tx39el)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
832 basic_machine=mipstx39el-unknown
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
833 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
834 tower | tower-32)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
835 basic_machine=m68k-ncr
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
836 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
837 udi29k)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
838 basic_machine=a29k-amd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
839 os=-udi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
840 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
841 ultra3)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
842 basic_machine=a29k-nyu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
843 os=-sym1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
844 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
845 v810 | necv810)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
846 basic_machine=v810-nec
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
847 os=-none
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
848 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
849 vaxv)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
850 basic_machine=vax-dec
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
851 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
852 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
853 vms)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
854 basic_machine=vax-dec
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
855 os=-vms
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
856 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
857 vpp*|vx|vx-*)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
858 basic_machine=f301-fujitsu
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
859 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
860 vxworks960)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
861 basic_machine=i960-wrs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
862 os=-vxworks
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
863 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
864 vxworks68)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
865 basic_machine=m68k-wrs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
866 os=-vxworks
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
867 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
868 vxworks29k)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
869 basic_machine=a29k-wrs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
870 os=-vxworks
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
871 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
872 w65*)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
873 basic_machine=w65-wdc
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
874 os=-none
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
875 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
876 w89k-*)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
877 basic_machine=hppa1.1-winbond
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
878 os=-proelf
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
879 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
880 xmp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
881 basic_machine=xmp-cray
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
882 os=-unicos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
883 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
884 xps | xps100)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
885 basic_machine=xps100-honeywell
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
886 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
887 z8k-*-coff)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
888 basic_machine=z8k-unknown
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
889 os=-sim
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
890 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
891 none)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
892 basic_machine=none-none
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
893 os=-none
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
894 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
895
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
896 # Here we handle the default manufacturer of certain CPU types. It is in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
897 # some cases the only manufacturer, in others, it is the most popular.
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
898 w89k)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
899 basic_machine=hppa1.1-winbond
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
900 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
901 op50n)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
902 basic_machine=hppa1.1-oki
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
903 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
904 op60c)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
905 basic_machine=hppa1.1-oki
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
906 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
907 mips)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
908 if [ x$os = x-linux-gnu ]; then
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
909 basic_machine=mips-unknown
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
910 else
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
911 basic_machine=mips-mips
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
912 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
913 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
914 romp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
915 basic_machine=romp-ibm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
916 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
917 rs6000)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
918 basic_machine=rs6000-ibm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
919 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
920 vax)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
921 basic_machine=vax-dec
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
922 ;;
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
923 pdp10)
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
924 # there are many clones, so DEC is not a safe bet
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
925 basic_machine=pdp10-unknown
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
926 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
927 pdp11)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
928 basic_machine=pdp11-dec
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
929 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
930 we32k)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
931 basic_machine=we32k-att
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
932 ;;
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
933 sh3 | sh4)
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
934 basic_machine=sh-unknown
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
935 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
936 sparc | sparcv9)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
937 basic_machine=sparc-sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
938 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
939 cydra)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
940 basic_machine=cydra-cydrome
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
941 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
942 orion)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
943 basic_machine=orion-highlevel
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
944 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
945 orion105)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
946 basic_machine=clipper-highlevel
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
947 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
948 mac | mpw | mac-mpw)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
949 basic_machine=m68k-apple
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
950 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
951 pmac | pmac-mpw)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
952 basic_machine=powerpc-apple
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
953 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
954 c4x*)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
955 basic_machine=c4x-none
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
956 os=-coff
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
957 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
958 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
959 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
960 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
961 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
962 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
963
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
964 # Here we canonicalize certain aliases for manufacturers.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
965 case $basic_machine in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
966 *-digital*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
967 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
968 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
969 *-commodore*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
970 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
971 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
972 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
973 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
974 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
975
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
976 # Decode manufacturer-specific aliases for certain operating systems.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
977
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
978 if [ x"$os" != x"" ]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
979 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
980 case $os in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
981 # First match some system type aliases
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
982 # that might get confused with valid system types.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
983 # -solaris* is a basic system type, with this one exception.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
984 -solaris1 | -solaris1.*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
985 os=`echo $os | sed -e 's|solaris1|sunos4|'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
986 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
987 -solaris)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
988 os=-solaris2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
989 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
990 -svr4*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
991 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
992 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
993 -unixware*)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
994 os=-sysv4.2uw
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
995 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
996 -gnu/linux*)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
997 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
998 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
999 # First accept the basic system types.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1000 # The portable systems comes first.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1001 # Each alternative MUST END IN A *, to match a version number.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1002 # -sysv* is not here because it comes later, after sysvr4.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1003 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1004 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1005 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1006 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1007 | -aos* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1008 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1009 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1010 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1011 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1012 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1013 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1014 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1015 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1016 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
1017 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
1018 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1019 # Remember, each alternative MUST END IN *, to match a version number.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1020 ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1021 -qnx*)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1022 case $basic_machine in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1023 x86-* | i[34567]86-*)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1024 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1025 *)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1026 os=-nto$os
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1027 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1028 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1029 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1030 -nto*)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1031 os=-nto-qnx
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1032 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1033 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1034 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1035 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1036 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1037 -mac*)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1038 os=`echo $os | sed -e 's|mac|macos|'`
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1039 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1040 -linux*)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1041 os=`echo $os | sed -e 's|linux|linux-gnu|'`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1042 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1043 -sunos5*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1044 os=`echo $os | sed -e 's|sunos5|solaris2|'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1045 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1046 -sunos6*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1047 os=`echo $os | sed -e 's|sunos6|solaris3|'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1048 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1049 -opened*)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1050 os=-openedition
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1051 ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1052 -wince*)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1053 os=-wince
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1054 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1055 -osfrose*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1056 os=-osfrose
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1057 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1058 -osf*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1059 os=-osf
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1060 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1061 -utek*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1062 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1063 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1064 -dynix*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1065 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1066 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1067 -acis*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1068 os=-aos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1069 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1070 -386bsd)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1071 os=-bsd
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1072 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1073 -ctix* | -uts*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1074 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1075 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1076 -ns2 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1077 os=-nextstep2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1078 ;;
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
1079 -nsk*)
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1080 os=-nsk
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1081 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1082 # Preserve the version number of sinix5.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1083 -sinix5.*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1084 os=`echo $os | sed -e 's|sinix|sysv|'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1085 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1086 -sinix*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1087 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1088 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1089 -triton*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1090 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1091 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1092 -oss*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1093 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1094 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1095 -svr4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1096 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1097 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1098 -svr3)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1099 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1100 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1101 -sysvr4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1102 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1103 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1104 # This must come after -sysvr4.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1105 -sysv*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1106 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1107 -ose*)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1108 os=-ose
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1109 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1110 -es1800*)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1111 os=-ose
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1112 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1113 -xenix)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1114 os=-xenix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1115 ;;
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
1116 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1117 os=-mint
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1118 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1119 -none)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1120 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1121 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1122 # Get rid of the `-' at the beginning of $os.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1123 os=`echo $os | sed 's/[^-]*-//'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1124 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1125 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1126 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1127 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1128 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1129
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1130 # Here we handle the default operating systems that come with various machines.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1131 # The value should be what the vendor currently ships out the door with their
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1132 # machine or put another way, the most popular os provided with the machine.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1133
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1134 # Note that if you're going to try to match "-MANUFACTURER" here (say,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1135 # "-sun"), then you have to tell the case statement up towards the top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1136 # that MANUFACTURER isn't an operating system. Otherwise, code above
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1137 # will signal an error saying that MANUFACTURER isn't an operating
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1138 # system, and we'll never get to this point.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1139
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1140 case $basic_machine in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1141 *-acorn)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1142 os=-riscix1.2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1143 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1144 arm*-rebel)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1145 os=-linux
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1146 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1147 arm*-semi)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1148 os=-aout
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1149 ;;
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
1150 pdp10-*)
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
1151 os=-tops20
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
1152 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1153 pdp11-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1154 os=-none
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1155 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1156 *-dec | vax-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1157 os=-ultrix4.2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1158 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1159 m68*-apollo)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1160 os=-domain
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1161 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1162 i386-sun)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1163 os=-sunos4.0.2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1164 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1165 m68000-sun)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1166 os=-sunos3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1167 # This also exists in the configure program, but was not the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1168 # default.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1169 # os=-sunos4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1170 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1171 m68*-cisco)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1172 os=-aout
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1173 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1174 mips*-cisco)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1175 os=-elf
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1176 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1177 mips*-*)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1178 os=-elf
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1179 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1180 *-tti) # must be before sparc entry or we get the wrong os.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1181 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1182 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1183 sparc-* | *-sun)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1184 os=-sunos4.1.1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1185 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1186 *-be)
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1187 os=-beos
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1188 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1189 *-ibm)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1190 os=-aix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1191 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1192 *-wec)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1193 os=-proelf
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1194 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1195 *-winbond)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1196 os=-proelf
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1197 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1198 *-oki)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1199 os=-proelf
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1200 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1201 *-hp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1202 os=-hpux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1203 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1204 *-hitachi)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1205 os=-hiux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1206 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1207 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1208 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1209 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1210 *-cbm)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1211 os=-amigaos
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1212 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1213 *-dg)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1214 os=-dgux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1215 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1216 *-dolphin)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1217 os=-sysv3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1218 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1219 m68k-ccur)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1220 os=-rtu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1221 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1222 m88k-omron*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1223 os=-luna
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1224 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1225 *-next )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1226 os=-nextstep
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1227 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1228 *-sequent)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1229 os=-ptx
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1230 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1231 *-crds)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1232 os=-unos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1233 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1234 *-ns)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1235 os=-genix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1236 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1237 i370-*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1238 os=-mvs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1239 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1240 *-next)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1241 os=-nextstep3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1242 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1243 *-gould)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1244 os=-sysv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1245 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1246 *-highlevel)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1247 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1248 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1249 *-encore)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1250 os=-bsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1251 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1252 *-sgi)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1253 os=-irix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1254 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1255 *-siemens)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1256 os=-sysv4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1257 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1258 *-masscomp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1259 os=-rtu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1260 ;;
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
1261 f30[01]-fujitsu | f700-fujitsu)
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1262 os=-uxpv
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1263 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1264 *-rom68k)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1265 os=-coff
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1266 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1267 *-*bug)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1268 os=-coff
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1269 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1270 *-apple)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1271 os=-macos
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1272 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1273 *-atari*)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1274 os=-mint
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1275 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1276 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1277 os=-none
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1278 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1279 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1280 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1281
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1282 # Here we handle the case where we know the os, and the CPU type, but not the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1283 # manufacturer. We pick the logical manufacturer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1284 vendor=unknown
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1285 case $basic_machine in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1286 *-unknown)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1287 case $os in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1288 -riscix*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1289 vendor=acorn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1290 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1291 -sunos*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1292 vendor=sun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1293 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1294 -aix*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1295 vendor=ibm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1296 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1297 -beos*)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1298 vendor=be
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1299 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1300 -hpux*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1301 vendor=hp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1302 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1303 -mpeix*)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1304 vendor=hp
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1305 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1306 -hiux*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1307 vendor=hitachi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1308 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1309 -unos*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1310 vendor=crds
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1311 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1312 -dgux*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1313 vendor=dg
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1314 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1315 -luna*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1316 vendor=omron
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1317 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1318 -genix*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1319 vendor=ns
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1320 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1321 -mvs* | -opened*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1322 vendor=ibm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1323 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1324 -ptx*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1325 vendor=sequent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1326 ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 375
diff changeset
1327 -vxsim* | -vxworks*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1328 vendor=wrs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1329 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1330 -aux*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1331 vendor=apple
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1332 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1333 -hms*)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1334 vendor=hitachi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1335 ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1336 -mpw* | -macos*)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1337 vendor=apple
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1338 ;;
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
1339 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1340 vendor=atari
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 412
diff changeset
1341 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1342 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1343 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1344 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1345 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1346
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1347 echo $basic_machine$os
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1348 exit 0
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1349
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1350 # Local variables:
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1351 # eval: (add-hook 'write-file-hooks 'time-stamp)
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 442
diff changeset
1352 # time-stamp-start: "timestamp='"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1353 # time-stamp-format: "%:y-%02m-%02d"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1354 # time-stamp-end: "'"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
1355 # End: