~ubuntu-branches/ubuntu/precise/sflphone/precise

« back to all changes in this revision

Viewing changes to daemon/libs/pjproject/config.sub

  • Committer: Package Import Robot
  • Author(s): Whoopie
  • Date: 2012-03-27 13:50:18 UTC
  • Revision ID: package-import@ubuntu.com-20120327135018-4ttfsbcok0ove5mz
Tags: 1.0.2-1ubuntu2
07_config-guess-sub.patch: regenerated config.{guess,sub} file
to fix FTBFS on armel/armhf. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Configuration validation subroutine script.
3
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
 
#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
 
5
#   2011, 2012 Free Software Foundation, Inc.
5
6
 
6
 
timestamp='2005-04-22'
 
7
timestamp='2012-02-10'
7
8
 
8
9
# This file is (in principle) common to ALL GNU software.
9
10
# The presence of a machine in this file suggests that SOME GNU software
20
21
# GNU General Public License for more details.
21
22
#
22
23
# You should have received a copy of the GNU General Public License
23
 
# along with this program; if not, write to the Free Software
24
 
# Foundation, Inc., 59 Temple Place - Suite 330,
25
 
# Boston, MA 02111-1307, USA.
26
 
 
 
24
# along with this program; if not, see <http://www.gnu.org/licenses/>.
 
25
#
27
26
# As a special exception to the GNU General Public License, if you
28
27
# distribute this file as part of a program that contains a
29
28
# configuration script generated by Autoconf, you may include it under
30
29
# the same distribution terms that you use for the rest of that program.
31
30
 
 
31
 
32
32
# Please send patches to <config-patches@gnu.org>.  Submit a context
33
 
# diff and a properly formatted ChangeLog entry.
 
33
# diff and a properly formatted GNU ChangeLog entry.
34
34
#
35
35
# Configuration subroutine to validate and canonicalize a configuration type.
36
36
# Supply the specified configuration type as an argument.
37
37
# If it is invalid, we print an error message on stderr and exit with code 1.
38
38
# Otherwise, we print the canonical config type on stdout and succeed.
39
39
 
 
40
# You can get the latest version of this script from:
 
41
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
 
42
 
40
43
# This file is supposed to be the same for all GNU packages
41
44
# and recognize all the CPU types, system types and aliases
42
45
# that are meaningful with *any* GNU software.
70
73
version="\
71
74
GNU config.sub ($timestamp)
72
75
 
73
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
76
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
 
77
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
74
78
Free Software Foundation, Inc.
75
79
 
76
80
This is free software; see the source for copying conditions.  There is NO
83
87
while test $# -gt 0 ; do
84
88
  case $1 in
85
89
    --time-stamp | --time* | -t )
86
 
       echo "$timestamp" ; exit 0 ;;
 
90
       echo "$timestamp" ; exit ;;
87
91
    --version | -v )
88
 
       echo "$version" ; exit 0 ;;
 
92
       echo "$version" ; exit ;;
89
93
    --help | --h* | -h )
90
 
       echo "$usage"; exit 0 ;;
 
94
       echo "$usage"; exit ;;
91
95
    -- )     # Stop option processing
92
96
       shift; break ;;
93
97
    - ) # Use stdin as input.
99
103
    *local*)
100
104
       # First pass through any local machine types.
101
105
       echo $1
102
 
       exit 0;;
 
106
       exit ;;
103
107
 
104
108
    * )
105
109
       break ;;
118
122
# Here we must recognize all the valid KERNEL-OS combinations.
119
123
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120
124
case $maybe_os in
121
 
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
122
 
  kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
 
125
  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
 
126
  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
 
127
  knetbsd*-gnu* | netbsd*-gnu* | \
 
128
  kopensolaris*-gnu* | \
 
129
  storm-chaos* | os2-emx* | rtmk-nova*)
123
130
    os=-$maybe_os
124
131
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
125
132
    ;;
 
133
  android-linux)
 
134
    os=-linux-android
 
135
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
 
136
    ;;
126
137
  *)
127
138
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
128
139
    if [ $basic_machine != $1 ]
145
156
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
146
157
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
147
158
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
148
 
        -apple | -axis | -knuth | -cray)
 
