~ubuntu-branches/ubuntu/trusty/ifeffit/trusty-proposed

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Carlo Segre
  • Date: 2010-04-07 07:11:10 UTC
  • Revision ID: james.westby@ubuntu.com-20100407071110-spgaczzxuixbdeo2
Tags: 2:1.2.11d-6
* Clean up build rules to minimize the size of diff.gz
* Switch to dpkg-source 3.0 (quilt) format
* Rename perl wrapper package to libifeffit-perl (Closes: #575933)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
# Configuration validation subroutine script.
3
 
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
 
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
5
 
#   Free Software Foundation, Inc.
6
 
 
7
 
timestamp='2009-06-11'
8
 
 
 
2
# Configuration validation subroutine script, version 1.1.
 
3
#   Copyright (C) 1991, 92-97, 1998 Free Software Foundation, Inc.
9
4
# This file is (in principle) common to ALL GNU software.
10
5
# The presence of a machine in this file suggests that SOME GNU software
11
6
# can handle that machine.  It does not imply ALL GNU software can.
22
17
#
23
18
# You should have received a copy of the GNU General Public License
24
19
# along with this program; if not, write to the Free Software
25
 
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
26
 
# 02110-1301, USA.
27
 
#
 
20
# Foundation, Inc., 59 Temple Place - Suite 330,
 
21
# Boston, MA 02111-1307, USA.
 
22
 
28
23
# As a special exception to the GNU General Public License, if you
29
24
# distribute this file as part of a program that contains a
30
25
# configuration script generated by Autoconf, you may include it under
31
26
# the same distribution terms that you use for the rest of that program.
32
27
 
33
 
 
34
 
# Please send patches to <config-patches@gnu.org>.  Submit a context
35
 
# diff and a properly formatted ChangeLog entry.
36
 
#
37
28
# Configuration subroutine to validate and canonicalize a configuration type.
38
29
# Supply the specified configuration type as an argument.
39
30
# If it is invalid, we print an error message on stderr and exit with code 1.
54
45
#       CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
55
46
# It is wrong to echo any other type of specification.
56
47
 
57
 
me=`echo "$0" | sed -e 's,.*/,,'`
58
 
 
59
 
usage="\
60
 
Usage: $0 [OPTION] CPU-MFR-OPSYS
61
 
       $0 [OPTION] ALIAS
62
 
 
63
 
Canonicalize a configuration name.
64
 
 
65
 
Operation modes:
66
 
  -h, --help         print this help, then exit
67
 
  -t, --time-stamp   print date of last modification, then exit
68
 
  -v, --version      print version number, then exit
69
 
 
70
 
Report bugs and patches to <config-patches@gnu.org>."
71
 
 
72
 
version="\
73
 
GNU config.sub ($timestamp)
74
 
 
75
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
76
 
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
77
 
 
78
 
This is free software; see the source for copying conditions.  There is NO
79
 
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
80
 
 
81
 
help="
82
 
Try \`$me --help' for more information."
83
 
 
84
 
# Parse command line
85
 
while test $# -gt 0 ; do
86
 
  case $1 in
87
 
    --time-stamp | --time* | -t )
88
 
       echo "$timestamp" ; exit ;;
89
 
    --version | -v )
90
 
       echo "$version" ; exit ;;
91
 
    --help | --h* | -h )
92
 
       echo "$usage"; exit ;;
93
 
    -- )     # Stop option processing
94
 
       shift; break ;;
95
 
    - ) # Use stdin as input.
96
 
       break ;;
97
 
    -* )
98
 
       echo "$me: invalid option $1$help"
99
 
       exit 1 ;;
100
 
 
101
 
    *local*)
102
 
       # First pass through any local machine types.
103
 
       echo $1
104
 
       exit ;;
105
 
 
106
 
    * )
107
 
       break ;;
108
 
  esac
109
 
done
110
 
 
111
 
case $# in
112
 
 0) echo "$me: missing argument$help" >&2
113
 
    exit 1;;
114
 
 1) ;;
115
 
 *) echo "$me: too many arguments$help" >&2
116
 
    exit 1;;
 
48
if [ x$1 = x ]
 
49
then
 
50
        echo Configuration name missing. 1>&2
 
51
        echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
 
52
        echo "or     $0 ALIAS" 1>&2
 
53
        echo where ALIAS is a recognized configuration type. 1>&2
 
54
        exit 1
 
55
fi
 
56
 
 
57
# First pass through any local machine types.
 
58
case $1 in
 
59
        *local*)
 
60
                echo $1
 
61
                exit 0
 
62
                ;;
 
63
        *)
 
64
        ;;
117
65
esac
118
66
 
119
67
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
120
68
# Here we must recognize all the valid KERNEL-OS combinations.
121
69
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
122
70
case $maybe_os in
123
 
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
124
 
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
125
 
  kopensolaris*-gnu* | \
126
 
  storm-chaos* | os2-emx* | rtmk-nova*)
 
71
  linux-gnu*)
127
72
    os=-$maybe_os
128
73
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
129
74
    ;;
149
94
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
150
95
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
151
96
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
152
 
        -apple | -axis | -knuth | -cray)
153
 
                os=
154
 
                basic_machine=$1
155
 
                ;;
156
 
        -bluegene*)
157
 
                os=-cnk
158
 
                ;;
159
 
        -sim | -cisco | -oki | -wec | -winbond)
160
 
                os=
161
 
                basic_machine=$1
162
 
                ;;
163
 
        -scout)
164
 
                ;;
165
 
        -wrs)
166
 
                os=-vxworks
167
 
                basic_machine=$1
168
 
                ;;
169
 
        -chorusos*)
170
 
                os=-chorusos
171
 
                basic_machine=$1
172
 
                ;;
173
 
        -chorusrdb)
174
 
                os=-chorusrdb
175
 
                basic_machine=$1
176
 
                ;;
 
97
        -apple)
 
98
                os=
 
99
                basic_machine=$1
 
100
                ;;
177
101
        -hiux*)
178
102
                os=-hiuxwe2
179
103
                ;;
180
 
        -sco6)
181
 
                os=-sco5v6
182
 
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
183
 
                ;;
184
104
        -sco5)
185
 
                os=-sco3.2v5
 
105
                os=sco3.2v5
186
106
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
187
107
                ;;
188
108
        -sco4)
197
117
                # Don't forget version if it is 3.2v4 or newer.
198
118
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
199
119
                ;;
200
 
        -sco5v6*)
201
 
                # Don't forget version if it is 3.2v4 or newer.
202
 
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
203
 
                ;;
204
120
        -sco*)
205
121
                os=-sco3.2v2
206
122
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
207
123
                ;;
208
 
        -udk*)
209
 
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
210
 
                ;;
211
124
        -isc)
212
125
                os=-isc2.2
213
126
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
230
143
        -psos*)
231
144
                os=-psos
232
145
                ;;
233
 
        -mint | -mint[0-9]*)
234
 
                basic_machine=m68k-atari
235
 
                os=-mint
236
 
                ;;
237
146
esac
238
147
 
239
148
# Decode aliases for certain CPU-COMPANY combinations.
240
149
case $basic_machine in
241
150
        # Recognize the basic CPU types without company name.
242
151
        # Some are omitted here because they have special meanings below.
243
 
        1750a | 580 \
244
 
        | a29k \
245
 
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
246
 
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
247
 
        | am33_2.0 \
248
 
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
249
 
        | bfin \
250
 
        | c4x | clipper \
251
 
        | d10v | d30v | dlx | dsp16xx \
252
 
        | fido | fr30 | frv \
253
 
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
254
 
        | i370 | i860 | i960 | ia64 \
255
 
        | ip2k | iq2000 \
256
 
        | lm32 \
257
 
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
258
 
        | maxq | mb | microblaze | mcore | mep | metag \
259
 
        | mips | mipsbe | mipseb | mipsel | mipsle \
260
 
        | mips16 \
261
 
        | mips64 | mips64el \
262
 
        | mips64octeon | mips64octeonel \
263
 
        | mips64orion | mips64orionel \
264
 
        | mips64r5900 | mips64r5900el \
265
 
        | mips64vr | mips64vrel \
266
 
        | mips64vr4100 | mips64vr4100el \
267
 
        | mips64vr4300 | mips64vr4300el \
268
 
        | mips64vr5000 | mips64vr5000el \
269
 
        | mips64vr5900 | mips64vr5900el \
270
 
        | mipsisa32 | mipsisa32el \
271
 
        | mipsisa32r2 | mipsisa32r2el \
272
 
        | mipsisa64 | mipsisa64el \
273
 
        | mipsisa64r2 | mipsisa64r2el \
274
 
        | mipsisa64sb1 | mipsisa64sb1el \
275
 
        | mipsisa64sr71k | mipsisa64sr71kel \
276
 
        | mipstx39 | mipstx39el \
277
 
        | mn10200 | mn10300 \
278
 
        | moxie \
279
 
        | mt \
280
 
        | msp430 \
281
 
        | nios | nios2 \
282
 
        | ns16k | ns32k \
283
 
        | or32 \
284
 
        | pdp10 | pdp11 | pj | pjl \
285
 
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
286
 
        | pyramid \
287
 
        | score \
288
 
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
289
 
        | sh64 | sh64le \
290
 
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
291
 
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
292
 
        | spu | strongarm \
293
 
        | tahoe | thumb | tic4x | tic80 | tron \
294
 
        | v850 | v850e \
295
 
        | we32k \
296
 
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
297
 
        | z8k | z80)
298
 
                basic_machine=$basic_machine-unknown
299
 
                ;;
300
 
        m6811 | m68hc11 | m6812 | m68hc12)
301
 
                # Motorola 68HC11/12.
302
 
                basic_machine=$basic_machine-unknown
303
 
                os=-none
304
 
                ;;
305
 
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
306
 
                ;;
307
 
        ms1)
308
 
                basic_machine=mt-unknown
309
 
                ;;
310
 
 
 
152
        tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
 
153
                | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
 
154
                | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 | hppa2.0 \
 
155
                | hppa2.0w \
 
156
                | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \
 
157
                | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \
 
158
                | mips64 | mipsel | mips64el | mips64orion | mips64orionel \
 
159
                | mipstx39 | mipstx39el | armv[34][lb] \
 
160
                | sparc | sparclet | sparclite | sparc64 | v850)
 
161
                basic_machine=$basic_machine-unknown
 
162
                ;;
311
163
        # We use `pc' rather than `unknown'
312
164
        # because (1) that's what they normally are, and
313
165
        # (2) the word "unknown" tends to confuse beginning users.
314
 
        i*86 | x86_64)
 