159
        -apple | -axis | -knuth | -cray | -microblaze)
149
160
                os=
150
161
                basic_machine=$1
151
162
                ;;
 
163
        -bluegene*)
 
164
                os=-cnk
 
165
                ;;
152
166
        -sim | -cisco | -oki | -wec | -winbond)
153
167
                os=
154
168
                basic_machine=$1
163
177
                os=-chorusos
164
178
                basic_machine=$1
165
179
                ;;
166
 
        -chorusrdb)
167
 
                os=-chorusrdb
 
180
        -chorusrdb)
 
181
                os=-chorusrdb
168
182
                basic_machine=$1
169
 
                ;;
 
183
                ;;
170
184
        -hiux*)
171
185
                os=-hiuxwe2
172
186
                ;;
 
187
        -sco6)
 
188
                os=-sco5v6
 
189
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
190
                ;;
173
191
        -sco5)
174
192
                os=-sco3.2v5
175
193
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186
204
                # Don't forget version if it is 3.2v4 or newer.
187
205
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
188
206
                ;;
 
207
        -sco5v6*)
 
208
                # Don't forget version if it is 3.2v4 or newer.
 
209
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
210
                ;;
189
211
        -sco*)
190
212
                os=-sco3.2v2
191
213
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
227
249
        # Some are omitted here because they have special meanings below.
228
250
        1750a | 580 \
229
251
        | a29k \
 
252
        | aarch64 | aarch64_be \
230
253
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
231
254
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
232
255
        | am33_2.0 \
233
 
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
 
256
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
 
257
        | be32 | be64 \
234
258
        | bfin \
235
259
        | c4x | clipper \
236
260
        | d10v | d30v | dlx | dsp16xx \
237
 
        | fr30 | frv \
 
261
        | epiphany \
 
262
        | fido | fr30 | frv \
238
263
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
 
264
        | hexagon \
239
265
        | i370 | i860 | i960 | ia64 \
240
266
        | ip2k | iq2000 \
241
 
        | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
 
267
        | le32 | le64 \
 
268
        | lm32 \
 
269
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
 
270
        | maxq | mb | microblaze | mcore | mep | metag \
242
271
        | mips | mipsbe | mipseb | mipsel | mipsle \
243
272
        | mips16 \
244
273
        | mips64 | mips64el \
 
274
        | mips64octeon | mips64octeonel \
 
275
        | mips64orion | mips64orionel \
 
276
        | mips64r5900 | mips64r5900el \
245
277
        | mips64vr | mips64vrel \
246
 
        | mips64orion | mips64orionel \
247
278
        | mips64vr4100 | mips64vr4100el \
248
279
        | mips64vr4300 | mips64vr4300el \
249
280
        | mips64vr5000 | mips64vr5000el \
 
281
        | mips64vr5900 | mips64vr5900el \
250
282
        | mipsisa32 | mipsisa32el \
251
283
        | mipsisa32r2 | mipsisa32r2el \
252
284
        | mipsisa64 | mipsisa64el \
255
287
        | mipsisa64sr71k | mipsisa64sr71kel \
256
288
        | mipstx39 | mipstx39el \
257
289
        | mn10200 | mn10300 \
 
290
        | moxie \
 
291
        | mt \
258
292
        | msp430 \
 
293
        | nds32 | nds32le | nds32be \
 
294
        | nios | nios2 \
259
295
        | ns16k | ns32k \
260
 
        | openrisc | or32 \
 
296
        | open8 \
 
297
        | or32 \
261
298
        | pdp10 | pdp11 | pj | pjl \
262
 
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
 
299
        | powerpc | powerpc64 | powerpc64le | powerpcle \
263
300
        | pyramid \
264
 
        | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
 
301
        | rl78 | rx \
 
302
        | score \
 
303
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
265
304
        | sh64 | sh64le \
266
 
        | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
267
 
        | sparcv8 | sparcv9 | sparcv9b \
268
 
        | strongarm \
269
 
        | tahoe | thumb | tic4x | tic80 | tron \
270
 
        | v850 | v850e \
 
305
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
 
306
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
 
307
        | spu \
 
308
        | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
 
309
        | ubicom32 \
 
310
        | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
271
311
        | we32k \
272
 
        | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
273
 
        | z8k)
 
312
        | x86 | xc16x | xstormy16 | xtensa \
 
313
        | z8k | z80)
274
314
                basic_machine=$basic_machine-unknown
275
315
                ;;
276
 
        m6811 | m68hc11 | m6812 | m68hc12)
277
 
                # Motorola 68HC11/12.
 
316
        c54x)
 
317
                basic_machine=tic54x-unknown
 
318
                ;;
 
319
        c55x)
 
320
                basic_machine=tic55x-unknown
 
321
                ;;
 
322
        c6x)
 
323
                basic_machine=tic6x-unknown
 
324
                ;;
 
325
        m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
278
326
                basic_machine=$basic_machine-unknown
279
327
                os=-none
280
328
                ;;
281
329
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
282
330
                ;;
 
331
        ms1)
 
332
                basic_machine=mt-unknown
 
333
                ;;
 
334
 
 
335
        strongarm | thumb | xscale)
 
336
                basic_machine=arm-unknown
 
337
                ;;
 
338
        xgate)
 
339
                basic_machine=$basic_machine-unknown
 
340
                os=-none
 
341
                ;;
 
342
        xscaleeb)
 
343
                basic_machine=armeb-unknown
 
344
                ;;
 
345
 
 
346
        xscaleel)
 
347
                basic_machine=armel-unknown
 
348
                ;;
283
349
 
284
350
        # We use `pc' rather than `unknown'
285
351
        # because (1) that's what they normally are, and
295
361
        # Recognize the basic CPU types with company name.
296
362
        580-* \
297
363
        | a29k-* \
 
364
        | aarch64-* | aarch64_be-* \
298
365
        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
299
366
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
300
367
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
301
368
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
302
 
        | avr-* \
 
369
        | avr-* | avr32-* \
 
370
        | be32-* | be64-* \
303
371
        | bfin-* | bs2000-* \
304
 
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
 
372
        | c[123]* | c30-* | [cjt]90-* | c4x-* \
305
373
        | clipper-* | craynv-* | cydra-* \
306
374
        | d10v-* | d30v-* | dlx-* \
307
375
        | elxsi-* \
308
 
        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
 
376
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
309
377
        | h8300-* | h8500-* \
310
378
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
 
379
        | hexagon-* \
311
380
        | i*86-* | i860-* | i960-* | ia64-* \
312
381
        | ip2k-* | iq2000-* \
313
 
        | m32r-* | m32rle-* \
 
382
        | le32-* | le64-* \
 
383
        | lm32-* \
 
384
        | m32c-* | m32r-* | m32rle-* \
314
385
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
315
 
        | m88110-* | m88k-* | maxq-* | mcore-* \
 
386
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
316
387
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
317
388
        | mips16-* \
318
389
        | mips64-* | mips64el-* \
 
390
        | mips64octeon-* | mips64octeonel-* \
 
391
        | mips64orion-* | mips64orionel-* \
 
392
        | mips64r5900-* | mips64r5900el-* \
319
393
        | mips64vr-* | mips64vrel-* \
320
 
        | mips64orion-* | mips64orionel-* \
321
394
        | mips64vr4100-* | mips64vr4100el-* \
322
395
        | mips64vr4300-* | mips64vr4300el-* \
323
396
        | mips64vr5000-* | mips64vr5000el-* \
 
397
        | mips64vr5900-* | mips64vr5900el-* \
324
398
        | mipsisa32-* | mipsisa32el-* \
325
399
        | mipsisa32r2-* | mipsisa32r2el-* \
326
400
        | mipsisa64-* | mipsisa64el-* \
329
403
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
330
404
        | mipstx39-* | mipstx39el-* \
331
405
        | mmix-* \
 
406
        | mt-* \
332
407
        | msp430-* \
 
408
        | nds32-* | nds32le-* | nds32be-* \
 
409
        | nios-* | nios2-* \
333
410
        | none-* | np1-* | ns16k-* | ns32k-* \
 
411
        | open8-* \
334
412
        | orion-* \
335
413
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
336
 
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
 
414
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
337
415
        | pyramid-* \