166
        i[34567]86)
315
167
          basic_machine=$basic_machine-pc
316
168
          ;;
317
169
        # Object if more than one company name word.
320
172
                exit 1
321
173
                ;;
322
174
        # Recognize the basic CPU types with company name.
323
 
        580-* \
324
 
        | a29k-* \
325
 
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
326
 
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
327
 
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
328
 
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
329
 
        | avr-* | avr32-* \
330
 
        | bfin-* | bs2000-* \
331
 
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
332
 
        | clipper-* | craynv-* | cydra-* \
333
 
        | d10v-* | d30v-* | dlx-* \
334
 
        | elxsi-* \
335
 
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
336
 
        | h8300-* | h8500-* \
337
 
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
338
 
        | i*86-* | i860-* | i960-* | ia64-* \
339
 
        | ip2k-* | iq2000-* \
340
 
        | lm32-* \
341
 
        | m32c-* | m32r-* | m32rle-* \
342
 
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
343
 
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
344
 
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
345
 
        | mips16-* \
346
 
        | mips64-* | mips64el-* \
347
 
        | mips64octeon-* | mips64octeonel-* \
348
 
        | mips64orion-* | mips64orionel-* \
349
 
        | mips64r5900-* | mips64r5900el-* \
350
 
        | mips64vr-* | mips64vrel-* \
351
 
        | mips64vr4100-* | mips64vr4100el-* \
352
 
        | mips64vr4300-* | mips64vr4300el-* \
353
 
        | mips64vr5000-* | mips64vr5000el-* \
354
 
        | mips64vr5900-* | mips64vr5900el-* \
355
 
        | mipsisa32-* | mipsisa32el-* \
356
 
        | mipsisa32r2-* | mipsisa32r2el-* \
357
 
        | mipsisa64-* | mipsisa64el-* \
358
 
        | mipsisa64r2-* | mipsisa64r2el-* \
359
 
        | mipsisa64sb1-* | mipsisa64sb1el-* \
360
 
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
361
 
        | mipstx39-* | mipstx39el-* \