338
 
        | romp-* | rs6000-* \
339
 
        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
 
416
        | rl78-* | romp-* | rs6000-* | rx-* \
 
417
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
340
418
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
341
 
        | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
 
419
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
342
420
        | sparclite-* \
343
 
        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
344
 
        | tahoe-* | thumb-* \
 
421
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
 
422
        | tahoe-* \
345
423
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
424
        | tile*-* \
346
425
        | tron-* \
347
 
        | v850-* | v850e-* | vax-* \
 
426
        | ubicom32-* \
 
427
        | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
 
428
        | vax-* \
348
429
        | we32k-* \
349
 
        | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
350
 
        | xstormy16-* | xtensa-* \
 
430
        | x86-* | x86_64-* | xc16x-* | xps100-* \
 
431
        | xstormy16-* | xtensa*-* \
351
432
        | ymp-* \
352
 
        | z8k-*)
 
433
        | z8k-* | z80-*)
 
434
                ;;
 
435
        # Recognize the basic CPU types without company name, with glob match.
 
436
        xtensa*)
 
437
                basic_machine=$basic_machine-unknown
353
438
                ;;
354
439
        # Recognize the various machine names and aliases which stand
355
440
        # for a CPU type and a company and sometimes even an OS.
367
452
                basic_machine=a29k-amd
368
453
                os=-udi
369
454
                ;;
370
 
        abacus)
 
455
        abacus)
371
456
                basic_machine=abacus-unknown
372
457
                ;;
373
458
        adobe68k)
413
498
                basic_machine=m68k-apollo
414
499
                os=-bsd
415
500
                ;;
 
501
        aros)
 
502
                basic_machine=i386-pc
 
503
                os=-aros
 
504
                ;;
416
505
        aux)
417
506
                basic_machine=m68k-apple
418
507
                os=-aux
421
510
                basic_machine=ns32k-sequent
422
511
                os=-dynix
423
512
                ;;
 
513
        blackfin)
 
514
                basic_machine=bfin-unknown
 
515
                os=-linux
 
516
                ;;
 
517
        blackfin-*)
 
518
                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
 
519
                os=-linux
 
520
                ;;
 
521
        bluegene*)
 
522
                basic_machine=powerpc-ibm
 
523
                os=-cnk
 
524
                ;;
 
525
        c54x-*)
 
526
                basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
527
                ;;
 
528
        c55x-*)
 
529
                basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
530
                ;;
 
531
        c6x-*)
 
532
                basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
 
533
                ;;
424
534
        c90)
425
535
                basic_machine=c90-cray
426
536
                os=-unicos
427
537
                ;;
 
538
        cegcc)
 
539
                basic_machine=arm-unknown
 
540
                os=-cegcc
 
541
                ;;
428
542
        convex-c1)
429
543
                basic_machine=c1-convex
430
544
                os=-bsd
453
567
                basic_machine=craynv-cray
454
568
                os=-unicosmp
455
569
                ;;
456
 
        cr16c)
457
 
                basic_machine=cr16c-unknown
 
570
        cr16 | cr16-*)
 
571
                basic_machine=cr16-unknown
458
572
                os=-elf
459
573
                ;;
460
574
        crds | unos)
492
606
                basic_machine=m88k-motorola
493
607
                os=-sysv3
494
608
                ;;
 
609
        dicos)
 
610
                basic_machine=i686-pc
 
611
                os=-dicos
 
612
                ;;
495
613
        djgpp)
496
614
                basic_machine=i586-pc
497
615
                os=-msdosdjgpp
607
725
        i370-ibm* | ibm*)
608
726
                basic_machine=i370-ibm
609
727
                ;;
610
 
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
611
728
        i*86v32)
612
729
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
613
730
                os=-sysv32
646
763
                basic_machine=m68k-isi
647
764
                os=-sysv
648
765
                ;;
 
766
        m68knommu)
 
767
                basic_machine=m68k-unknown
 
768
                os=-linux
 
769
                ;;
 
770
        m68knommu-*)
 
771
                basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
 
772
                os=-linux
 
773
                ;;
649
774
        m88k-omron*)
650
775
                basic_machine=m88k-omron
651
776
                ;;