362
 
        | mmix-* \
363
 
        | mt-* \
364
 
        | msp430-* \
365
 
        | nios-* | nios2-* \
366
 
        | none-* | np1-* | ns16k-* | ns32k-* \
367
 
        | orion-* \
368
 
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
369
 
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
370
 
        | pyramid-* \
371
 
        | romp-* | rs6000-* \
372
 
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
373
 
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
374
 
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
375
 
        | sparclite-* \
376
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
377
 
        | tahoe-* | thumb-* \
378
 
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
379
 
        | tron-* \
380
 
        | v850-* | v850e-* | vax-* \
381
 
        | we32k-* \
382
 
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
383
 
        | xstormy16-* | xtensa*-* \
384
 
        | ymp-* \
385
 
        | z8k-* | z80-*)
386
 
                ;;
387
 
        # Recognize the basic CPU types without company name, with glob match.
388
 
        xtensa*)
389
 
                basic_machine=$basic_machine-unknown
 
175
        vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \
 
176
              | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
 
177
              | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
 
178
              | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \
 
179
              | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* \
 
180
              | hppa2.0w-* \
 
181
              | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \
 
182
              | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \
 
183
              | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
 
184
              | sparc64-* | mips64-* | mipsel-* | armv[34][lb]-*\
 
185
              | mips64el-* | mips64orion-* | mips64orionel-*  \
 
186
              | mipstx39-* | mipstx39el-* \
 
187
              | f301-* | armv*-*)
390
188
                ;;
391
189
        # Recognize the various machine names and aliases which stand
392
190
        # for a CPU type and a company and sometimes even an OS.
393
 
        386bsd)
394
 
                basic_machine=i386-unknown
395
 
                os=-bsd
396
 
                ;;
397
191
        3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
398
192
                basic_machine=m68000-att
399
193
                ;;
400
194
        3b*)
401
195
                basic_machine=we32k-att
402
196
                ;;
403
 
        a29khif)
404
 
                basic_machine=a29k-amd
405
 
                os=-udi
406
 
                ;;
407
 
        abacus)
408
 
                basic_machine=abacus-unknown
409
 
                ;;
410
 
        adobe68k)
411
 
                basic_machine=m68010-adobe
412
 
                os=-scout
413
 
                ;;
414
197
        alliant | fx80)
415
198
                basic_machine=fx80-alliant
416
199
                ;;
421
204
                basic_machine=a29k-none
422
205
                os=-bsd
423
206
                ;;
424
 
        amd64)
425
 
                basic_machine=x86_64-pc
426
 
                ;;
427
 
        amd64-*)
428
 
                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
429
 
                ;;
430
207
        amdahl)
431
208
                basic_machine=580-amdahl
432
209
                os=-sysv
433
210
                ;;
434
211
        amiga | amiga-*)
435
 
                basic_machine=m68k-unknown
 
212
                basic_machine=m68k-cbm
436
213
                ;;
437
214
        amigaos | amigados)
438
 
                basic_machine=m68k-unknown
 
215
                basic_machine=m68k-cbm
439
216
                os=-amigaos
440
217
                ;;
441
218
        amigaunix | amix)
442
 
                basic_machine=m68k-unknown
 
219
                basic_machine=m68k-cbm
443
220
                os=-sysv4
444
221
                ;;
445
222
        apollo68)
446
223
                basic_machine=m68k-apollo
447
224
                os=-sysv
448
225
                ;;
449
 
        apollo68bsd)
450
 
                basic_machine=m68k-apollo
451
 
                os=-bsd
452
 
                ;;
453
 
        aros)
454
 
                basic_machine=i386-pc
455
 
                os=-aros
456
 
                ;;
457
226
        aux)
458
227
                basic_machine=m68k-apple
459
228
                os=-aux
462
231
                basic_machine=ns32k-sequent
463
232
                os=-dynix
464
233
                ;;
465
 
        blackfin)
466
 
                basic_machine=bfin-unknown
467
 
                os=-linux
468
 
                ;;
469
 
        blackfin-*)
470
 
                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
471
 
                os=-linux
472
 
                ;;
473
 
        bluegene*)
474
 
                basic_machine=powerpc-ibm
475
 
                os=-cnk
476
 
                ;;
477
 
        c90)
478
 
                basic_machine=c90-cray
479
 
                os=-unicos
480
 
                ;;
481
 
        cegcc)
482
 
                basic_machine=arm-unknown
483
 
                os=-cegcc
484
 
                ;;
485
234
        convex-c1)
486
235
                basic_machine=c1-convex
487
236
                os=-bsd
502
251
                basic_machine=c38-convex
503
252
                os=-bsd
504
253
                ;;
505
 
        cray | j90)
506
 
                basic_machine=j90-cray
507
 
                os=-unicos
508
 
                ;;
509
 
        craynv)
510
 
                basic_machine=craynv-cray
511
 
                os=-unicosmp
512
 
                ;;
513
 
        cr16)
514
 
                basic_machine=cr16-unknown
515
 
                os=-elf
 
254
        cray | ymp)
 
255
                basic_machine=ymp-cray
 
256
                os=-unicos
 
257
                ;;
 
258
        cray2)
 
259
                basic_machine=cray2-cray
 
260
                os=-unicos
 
261
                ;;
 
262
        [ctj]90-cray)
 
263
                basic_machine=c90-cray
 
264
                os=-unicos
516
265
                ;;
517
266
        crds | unos)
518
267
                basic_machine=m68k-crds
519
268
                ;;
520
 
        crisv32 | crisv32-* | etraxfs*)
521
 
                basic_machine=crisv32-axis
522
 
                ;;
523
 
        cris | cris-* | etrax*)
524
 
                basic_machine=cris-axis
525
 
                ;;
526
 
        crx)
527
 
                basic_machine=crx-unknown
528
 
                os=-elf
529
 
                ;;
530
269
        da30 | da30-*)
531
270
                basic_machine=m68k-da30
532
271
                ;;
533
272
        decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
534
273
                basic_machine=mips-dec
535
274
                ;;
536
 
        decsystem10* | dec10*)
537
 
                basic_machine=pdp10-dec
538
 
                os=-tops10
539
 
                ;;
540
 
        decsystem20* | dec20*)
541
 
                basic_machine=pdp10-dec
542
 
                os=-tops20
543
 
                ;;
544
275
        delta | 3300 | motorola-3300 | motorola-delta \
545
276
              | 3300-motorola | delta-motorola)
546
277
                basic_machine=m68k-motorola
549
280
                basic_machine=m88k-motorola
550
281
                os=-sysv3
551
282
                ;;
552
 
        dicos)
553
 
                basic_machine=i686-pc
554
 
                os=-dicos
555
 
                ;;
556
 
        djgpp)
557
 
                basic_machine=i586-pc
558
 
                os=-msdosdjgpp
559
 
                ;;
560
283
        dpx20 | dpx20-*)
561
284
                basic_machine=rs6000-bull
562
285
                os=-bosx
576
299
        encore | umax | mmax)
577
300
                basic_machine=ns32k-encore
578
301
                ;;
579
 
        es1800 | OSE68k | ose68k | ose | OSE)
580
 
                basic_machine=m68k-ericsson
581
 
                os=-ose
582
 
                ;;
583
302
        fx2800)
584
303
                basic_machine=i860-alliant
585
304
                ;;
590
309
                basic_machine=tron-gmicro
591
310
                os=-sysv
592
311
                ;;
593
 
        go32)
594
 
                basic_machine=i386-pc
595
 
                os=-go32
596
 
                ;;
597
312
        h3050r* | hiux*)
598
313
                basic_machine=hppa1.1-hitachi
599
314
                os=-hiuxwe2
602
317
                basic_machine=h8300-hitachi
603
318
                os=-hms
604
319
                ;;
605
 
        h8300xray)
606
 
                basic_machine=h8300-hitachi
607
 
                os=-xray
608
 
                ;;
609
 
        h8500hms)
610
 
                basic_machine=h8500-hitachi
611
 
                os=-hms
612
 
                ;;
613
320
        harris)
614
321
                basic_machine=m88k-harris
615
322
                os=-sysv3
625
332
                basic_machine=m68k-hp
626
333
                os=-hpux
627
334
                ;;
628
 
        hp3k9[0-9][0-9] | hp9[0-9][0-9])
629
 
                basic_machine=hppa1.0-hp
630
 
                ;;
631
335
        hp9k2[0-9][0-9] | hp9k31[0-9])
632
336
                basic_machine=m68000-hp
633
337
                ;;
634
338
        hp9k3[2-9][0-9])
635
339
                basic_machine=m68k-hp
636
340
                ;;
637
 
        hp9k6[0-9][0-9] | hp6[0-9][0-9])
638
 
                basic_machine=hppa1.0-hp
639
 
                ;;
640
 
        hp9k7[0-79][0-9] | hp7[0-79][0-9])
641
 
                basic_machine=hppa1.1-hp
642
 
                ;;
643
 
        hp9k78[0-9] | hp78[0-9])
644
 
                # FIXME: really hppa2.0-hp
645
 
                basic_machine=hppa1.1-hp
646
 
                ;;
647
 
        hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
648
 
                # FIXME: really hppa2.0-hp
649
 
                basic_machine=hppa1.1-hp
650
 
                ;;
651
 
        hp9k8[0-9][13679] | hp8[0-9][13679])
 
341
        hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
652
342
                basic_machine=hppa1.1-hp
653
343
                ;;
654
344
        hp9k8[0-9][0-9] | hp8[0-9][0-9])
657
347
        hppa-next)
658
348
                os=-nextstep3
659
349
                ;;
660
 
        hppaosf)
661
 
                basic_machine=hppa1.1-hp
662
 
                os=-osf
 
350
        hp3k9[0-9][0-9] | hp9[0-9][0-9])
 
351
                basic_machine=hppa1.0-hp
 
352
                os=-mpeix
663
353
                ;;
664
 
        hppro)
665
 
                basic_machine=hppa1.1-hp
666
 
                os=-proelf
 
354
        hp3k9[0-9][0-9] | hp9[0-9][0-9])
 
355
                basic_machine=hppa1.0-hp
 
356
                os=-mpeix
667
357
                ;;
668
358
        i370-ibm* | ibm*)
669
359
                basic_machine=i370-ibm
 
360
                os=-mvs
670
361
                ;;
671
362
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
672
 
        i*86v32)
 
363
        i[34567]86v32)
673
364
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
674
365
                os=-sysv32
675
366
                ;;
676
 
        i*86v4*)
 
367
        i[34567]86v4*)
677
368
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
678
369
                os=-sysv4
679
370
                ;;
680
 
        i*86v)
 
371
        i[34567]86v)
681
372
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
682
373
                os=-sysv
683
374
                ;;
684
 
        i*86sol2)
 
375
        i[34567]86sol2)
685
376
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
686
377
                os=-solaris2
687
378
                ;;
688
 
        i386mach)
689
 
                basic_machine=i386-mach
690
 
                os=-mach
691
 
                ;;
692
 
        i386-vsta | vsta)
693
 
                basic_machine=i386-unknown
694
 
                os=-vsta
695
 
                ;;
696
379
        iris | iris4d)
697
380
                basic_machine=mips-sgi
698
381
                case $os in
707
390
                basic_machine=m68k-isi
708
391
                os=-sysv
709
392
                ;;
710
 
        m68knommu)
711
 
                basic_machine=m68k-unknown
712
 
                os=-linux
713
 
                ;;
714
 
        m68knommu-*)
715
 
                basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
716
 
                os=-linux
717
 
                ;;
718
393
        m88k-omron*)
719
394
                basic_machine=m88k-omron
720
395
                ;;
726
401
                basic_machine=ns32k-utek
727
402
                os=-sysv
728
403
                ;;
729
 
        mingw32)
730
 
                basic_machine=i386-pc
731
 
                os=-mingw32
732
 
                ;;
733
 
        mingw32ce)
734
 
                basic_machine=arm-unknown
735
 
                os=-mingw32ce
736
 
                ;;
737
404
        miniframe)
738
405
                basic_machine=m68000-convergent
739
406
                ;;
740
 
        *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
741
 
                basic_machine=m68k-atari
742
 
                os=-mint
 
407
        mipsel*-linux*)
 
408
                basic_machine=mipsel-unknown
 
409
                os=-linux-gnu
 
410
                ;;
 
411
        mips*-linux*)
 
412
                basic_machine=mips-unknown
 
413
                os=-linux-gnu
743
414
                ;;
744
415
        mips3*-*)