657
782
                basic_machine=ns32k-utek
658
783
                os=-sysv
659
784
                ;;
 
785
        microblaze)
 
786
                basic_machine=microblaze-xilinx
 
787
                ;;
660
788
        mingw32)
661
789
                basic_machine=i386-pc
662
790
                os=-mingw32
663
791
                ;;
 
792
        mingw32ce)
 
793
                basic_machine=arm-unknown
 
794
                os=-mingw32ce
 
795
                ;;
664
796
        miniframe)
665
797
                basic_machine=m68000-convergent
666
798
                ;;
686
818
                basic_machine=i386-pc
687
819
                os=-msdos
688
820
                ;;
 
821
        ms1-*)
 
822
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
 
823
                ;;
 
824
        msys)
 
825
                basic_machine=i386-pc
 
826
                os=-msys
 
827
                ;;
689
828
        mvs)
690
829
                basic_machine=i370-ibm
691
830
                os=-mvs
692
831
                ;;
 
832
        nacl)
 
833
                basic_machine=le32-unknown
 
834
                os=-nacl
 
835
                ;;
693
836
        ncr3000)
694
837
                basic_machine=i486-ncr
695
838
                os=-sysv4
754
897
        np1)
755
898
                basic_machine=np1-gould
756
899
                ;;
 
900
        neo-tandem)
 
901
                basic_machine=neo-tandem
 
902
                ;;
 
903
        nse-tandem)
 
904
                basic_machine=nse-tandem
 
905
                ;;
757
906
        nsr-tandem)
758
907
                basic_machine=nsr-tandem
759
908
                ;;
761
910
                basic_machine=hppa1.1-oki
762
911
                os=-proelf
763
912
                ;;
764
 
        or32 | or32-*)
 
913
        openrisc | openrisc-*)
765
914
                basic_machine=or32-unknown
766
 
                os=-coff
767
915
                ;;
768
916
        os400)
769
917
                basic_machine=powerpc-ibm
785
933
                basic_machine=i860-intel
786
934
                os=-osf
787
935
                ;;
 
936
        parisc)
 
937
                basic_machine=hppa-unknown
 
938
                os=-linux
 
939
                ;;
 
940
        parisc-*)
 
941
                basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
 
942
                os=-linux
 
943
                ;;
788
944
        pbd)
789
945
                basic_machine=sparc-tti
790
946
                ;;
794
950
        pc532 | pc532-*)
795
951
                basic_machine=ns32k-pc532
796
952
                ;;
 
953
        pc98)
 
954
                basic_machine=i386-pc
 
955
                ;;
 
956
        pc98-*)
 
957
                basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
 
958
                ;;
797
959
        pentium | p5 | k5 | k6 | nexgen | viac3)
798
960
                basic_machine=i586-pc
799
961
                ;;
823
985
                ;;
824
986
        power)  basic_machine=power-ibm
825
987
                ;;
826
 
        ppc)    basic_machine=powerpc-unknown
 
988
        ppc | ppcbe)    basic_machine=powerpc-unknown
827
989
                ;;
828
 
        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
 
990
        ppc-* | ppcbe-*)
 
991
                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
829
992
                ;;
830
993
        ppcle | powerpclittle | ppc-le | powerpc-little)
831
994
                basic_machine=powerpcle-unknown
850
1013
                basic_machine=i586-unknown
851
1014
                os=-pw32
852
1015
                ;;
 
1016
        rdos)
 
1017
                basic_machine=i386-pc
 
1018
                os=-rdos
 
1019
                ;;
853
1020
        rom68k)
854
1021
                basic_machine=m68k-rom68k
855
1022
                os=-coff
876
1043
        sb1el)
877
1044
                basic_machine=mipsisa64sb1el-unknown
878
1045
                ;;
 
1046
        sde)
 
1047
                basic_machine=mipsisa32-sde
 
1048
                os=-elf
 
1049
                ;;
879
1050
        sei)
880
1051
                basic_machine=mips-sei
881
1052
                os=-seiux
887
1058
                basic_machine=sh-hitachi
888
1059
                os=-hms
889
1060
                ;;
 
1061
        sh5el)
 
1062
                basic_machine=sh5le-unknown
 