745
416
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
747
418
        mips3*)
748
419
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
749
420
                ;;
750
 
        monitor)
751
 
                basic_machine=m68k-rom68k
752
 
                os=-coff
753
 
                ;;
754
 
        morphos)
755
 
                basic_machine=powerpc-unknown
756
 
                os=-morphos
757
 
                ;;
758
 
        msdos)
759
 
                basic_machine=i386-pc
760
 
                os=-msdos
761
 
                ;;
762
 
        ms1-*)
763
 
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
764
 
                ;;
765
 
        mvs)
766
 
                basic_machine=i370-ibm
767
 
                os=-mvs
768
 
                ;;
769
421
        ncr3000)
770
422
                basic_machine=i486-ncr
771
423
                os=-sysv4
772
424
                ;;
773
 
        netbsd386)
774
 
                basic_machine=i386-unknown
775
 
                os=-netbsd
776
 
                ;;
777
425
        netwinder)
778
 
                basic_machine=armv4l-rebel
 
426
                basic_machine=armv4l-corel
779
427
                os=-linux
780
428
                ;;
781
429
        news | news700 | news800 | news900)
790
438
                basic_machine=mips-sony
791
439
                os=-newsos
792
440
                ;;
793
 
        necv70)
794
 
                basic_machine=v70-nec
795
 
                os=-sysv
796
 
                ;;
797
441
        next | m*-next )
798
442
                basic_machine=m68k-next
799
443
                case $os in
819
463
                basic_machine=i960-intel
820
464
                os=-nindy
821
465
                ;;
822
 
        mon960)
823
 
                basic_machine=i960-intel
824
 
                os=-mon960
825
 
                ;;
826
 
        nonstopux)
827
 
                basic_machine=mips-compaq
828
 
                os=-nonstopux
829
 
                ;;
830
466
        np1)
831
467
                basic_machine=np1-gould
832
468
                ;;
833
 
        nsr-tandem)
834
 
                basic_machine=nsr-tandem
835
 
                ;;
836
 
        op50n-* | op60c-*)
837
 
                basic_machine=hppa1.1-oki
838
 
                os=-proelf
839
 
                ;;
840
 
        openrisc | openrisc-*)
841
 
                basic_machine=or32-unknown
842
 
                ;;
843
 
        os400)
844
 
                basic_machine=powerpc-ibm
845
 
                os=-os400
846
 
                ;;
847
 
        OSE68000 | ose68000)
848
 
                basic_machine=m68000-ericsson
849
 
                os=-ose
850
 
                ;;
851
 
        os68k)
852
 
                basic_machine=m68k-none
853
 
                os=-os68k
854
 
                ;;
855
469
        pa-hitachi)
856
470
                basic_machine=hppa1.1-hitachi
857
471
                os=-hiuxwe2
860
474
                basic_machine=i860-intel
861
475
                os=-osf
862
476
                ;;
863
 
        parisc)
864
 
                basic_machine=hppa-unknown
865
 
                os=-linux
866
 
                ;;
867
 
        parisc-*)
868
 
                basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
869
 
                os=-linux
870
 
                ;;
871
477
        pbd)
872
478
                basic_machine=sparc-tti
873
479
                ;;
874
480
        pbb)
875
481
                basic_machine=m68k-tti
876
482
                ;;
877
 
        pc532 | pc532-*)
 
483
        pc532 | pc532-*)
878
484
                basic_machine=ns32k-pc532
879
485
                ;;
880
 
        pc98)
881
 
                basic_machine=i386-pc
882
 
                ;;
883
 
        pc98-*)
884
 
                basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
885
 
                ;;
886
 
        pentium | p5 | k5 | k6 | nexgen | viac3)
 
486
        pentium | p5 | k5 | nexen)
887
487
                basic_machine=i586-pc
888
488
                ;;
889
 
        pentiumpro | p6 | 6x86 | athlon | athlon_*)
890
 
                basic_machine=i686-pc
891
 
                ;;
892
 
        pentiumii | pentium2 | pentiumiii | pentium3)
893
 
                basic_machine=i686-pc
894
 
                ;;
895
 
        pentium4)
 
489
        pentiumpro | p6 | k6 | 6x86)
 
490
                basic_machine=i686-pc
 
491
                ;;
 
492
        pentiumii | pentium2)
896
493
                basic_machine=i786-pc
897
494
                ;;
898
 
        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
 
495
        pentium-* | p5-* | k5-* | nexen-*)
899
496
                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
900
497
                ;;
901
 
        pentiumpro-* | p6-* | 6x86-* | athlon-*)
902
 
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
903
 
                ;;
904
 
        pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
905
 
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
906
 
                ;;
907
 
        pentium4-*)
 
498
        pentiumpro-* | p6-* | k6-* | 6x86-*)
 
499
                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
 
500
                ;;
 
501
        pentiumii-* | pentium2-*)
908
502
                basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
909
503
                ;;
910
504
        pn)
911
505
                basic_machine=pn-gould
912
506
                ;;
913
 
        power)  basic_machine=power-ibm
 
507
        power)  basic_machine=rs6000-ibm
914
508
                ;;
915
509
        ppc)    basic_machine=powerpc-unknown
916
 
                ;;
 
510
                ;;
917
511
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
918
512
                ;;
919
513
        ppcle | powerpclittle | ppc-le | powerpc-little)
920
514
                basic_machine=powerpcle-unknown
921
 
                ;;
 
515
                ;;
922
516
        ppcle-* | powerpclittle-*)
923
517
                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
924
518
                ;;
925
 
        ppc64)  basic_machine=powerpc64-unknown
926
 
                ;;
927
 
        ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
928
 
                ;;
929
 
        ppc64le | powerpc64little | ppc64-le | powerpc64-little)
930
 
                basic_machine=powerpc64le-unknown
931
 
                ;;
932
 
        ppc64le-* | powerpc64little-*)
933
 
                basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
934
 
                ;;
935
519
        ps2)
936
520
                basic_machine=i386-ibm
937
521
                ;;
938
 
        pw32)
939
 
                basic_machine=i586-unknown
940
 
                os=-pw32
941
 
                ;;
942
 
        rdos)
943
 
                basic_machine=i386-pc
944
 
                os=-rdos
945
 
                ;;
946
 
        rom68k)
947
 
                basic_machine=m68k-rom68k
948
 
                os=-coff
949
 
                ;;