1063
                ;;
890
1064
        sh64)
891
1065
                basic_machine=sh64-unknown
892
1066
                ;;
908
1082
                basic_machine=i860-stratus
909
1083
                os=-sysv4
910
1084
                ;;
 
1085
        strongarm-* | thumb-*)
 
1086
                basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
 
1087
                ;;
911
1088
        sun2)
912
1089
                basic_machine=m68000-sun
913
1090
                ;;
964
1141
                basic_machine=t90-cray
965
1142
                os=-unicos
966
1143
                ;;
967
 
        tic54x | c54x*)
968
 
                basic_machine=tic54x-unknown
969
 
                os=-coff
970
 
                ;;
971
 
        tic55x | c55x*)
972
 
                basic_machine=tic55x-unknown
973
 
                os=-coff
974
 
                ;;
975
 
        tic6x | c6x*)
976
 
                basic_machine=tic6x-unknown
977
 
                os=-coff
 
1144
        tile*)
 
1145
                basic_machine=$basic_machine-unknown
 
1146
                os=-linux-gnu
978
1147
                ;;
979
1148
        tx39)
980
1149
                basic_machine=mipstx39-unknown
1043
1212
        xps | xps100)
1044
1213
                basic_machine=xps100-honeywell
1045
1214
                ;;
 
1215
        xscale-* | xscalee[bl]-*)
 
1216
                basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
 
1217
                ;;
1046
1218
        ymp)
1047
1219
                basic_machine=ymp-cray
1048
1220
                os=-unicos
1051
1223
                basic_machine=z8k-unknown
1052
1224
                os=-sim
1053
1225
                ;;
 
1226
        z80-*-coff)
 
1227
                basic_machine=z80-unknown
 
1228
                os=-sim
 
1229
                ;;
1054
1230
        none)
1055
1231
                basic_machine=none-none
1056
1232
                os=-none
1089
1265
        we32k)
1090
1266
                basic_machine=we32k-att
1091
1267
                ;;
1092
 
        sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
 
1268
        sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1093
1269
                basic_machine=sh-unknown
1094
1270
                ;;
1095
 
        sh64)
1096
 
                basic_machine=sh64-unknown
1097
 
                ;;
1098
 
        sparc | sparcv8 | sparcv9 | sparcv9b)
 
1271
        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1099
1272
                basic_machine=sparc-sun
1100
1273
                ;;
1101
1274
        cydra)
1113
1286
        pmac | pmac-mpw)
1114
1287
                basic_machine=powerpc-apple
1115
1288
                ;;
1116
 
        nios2*)
1117
 
                basic_machine=nios2-altera
1118
 
                ;;
1119
1289
        *-unknown)
1120
1290
                # Make sure to match an already-canonicalized machine name.
1121
1291
                ;;
1142
1312
if [ x"$os" != x"" ]
1143
1313
then
1144
1314
case $os in
1145
 
        # First match some system type aliases
1146
 
        # that might get confused with valid system types.
 
1315
        # First match some system type aliases
 
1316
        # that might get confused with valid system types.
1147
1317
        # -solaris* is a basic system type, with this one exception.
 
1318
        -auroraux)
 
1319
                os=-auroraux
 
1320
                ;;
1148
1321
        -solaris1 | -solaris1.*)
1149
1322
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1150
1323
                ;;
1165
1338
        # Each alternative MUST END IN A *, to match a version number.
1166
1339
        # -sysv* is not here because it comes later, after sysvr4.
1167
1340
        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1168
 
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1169
 
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
 
1341
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
 
1342
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
 
1343
              | -sym* | -kopensolaris* \
1170
1344
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1171
 
              | -aos* \
 
1345
              | -aos* | -aros* \
1172
1346
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1173
1347
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1174
 
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
 
1348
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
 
1349
              | -openbsd* | -solidbsd* \
1175
1350
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1176
1351
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1177
1352
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1178
1353
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1179
 
              | -chorusos* | -chorusrdb* \
1180
 
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1181
 
              | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
 
1354
              | -chorusos* | -chorusrdb* | -cegcc* \
 
1355
              | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
 
1356
              | -mingw32* | -linux-gnu* | -linux-android* \
 