950
522
        rm[46]00)
951
523
                basic_machine=mips-siemens
952
524
                ;;
953
525
        rtpc | rtpc-*)
954
526
                basic_machine=romp-ibm
955
527
                ;;
956
 
        s390 | s390-*)
957
 
                basic_machine=s390-ibm
958
 
                ;;
959
 
        s390x | s390x-*)
960
 
                basic_machine=s390x-ibm
961
 
                ;;
962
 
        sa29200)
963
 
                basic_machine=a29k-amd
964
 
                os=-udi
965
 
                ;;
966
 
        sb1)
967
 
                basic_machine=mipsisa64sb1-unknown
968
 
                ;;
969
 
        sb1el)
970
 
                basic_machine=mipsisa64sb1el-unknown
971
 
                ;;
972
 
        sde)
973
 
                basic_machine=mipsisa32-sde
974
 
                os=-elf
975
 
                ;;
976
 
        sei)
977
 
                basic_machine=mips-sei
978
 
                os=-seiux
979
 
                ;;
980
528
        sequent)
981
529
                basic_machine=i386-sequent
982
530
                ;;
984
532
                basic_machine=sh-hitachi
985
533
                os=-hms
986
534
                ;;
987
 
        sh5el)
988
 
                basic_machine=sh5le-unknown
989
 
                ;;
990
 
        sh64)
991
 
                basic_machine=sh64-unknown
992
 
                ;;
993
 
        sparclite-wrs | simso-wrs)
994
 
                basic_machine=sparclite-wrs
995
 
                os=-vxworks
996
 
                ;;
997
535
        sps7)
998
536
                basic_machine=m68k-bull
999
537
                os=-sysv2
1001
539
        spur)
1002
540
                basic_machine=spur-unknown
1003
541
                ;;
1004
 
        st2000)
1005
 
                basic_machine=m68k-tandem
1006
 
                ;;
1007
 
        stratus)
1008
 
                basic_machine=i860-stratus
1009
 
                os=-sysv4
1010
 
                ;;
1011
542
        sun2)
1012
543
                basic_machine=m68000-sun
1013
544
                ;;
1048
579
        sun386 | sun386i | roadrunner)
1049
580
                basic_machine=i386-sun
1050
581
                ;;
1051
 
        sv1)
1052
 
                basic_machine=sv1-cray
1053
 
                os=-unicos
1054
 
                ;;
1055
582
        symmetry)
1056
583
                basic_machine=i386-sequent
1057
584
                os=-dynix
1058
585
                ;;
1059
 
        t3e)
1060
 
                basic_machine=alphaev5-cray
1061
 
                os=-unicos
1062
 
                ;;
1063
 
        t90)
1064
 
                basic_machine=t90-cray
1065
 
                os=-unicos
1066
 
                ;;
1067
 
        tic54x | c54x*)
1068
 
                basic_machine=tic54x-unknown
1069
 
                os=-coff
1070
 
                ;;
1071
 
        tic55x | c55x*)
1072
 
                basic_machine=tic55x-unknown
1073
 
                os=-coff
1074
 
                ;;
1075
 
        tic6x | c6x*)
1076
 
                basic_machine=tic6x-unknown
1077
 
                os=-coff
1078
 
                ;;
1079
 
        tile*)
1080
 
                basic_machine=tile-unknown
1081
 
                os=-linux-gnu
1082
 
                ;;
1083
586
        tx39)
1084
587
                basic_machine=mipstx39-unknown
1085
588
                ;;
1086
589
        tx39el)
1087
590
                basic_machine=mipstx39el-unknown
1088
591
                ;;
1089
 
        toad1)
1090
 
                basic_machine=pdp10-xkl
1091
 
                os=-tops20
1092
 
                ;;
1093
592
        tower | tower-32)
1094
593
                basic_machine=m68k-ncr
1095
594
                ;;
1096
 
        tpf)
1097
 
                basic_machine=s390x-ibm
1098
 
                os=-tpf
1099
 
                ;;
1100
595
        udi29k)
1101
596
                basic_machine=a29k-amd
1102
597
                os=-udi
1105
600
                basic_machine=a29k-nyu
1106
601
                os=-sym1
1107
602
                ;;
1108
 
        v810 | necv810)
1109
 
                basic_machine=v810-nec
1110
 
                os=-none
1111
 
                ;;
1112
603
        vaxv)
1113
604
                basic_machine=vax-dec
1114
605
                os=-sysv
1118
609
                os=-vms
1119
610
                ;;
1120
611
        vpp*|vx|vx-*)
1121
 
                basic_machine=f301-fujitsu
1122
 
                ;;
 
612
               basic_machine=f301-fujitsu
 
613
               ;;
1123
614
        vxworks960)
1124
615
                basic_machine=i960-wrs
1125
616
                os=-vxworks
1132
623
                basic_machine=a29k-wrs
1133
624
                os=-vxworks
1134
625
                ;;
1135
 
        w65*)
1136
 
                basic_machine=w65-wdc
1137
 
                os=-none
1138
 
                ;;
1139
 
        w89k-*)
1140
 
                basic_machine=hppa1.1-winbond
1141
 
                os=-proelf
1142
 
                ;;
1143
 
        xbox)
1144
 
                basic_machine=i686-pc
1145
 
                os=-mingw32
1146
 
                ;;
1147
 
        xps | xps100)
 
626
        xmp)
 
627
                basic_machine=xmp-cray
 
628
                os=-unicos
 
629
                ;;
 
630
        xps | xps100)
1148
631
                basic_machine=xps100-honeywell
1149
632
                ;;
1150
 
        ymp)
1151
 
                basic_machine=ymp-cray
1152
 
                os=-unicos
1153
 
                ;;
1154
 
        z8k-*-coff)
1155
 
                basic_machine=z8k-unknown
1156
 
                os=-sim
1157
 
                ;;
1158
 
        z80-*-coff)
1159
 
                basic_machine=z80-unknown
1160
 
                os=-sim
1161
 
                ;;
1162
633
        none)
1163
634
                basic_machine=none-none
1164
635
                os=-none
1166
637
 
1167
638
# Here we handle the default manufacturer of certain CPU types.  It is in
1168
639
# some cases the only manufacturer, in others, it is the most popular.
1169
 
        w89k)
1170
 
                basic_machine=hppa1.1-winbond
1171
 
                ;;
1172
 
        op50n)
1173
 
                basic_machine=hppa1.1-oki
1174
 
                ;;
1175
 
        op60c)
1176
 
                basic_machine=hppa1.1-oki
 
640
        mips)
 
641
                if [ x$os = x-linux-gnu ]; then
 
642
                        basic_machine=mips-unknown
 
643
                else
 
644
                        basic_machine=mips-mips
 
645
                fi
1177
646
                ;;
1178
647
        romp)
1179
648
                basic_machine=romp-ibm
1180
649
                ;;
1181
 
        mmix)
1182
 
                basic_machine=mmix-knuth
1183
 
                ;;
1184
650
        rs6000)
1185
651
                basic_machine=rs6000-ibm
1186
652
                ;;
1187
653
        vax)
1188
654
                basic_machine=vax-dec
1189
655
                ;;
1190
 
        pdp10)
1191
 
                # there are many clones, so DEC is not a safe bet
1192
 
                basic_machine=pdp10-unknown
1193
 
                ;;
1194
656
        pdp11)
1195
657
                basic_machine=pdp11-dec
1196
658
                ;;
1197
659
        we32k)
1198
660
                basic_machine=we32k-att
1199
661
                ;;
1200
 
        sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1201
 
                basic_machine=sh-unknown
1202
 
                ;;
1203
 
        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
 
662
        sparc)
1204
663
                basic_machine=sparc-sun
1205
664
                ;;
1206
 
        cydra)
 
665
        cydra)
1207
666
                basic_machine=cydra-cydrome
1208
667
                ;;
1209
668
        orion)
1212
671
        orion105)
1213
672
                basic_machine=clipper-highlevel
1214
673
                ;;
1215
 
        mac | mpw | mac-mpw)
1216
 
                basic_machine=m68k-apple
1217
 
                ;;
1218
 
        pmac | pmac-mpw)
1219
 
                basic_machine=powerpc-apple
1220
 
                ;;
1221
 
        *-unknown)
1222
 
                # Make sure to match an already-canonicalized machine name.
1223
 
                ;;
1224
674
        *)
1225
675
                echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1226
676
                exit 1
1267
717
        # Each alternative MUST END IN A *, to match a version number.
1268
718
        # -sysv* is not here because it comes later, after sysvr4.
1269
719
        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1270
 
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
 
720
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1271
721
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1272
 
              | -kopensolaris* \
1273
722
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1274
 
              | -aos* | -aros* \
 
723
              | -aos* \
1275
724
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1276
725
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1277
 
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1278
 
              | -openbsd* | -solidbsd* \
1279
 
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1280
 
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
 
726
              | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
 
727
              | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
1281
728
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1282
729
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1283
 
              | -chorusos* | -chorusrdb* | -cegcc* \
1284
730
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1285
 
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1286
 
              | -uxpv* | -beos* | -mpeix* | -udk* \
1287
 
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1288
 
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1289
 
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1290
 
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1291
 
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1292
 
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1293
 
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
 
731
              | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -rhapsody* \
 
732
              | -openstep* | -mpeix* | -oskit*)
1294
733
        # Remember, each alternative MUST END IN *, to match a version number.
1295
734
                ;;
1296
 
        -qnx*)
1297
 
                case $basic_machine in
1298
 
                    x86-* | i*86-*)
1299
 
                        ;;
1300
 
                    *)
1301
 
                        os=-nto$os
1302
 
                        ;;
1303
 
                esac
1304
 
                ;;
1305
 
        -nto-qnx*)
1306
 
                ;;
1307
 
        -nto*)
1308
 
                os=`echo $os | sed -e 's|nto|nto-qnx|'`
1309
 
                ;;
1310
 
        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1311
 
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1312
 
              | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1313
 
                ;;
1314
 
        -mac*)
1315
 
                os=`echo $os | sed -e 's|mac|macos|'`
1316
 
                ;;
1317
 
        -linux-dietlibc)
1318
 
                os=-linux-dietlibc
1319
 
                ;;
1320
735
        -linux*)
1321
736
                os=`echo $os | sed -e 's|linux|linux-gnu|'`
1322
737
                ;;
1326
741
        -sunos6*)
1327
742
                os=`echo $os | sed -e 's|sunos6|solaris3|'`
1328
743
                ;;
1329
 
        -opened*)
1330
 
                os=-openedition
1331
 
                ;;
1332
 
        -os400*)
1333
 
                os=-os400
1334
 
                ;;
1335
 
        -wince*)
1336
 
                os=-wince
1337
 
                ;;
1338
744
        -osfrose*)
1339
745
                os=-osfrose
1340
746
                ;;
1350
756
        -acis*)
1351
757
                os=-aos
1352
758
                ;;
1353
 
        -atheos*)
1354
 
                os=-atheos
1355
 
                ;;
1356
 
        -syllable*)
1357
 
                os=-syllable
1358
 
                ;;
1359
 
        -386bsd)
1360
 
                os=-bsd
1361
 
                ;;
1362
759
        -ctix* | -uts*)
1363
760
                os=-sysv
1364
761
                ;;
1365
 
        -nova*)
1366
 
                os=-rtmk-nova
1367
 
                ;;
1368
762
        -ns2 )
1369
 
                os=-nextstep2
1370
 
                ;;
1371
 
        -nsk*)
1372
 
                os=-nsk
 
763
                os=-nextstep2
1373
764
                ;;
1374
765
        # Preserve the version number of sinix5.
1375
766
        -sinix5.*)
1378
769
        -sinix*)
1379
770
                os=-sysv4
1380
771
                ;;
1381
 
        -tpf*)
1382
 
                os=-tpf
1383
 
                ;;
1384
772
        -triton*)
1385
773
                os=-sysv3
1386
774
                ;;
1399
787
        # This must come after -sysvr4.
1400
788
        -sysv*)
1401
789
                ;;
1402
 
        -ose*)
1403
 
                os=-ose
1404
 
                ;;
1405
 
        -es1800*)
1406
 
                os=-ose
1407
 
                ;;
1408
790
        -xenix)
1409
791
                os=-xenix
1410
792
                ;;
1411
 
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1412
 
                os=-mint
1413
 
                ;;
1414
 
        -aros*)
1415
 
                os=-aros
1416
 
                ;;
1417
 
        -kaos*)
1418
 
                os=-kaos
1419
 
                ;;
1420
 
        -zvmoe)