1357
              | -linux-newlib* | -linux-uclibc* \
 
1358
              | -uxpv* | -beos* | -mpeix* | -udk* \
1182
1359
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1183
1360
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1184
1361
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1185
1362
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1186
1363
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1187
 
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
 
1364
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
 
1365
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1188
1366
        # Remember, each alternative MUST END IN *, to match a version number.
1189
1367
                ;;
1190
1368
        -qnx*)
1202
1380
                os=`echo $os | sed -e 's|nto|nto-qnx|'`
1203
1381
                ;;
1204
1382
        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1205
 
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
 
1383
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1206
1384
              | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1207
1385
                ;;
1208
1386
        -mac*)
1223
1401
        -opened*)
1224
1402
                os=-openedition
1225
1403
                ;;
1226
 
        -os400*)
 
1404
        -os400*)
1227
1405
                os=-os400
1228
1406
                ;;
1229
1407
        -wince*)
1272
1450
        -sinix*)
1273
1451
                os=-sysv4
1274
1452
                ;;
1275
 
        -tpf*)
 
1453
        -tpf*)
1276
1454
                os=-tpf
1277
1455
                ;;
1278
1456
        -triton*)
1314
1492
        -zvmoe)
1315
1493
                os=-zvmoe
1316
1494
                ;;
 
1495
        -dicos*)
 
1496
                os=-dicos
 
1497
                ;;
 
1498
        -nacl*)
 
1499
                ;;
1317
1500
        -none)
1318
1501
                ;;
1319
1502
        *)
1336
1519
# system, and we'll never get to this point.
1337
1520
 
1338
1521
case $basic_machine in
 
1522
        score-*)
 
1523
                os=-elf
 
1524
                ;;
 
1525
        spu-*)
 
1526
                os=-elf
 
1527
                ;;
1339
1528
        *-acorn)
1340
1529
                os=-riscix1.2
1341
1530
                ;;
1345
1534
        arm*-semi)
1346
1535
                os=-aout
1347
1536
                ;;
1348
 
    c4x-* | tic4x-*)
1349
 
        os=-coff
1350
 
        ;;
 
1537
        c4x-* | tic4x-*)
 
1538
                os=-coff
 
1539
                ;;
 
1540
        tic54x-*)
 
1541
                os=-coff
 
1542
                ;;
 
1543
        tic55x-*)
 
1544
                os=-coff
 
1545
                ;;
 
1546
        tic6x-*)
 
1547
                os=-coff
 
1548
                ;;
1351
1549
        # This must come before the *-dec entry.
1352
1550
        pdp10-*)
1353
1551
                os=-tops20
1366
1564
                ;;
1367
1565
        m68000-sun)
1368
1566
                os=-sunos3
1369
 
                # This also exists in the configure program, but was not the
1370
 
                # default.
1371
 
                # os=-sunos4
1372
1567
                ;;
1373
1568
        m68*-cisco)
1374
1569
                os=-aout
1375
1570
                ;;
 
1571
        mep-*)
 
1572
                os=-elf
 
1573
                ;;
1376
1574
        mips*-cisco)
1377
1575
                os=-elf
1378
1576
                ;;
1391
1589
        *-be)
1392
1590
                os=-beos
1393
1591
                ;;
 
1592
        *-haiku)
 
1593
                os=-haiku
 
1594
                ;;
1394
1595
        *-ibm)
1395
1596
                os=-aix
1396
1597
                ;;
1397
 
        *-knuth)
 
1598
        *-knuth)
1398
1599
                os=-mmixware
1399
1600
                ;;
1400
1601
        *-wec)
1499
1700
                        -sunos*)
1500
1701
                                vendor=sun
1501
1702
                                ;;
1502
 
                        -aix*)
 
1703
                        -cnk*|-aix*)
1503
1704
                                vendor=ibm
1504
1705
                                ;;
1505
1706
                        -beos*)
1562
1763
esac
1563
1764
 
1564
1765
echo $basic_machine$os
1565
 
exit 0
 
1766
exit
1566
1767
 
1567
1768
# Local variables:
1568
1769
# eval: (add-hook 'write-file-hooks 'time-stamp)