1421
 
                os=-zvmoe
1422
 
                ;;
1423
 
        -dicos*)
1424
 
                os=-dicos
1425
 
                ;;
1426
793
        -none)
1427
794
                ;;
1428
795
        *)
1445
812
# system, and we'll never get to this point.
1446
813
 
1447
814
case $basic_machine in
1448
 
        score-*)
1449
 
                os=-elf
1450
 
                ;;
1451
 
        spu-*)
1452
 
                os=-elf
1453
 
                ;;
1454
815
        *-acorn)
1455
816
                os=-riscix1.2
1456
817
                ;;
1457
 
        arm*-rebel)
 
818
        arm*-corel)
1458
819
                os=-linux
1459
820
                ;;
1460
821
        arm*-semi)
1461
822
                os=-aout
1462
823
                ;;
1463
 
        c4x-* | tic4x-*)
1464
 
                os=-coff
1465
 
                ;;
1466
 
        # This must come before the *-dec entry.
1467
 
        pdp10-*)
1468
 
                os=-tops20
1469
 
                ;;
1470
 
        pdp11-*)
 
824
        pdp11-*)
1471
825
                os=-none
1472
826
                ;;
1473
827
        *-dec | vax-*)
1485
839
                # default.
1486
840
                # os=-sunos4
1487
841
                ;;
1488
 
        m68*-cisco)
1489
 
                os=-aout
1490
 
                ;;
1491
 
        mep-*)
1492
 
                os=-elf
1493
 
                ;;
1494
 
        mips*-cisco)
1495
 
                os=-elf
1496
 
                ;;
1497
 
        mips*-*)
1498
 
                os=-elf
1499
 
                ;;
1500
 
        or32-*)
1501
 
                os=-coff
1502
 
                ;;
1503
842
        *-tti)  # must be before sparc entry or we get the wrong os.
1504
843
                os=-sysv3
1505
844
                ;;
1509
848
        *-be)
1510
849
                os=-beos
1511
850
                ;;
1512
 
        *-haiku)
1513
 
                os=-haiku
1514
 
                ;;
1515
851
        *-ibm)
1516
852
                os=-aix
1517
853
                ;;
1518
 
        *-knuth)
1519
 
                os=-mmixware
1520
 
                ;;
1521
 
        *-wec)
1522
 
                os=-proelf
1523
 
                ;;
1524
 
        *-winbond)
1525
 
                os=-proelf
1526
 
                ;;
1527
 
        *-oki)
1528
 
                os=-proelf
1529
 
                ;;
1530
854
        *-hp)
1531
855
                os=-hpux
1532
856
                ;;
1569
893
        *-next)
1570
894
                os=-nextstep3
1571
895
                ;;
1572
 
        *-gould)
 
896
        *-gould)
1573
897
                os=-sysv
1574
898
                ;;
1575
 
        *-highlevel)
 
899
        *-highlevel)
1576
900
                os=-bsd
1577
901
                ;;
1578
902
        *-encore)
1579
903
                os=-bsd
1580
904
                ;;
1581
 
        *-sgi)
 
905
        *-sgi)
1582
906
                os=-irix
1583
907
                ;;
1584
 
        *-siemens)
 
908
        *-siemens)
1585
909
                os=-sysv4
1586
910
                ;;
1587
911
        *-masscomp)
1588
912
                os=-rtu
1589
913
                ;;
1590
 
        f30[01]-fujitsu | f700-fujitsu)
 
914
        f301-fujitsu)
1591
915
                os=-uxpv
1592
916
                ;;
1593
 
        *-rom68k)
1594
 
                os=-coff
1595
 
                ;;
1596
 
        *-*bug)
1597
 
                os=-coff
1598
 
                ;;
1599
 
        *-apple)
1600
 
                os=-macos
1601
 
                ;;
1602
 
        *-atari*)
1603
 
                os=-mint
1604
 
                ;;
1605
917
        *)
1606
918
                os=-none
1607
919
                ;;
1620
932
                        -sunos*)
1621
933
                                vendor=sun
1622
934
                                ;;
1623
 
                        -cnk*|-aix*)
 
935
                        -aix*)
1624
936
                                vendor=ibm
1625
937
                                ;;
1626
 
                        -beos*)
1627
 
                                vendor=be
1628
 
                                ;;
1629
938
                        -hpux*)
1630
939
                                vendor=hp
1631
940
                                ;;
1632
941
                        -mpeix*)
1633
942
                                vendor=hp
1634
943
                                ;;
 
944
                        -mpeix*)
 
945
                                vendor=hp
 
946
                                ;;
1635
947
                        -hiux*)
1636
948
                                vendor=hitachi
1637
949
                                ;;
1647
959
                        -genix*)
1648
960
                                vendor=ns
1649
961
                                ;;
1650
 
                        -mvs* | -opened*)
1651
 
                                vendor=ibm
1652
 
                                ;;
1653
 
                        -os400*)
 
962
                        -mvs*)
1654
963
                                vendor=ibm
1655
964
                                ;;
1656
965
                        -ptx*)
1657
966
                                vendor=sequent
1658
967
                                ;;
1659
 
                        -tpf*)
1660
 
                                vendor=ibm
1661
 
                                ;;
1662
 
                        -vxsim* | -vxworks* | -windiss*)
 
968
                        -vxsim* | -vxworks*)
1663
969
                                vendor=wrs
1664
970
                                ;;
1665
971
                        -aux*)
1666
972
                                vendor=apple
1667
973
                                ;;
1668
 
                        -hms*)
1669
 
                                vendor=hitachi
1670
 
                                ;;
1671
 
                        -mpw* | -macos*)
1672
 
                                vendor=apple
1673
 
                                ;;
1674
 
                        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1675
 
                                vendor=atari
1676
 
                                ;;
1677
 
                        -vos*)
1678
 
                                vendor=stratus
1679
 
                                ;;
1680
974
                esac
1681
975
                basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1682
976
                ;;
1683
977
esac
1684
978
 
1685
979
echo $basic_machine$os
1686
 
exit
1687
 
 
1688
 
# Local variables:
1689
 
# eval: (add-hook 'write-file-hooks 'time-stamp)
1690
 
# time-stamp-start: "timestamp='"
1691
 
# time-stamp-format: "%:y-%02m-%02d"
1692
 
# time-stamp-end: "'"
1693
 
# End: