~ubuntu-branches/ubuntu/trusty/isdnutils/trusty

« back to all changes in this revision

Viewing changes to capi20/config.sub

  • Committer: Package Import Robot
  • Author(s): Steve Langasek
  • Date: 2013-11-15 00:02:58 UTC
  • mfrom: (1.1.8) (31.1.1 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20131115000258-tt9v3gasgrdml07k
Tags: 1:3.25+dfsg1-3.3ubuntu1
* Merge from Debian unstable:
  - resolves licensing issues with package contents.  LP: #511988.
  - includes proper upstream fix for ipppd on ARM.  LP: #453159.
  - resolves isdnutils-base removal failures.  LP: #813771.
  - fixes capiutils init script to not try to mount obsolete capifs.
    LP: #1064347.
* Remaining changes:
  - Switch libreadline5-dev to libreadline-gplv2-dev since this package
    appears to be GPLv2
  - debian/patches/no-imake.patch: Don't build xisdnload/xmonisdn using
    xmkmf/imake.  This patch was dropped in Debian without explanation;
    it still applies and seems to still be a good idea for eventual
    upstreaming, since imake is quite obsolete.
  - capi.conf: Fix typo for fcdsl2 firmware. LP: #189132.
  - Remove dependencies on /etc/inittab.
    - Disable the installation code to modify /etc/inittab.
    - isdnutils-base: Add ttyI0 example script, which needs to be installed
      in /etc/event.d/ttyI0.
    - isdnvboxserver: Add ttyI1 example script, which needs to be installed
      in /etc/event.d/ttyI1.
    - The two upstart scripts need to be edited.
    - Further improvements and documentation welcome.
* Changes included in Debian:
  - replace calls to ./MAKEDEV with /sbin/MAKEDEV
  - Build-depend on ppp-dev.
  - Switch to newer tcl -dev.
  - update to newer automake
  - debian/rules: use autoreconf to update the autotools in the capi20
    directory
  - debian/{compat,rules,*.files,.dirs}: Convert to Multi-arch.
  - debian/libcapi20-dev.install: Remove .la files (no builds use them).
* Changes included upstream:
  - fix for ARM FTBFS.
  - fix bashisms in vboxplay.
  - debian/patches/{config_libdir,toplevel-make}.patch: add CONFIG_LIBDIR
    override to upstream build system to support Multi-arch.
* Dropped changes:
  - kick dpatch to the curb.
* Handle migrating the blacklist file from
  /etc/modprobe.d/blacklist-capiutils.conf to the path used in Debian,
  /etc/modprobe.d/capiutils.conf.
* Handle rename of /etc/ppp/ip-down.d/99-ipppd and /etc/ppp/ip-up.d/00-ipppd
  to /etc/ppp/ip-down.d/ipppd and /etc/ppp/ip-up.d/ipppd
* Handle rename of /etc/init.d/isdnutils to /etc/init.d/isdnutils-base
* Restore standard.tcl to /usr/share/isdnvboxserver/default; maintainer
  scripts must not depend on contents of /usr/share/doc.
* Apply patches that were preserved in the 3.0 (quilt) migration, but
  were inadvertently not applied:
  - debian/patches/capifax.additional_error_codes.patch
  - debian/patches/capifax.3_1kHz_audio.patch
* Drop debian/isdnutils-base.cron.d, which isn't a cronjob example at all
  but an inittab example gone astray.
* debian/dotconfig*: don't use embedded quotes for paths; this confuses
  vbox's Makefiles something fierce, and causes files to be missed from
  debian/tmp'/usr/share/man/' at install time.
* Fix isdnlog and ipppd to not ship files used in the postinst under
  /usr/share/doc.
* Modernize the upstart examples.

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 Free Software Foundation, Inc.
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
 
5
#   Free Software Foundation, Inc.
5
6
 
6
 
timestamp='2004-02-23'
 
7
timestamp='2009-11-20'
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
21
22
#
22
23
# You should have received a copy of the GNU General Public License
23
24
# 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
 
 
 
25
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
 
26
# 02110-1301, USA.
 
27
#
27
28
# As a special exception to the GNU General Public License, if you
28
29
# distribute this file as part of a program that contains a
29
30
# configuration script generated by Autoconf, you may include it under
30
31
# the same distribution terms that you use for the rest of that program.
31
32
 
 
33
 
32
34
# Please send patches to <config-patches@gnu.org>.  Submit a context
33
 
# diff and a properly formatted ChangeLog entry.
 
35
# diff and a properly formatted GNU ChangeLog entry.
34
36
#
35
37
# Configuration subroutine to validate and canonicalize a configuration type.
36
38
# Supply the specified configuration type as an argument.
37
39
# If it is invalid, we print an error message on stderr and exit with code 1.
38
40
# Otherwise, we print the canonical config type on stdout and succeed.
39
41
 
 
42
# You can get the latest version of this script from:
 
43
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
 
44
 
40
45
# This file is supposed to be the same for all GNU packages
41
46
# and recognize all the CPU types, system types and aliases
42
47
# that are meaningful with *any* GNU software.
70
75
version="\
71
76
GNU config.sub ($timestamp)
72
77
 
73
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
74
 
Free Software Foundation, Inc.
 
78
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
 
79
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
75
80
 
76
81
This is free software; see the source for copying conditions.  There is NO
77
82
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
83
88
while test $# -gt 0 ; do
84
89
  case $1 in
85
90
    --time-stamp | --time* | -t )
86
 
       echo "$timestamp" ; exit 0 ;;
 
91
       echo "$timestamp" ; exit ;;
87
92
    --version | -v )
88
 
       echo "$version" ; exit 0 ;;
 
93
       echo "$version" ; exit ;;
89
94
    --help | --h* | -h )
90
 
       echo "$usage"; exit 0 ;;
 
95
       echo "$usage"; exit ;;
91
96
    -- )     # Stop option processing
92
97
       shift; break ;;
93
98
    - ) # Use stdin as input.
99
104
    *local*)
100
105
       # First pass through any local machine types.
101
106
       echo $1
102
 
       exit 0;;
 
107
       exit ;;
103
108
 
104
109
    * )
105
110
       break ;;
118
123
# Here we must recognize all the valid KERNEL-OS combinations.
119
124
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120
125
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*)
 
126
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
 
127
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | 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
    ;;
145
152
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
146
153
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
147
154
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
148
 
        -apple | -axis)
 
155
        -apple | -axis | -knuth | -cray | -microblaze)
149
156
                os=
150
157
                basic_machine=$1
151
158
                ;;
 
159
        -bluegene*)
 
160
                os=-cnk
 
161
                ;;
152
162
        -sim | -cisco | -oki | -wec | -winbond)
153
163
                os=
154
164
                basic_machine=$1
170
180
        -hiux*)
171
181
                os=-hiuxwe2
172
182
                ;;
 
183
        -sco6)
 
184
                os=-sco5v6
 
185
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
186
                ;;
173
187
        -sco5)
174
188
                os=-sco3.2v5
175
189
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186
200
                # Don't forget version if it is 3.2v4 or newer.
187
201
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
188
202
                ;;
 
203
        -sco5v6*)
 
204
                # Don't forget version if it is 3.2v4 or newer.
 
205
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 
206
                ;;
189
207
        -sco*)
190
208
                os=-sco3.2v2
191
209
                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
230
248
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
231
249
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
232
250
        | am33_2.0 \
233
 
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
 
251
        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
 
252
        | bfin \
234
253
        | c4x | clipper \
235
254
        | d10v | d30v | dlx | dsp16xx \
236
 
        | fr30 | frv \
 
255
        | fido | fr30 | frv \
237
256
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
238
257
        | i370 | i860 | i960 | ia64 \
239
258
        | ip2k | iq2000 \
240
 
        | m32r | m68000 | m68k | m88k | mcore \
 
259
        | lm32 \
 
260
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
 
261
        | maxq | mb | microblaze | mcore | mep | metag \
241
262
        | mips | mipsbe | mipseb | mipsel | mipsle \
242
263
        | mips16 \
243
264
        | mips64 | mips64el \
 
265
        | mips64octeon | mips64octeonel \
 
266
        | mips64orion | mips64orionel \
 
267
        | mips64r5900 | mips64r5900el \
244
268
        | mips64vr | mips64vrel \
245
 
        | mips64orion | mips64orionel \
246
269
        | mips64vr4100 | mips64vr4100el \
247
270
        | mips64vr4300 | mips64vr4300el \
248
271
        | mips64vr5000 | mips64vr5000el \
 
272
        | mips64vr5900 | mips64vr5900el \
249
273
        | mipsisa32 | mipsisa32el \
250
274
        | mipsisa32r2 | mipsisa32r2el \
251
275
        | mipsisa64 | mipsisa64el \
254
278
        | mipsisa64sr71k | mipsisa64sr71kel \
255
279
        | mipstx39 | mipstx39el \
256
280
        | mn10200 | mn10300 \
 
281
        | moxie \
 
282
        | mt \
257
283
        | msp430 \
 
284
        | nios | nios2 \
258
285
        | ns16k | ns32k \
259
 
        | openrisc | or32 \
 
286
        | or32 \
260
287
        | pdp10 | pdp11 | pj | pjl \
261
288
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
262
289
        | pyramid \
263
 
        | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
 
290
        | rx \
 
291
        | score \
 
292
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
264
293
        | sh64 | sh64le \
265
 
        | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
266
 
        | strongarm \
 
294
        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
 
295
        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
 
296
        | spu | strongarm \
267
297
        | tahoe | thumb | tic4x | tic80 | tron \
 
298
        | ubicom32 \
268
299
        | v850 | v850e \
269
300
        | we32k \
270
 
        | x86 | xscale | xstormy16 | xtensa \
271
 
        | z8k)
 
301
        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
 
302
        | z8k | z80)
272
303
                basic_machine=$basic_machine-unknown
273
304
                ;;
274
 
        m6811 | m68hc11 | m6812 | m68hc12)
 
305
        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
275
306
                # Motorola 68HC11/12.
276
307
                basic_machine=$basic_machine-unknown
277
308
                os=-none
278
309
                ;;
279
310
        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
280
311
                ;;
 
312
        ms1)
 
313
                basic_machine=mt-unknown
 
314
                ;;
281
315
 
282
316
        # We use `pc' rather than `unknown'
283
317
        # because (1) that's what they normally are, and
297
331
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
298
332
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
299
333
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
300
 
        | avr-* \
301
 
        | bs2000-* \
 
334
        | avr-* | avr32-* \
 
335
        | bfin-* | bs2000-* \
302
336
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
303
 
        | clipper-* | cydra-* \
 
337
        | clipper-* | craynv-* | cydra-* \
304
338
        | d10v-* | d30v-* | dlx-* \
305
339
        | elxsi-* \
306
 
        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
 
340
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
307
341
        | h8300-* | h8500-* \
308
342
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
309
343
        | i*86-* | i860-* | i960-* | ia64-* \
310
344
        | ip2k-* | iq2000-* \
311
 
        | m32r-* \
 
345
        | lm32-* \
 
346
        | m32c-* | m32r-* | m32rle-* \
312
347
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
313
 
        | m88110-* | m88k-* | mcore-* \
 
348
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
314
349
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
315
350
        | mips16-* \
316
351
        | mips64-* | mips64el-* \
 
352
        | mips64octeon-* | mips64octeonel-* \
 
353
        | mips64orion-* | mips64orionel-* \
 
354
        | mips64r5900-* | mips64r5900el-* \
317
355
        | mips64vr-* | mips64vrel-* \
318
 
        | mips64orion-* | mips64orionel-* \
319
356
        | mips64vr4100-* | mips64vr4100el-* \
320
357
        | mips64vr4300-* | mips64vr4300el-* \
321
358
        | mips64vr5000-* | mips64vr5000el-* \
 
359
        | mips64vr5900-* | mips64vr5900el-* \
322
360
        | mipsisa32-* | mipsisa32el-* \
323
361
        | mipsisa32r2-* | mipsisa32r2el-* \
324
362
        | mipsisa64-* | mipsisa64el-* \
326
364
        | mipsisa64sb1-* | mipsisa64sb1el-* \
327
365
        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
328
366
        | mipstx39-* | mipstx39el-* \
 
367
        | mmix-* \
 
368
        | mt-* \
329
369
        | msp430-* \
330
 
        | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
 
370
        | nios-* | nios2-* \
 
371
        | none-* | np1-* | ns16k-* | ns32k-* \
331
372
        | orion-* \
332
373
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
333
374
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
334
375
        | pyramid-* \
335
 
        | romp-* | rs6000-* \
336
 
        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
 
376
        | romp-* | rs6000-* | rx-* \
 
377
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
337
378
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
338
 
        | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
339
 
        | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
 
379
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
 
380
        | sparclite-* \
 
381
        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
340
382
        | tahoe-* | thumb-* \
341
 
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 
383
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
342
384
        | tron-* \
 
385
        | ubicom32-* \
343
386
        | v850-* | v850e-* | vax-* \
344
387
        | we32k-* \
345
 
        | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
346
 
        | xtensa-* \
 
388
        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
 
389
        | xstormy16-* | xtensa*-* \
347
390
        | ymp-* \
348
 
        | z8k-*)
 
391
        | z8k-* | z80-*)
 
392
                ;;
 
393
        # Recognize the basic CPU types without company name, with glob match.
 
394
        xtensa*)
 
395
                basic_machine=$basic_machine-unknown
349
396
                ;;
350
397
        # Recognize the various machine names and aliases which stand
351
398
        # for a CPU type and a company and sometimes even an OS.
409
456
                basic_machine=m68k-apollo
410
457
                os=-bsd
411
458
                ;;
 
459
        aros)
 
460
                basic_machine=i386-pc
 
461
                os=-aros
 
462
                ;;
412
463
        aux)
413
464
                basic_machine=m68k-apple
414
465
                os=-aux
417
468
                basic_machine=ns32k-sequent
418
469
                os=-dynix
419
470
                ;;
 
471
        blackfin)
 
472
                basic_machine=bfin-unknown
 
473
                os=-linux
 
474
                ;;
 
475
        blackfin-*)
 
476
                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
 
477
                os=-linux
 
478
                ;;
 
479
        bluegene*)
 
480
                basic_machine=powerpc-ibm
 
481
                os=-cnk
 
482
                ;;
420
483
        c90)
421
484
                basic_machine=c90-cray
422
485
                os=-unicos
423
486
                ;;
 
487
        cegcc)
 
488
                basic_machine=arm-unknown
 
489
                os=-cegcc
 
490
                ;;
424
491
        convex-c1)
425
492
                basic_machine=c1-convex
426
493
                os=-bsd
445
512
                basic_machine=j90-cray
446
513
                os=-unicos
447
514
                ;;
448
 
        cr16c)
449
 
                basic_machine=cr16c-unknown
 
515
        craynv)
 
516
                basic_machine=craynv-cray
 
517
                os=-unicosmp
 
518
                ;;
 
519
        cr16)
 
520
                basic_machine=cr16-unknown
450
521
                os=-elf
451
522
                ;;
452
523
        crds | unos)
453
524
                basic_machine=m68k-crds
454
525
                ;;
 
526
        crisv32 | crisv32-* | etraxfs*)
 
527
                basic_machine=crisv32-axis
 
528
                ;;
455
529
        cris | cris-* | etrax*)
456
530
                basic_machine=cris-axis
457
531
                ;;
481
555
                basic_machine=m88k-motorola
482
556
                os=-sysv3
483
557
                ;;
 
558
        dicos)
 
559
                basic_machine=i686-pc
 
560
                os=-dicos
 
561
                ;;
 
562
        djgpp)
 
563
                basic_machine=i586-pc
 
564
                os=-msdosdjgpp
 
565
                ;;
484
566
        dpx20 | dpx20-*)
485
567
                basic_machine=rs6000-bull
486
568
                os=-bosx
631
713
                basic_machine=m68k-isi
632
714
                os=-sysv
633
715
                ;;
 
716
        m68knommu)
 
717
                basic_machine=m68k-unknown
 
718
                os=-linux
 
719
                ;;
 
720
        m68knommu-*)
 
721
                basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
 
722
                os=-linux
 
723
                ;;
634
724
        m88k-omron*)
635
725
                basic_machine=m88k-omron
636
726
                ;;
642
732
                basic_machine=ns32k-utek
643
733
                os=-sysv
644
734
                ;;
 
735
        microblaze)
 
736
                basic_machine=microblaze-xilinx
 
737
                ;;
645
738
        mingw32)
646
739
                basic_machine=i386-pc
647
740
                os=-mingw32
648
741
                ;;
 
742
        mingw32ce)
 
743
                basic_machine=arm-unknown
 
744
                os=-mingw32ce
 
745
                ;;
649
746
        miniframe)
650
747
                basic_machine=m68000-convergent
651
748
                ;;
659
756
        mips3*)
660
757
                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
661
758
                ;;
662
 
        mmix*)
663
 
                basic_machine=mmix-knuth
664
 
                os=-mmixware
665
 
                ;;
666
759
        monitor)
667
760
                basic_machine=m68k-rom68k
668
761
                os=-coff
675
768
                basic_machine=i386-pc
676
769
                os=-msdos
677
770
                ;;
 
771
        ms1-*)
 
772
                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
 
773
                ;;
678
774
        mvs)
679
775
                basic_machine=i370-ibm
680
776
                os=-mvs
743
839
        np1)
744
840
                basic_machine=np1-gould
745
841
                ;;
746
 
        nv1)
747
 
                basic_machine=nv1-cray
748
 
                os=-unicosmp
749
 
                ;;
750
842
        nsr-tandem)
751
843
                basic_machine=nsr-tandem
752
844
                ;;
754
846
                basic_machine=hppa1.1-oki
755
847
                os=-proelf
756
848
                ;;
757
 
        or32 | or32-*)
 
849
        openrisc | openrisc-*)
758
850
                basic_machine=or32-unknown
759
 
                os=-coff
760
851
                ;;
761
852
        os400)
762
853
                basic_machine=powerpc-ibm
778
869
                basic_machine=i860-intel
779
870
                os=-osf
780
871
                ;;
 
872
        parisc)
 
873
                basic_machine=hppa-unknown
 
874
                os=-linux
 
875
                ;;
 
876
        parisc-*)
 
877
                basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
 
878
                os=-linux
 
879
                ;;
781
880
        pbd)
782
881
                basic_machine=sparc-tti
783
882
                ;;
787
886
        pc532 | pc532-*)
788
887
                basic_machine=ns32k-pc532
789
888
                ;;
 
889
        pc98)
 
890
                basic_machine=i386-pc
 
891
                ;;
 
892
        pc98-*)
 
893
                basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
 
894
                ;;
790
895
        pentium | p5 | k5 | k6 | nexgen | viac3)
791
896
                basic_machine=i586-pc
792
897
                ;;
843
948
                basic_machine=i586-unknown
844
949
                os=-pw32
845
950
                ;;
 
951
        rdos)
 
952
                basic_machine=i386-pc
 
953
                os=-rdos
 
954
                ;;
846
955
        rom68k)
847
956
                basic_machine=m68k-rom68k
848
957
                os=-coff
869
978
        sb1el)
870
979
                basic_machine=mipsisa64sb1el-unknown
871
980
                ;;
 
981
        sde)
 
982
                basic_machine=mipsisa32-sde
 
983
                os=-elf
 
984
                ;;
872
985
        sei)
873
986
                basic_machine=mips-sei
874
987
                os=-seiux
880
993
                basic_machine=sh-hitachi
881
994
                os=-hms
882
995
                ;;
 
996
        sh5el)
 
997
                basic_machine=sh5le-unknown
 
998
                ;;
883
999
        sh64)
884
1000
                basic_machine=sh64-unknown
885
1001
                ;;
969
1085
                basic_machine=tic6x-unknown
970
1086
                os=-coff
971
1087
                ;;
 
1088
        tile*)
 
1089
                basic_machine=tile-unknown
 
1090
                os=-linux-gnu
 
1091
                ;;
972
1092
        tx39)
973
1093
                basic_machine=mipstx39-unknown
974
1094
                ;;
1029
1149
                basic_machine=hppa1.1-winbond
1030
1150
                os=-proelf
1031
1151
                ;;
 
1152
        xbox)
 
1153
                basic_machine=i686-pc
 
1154
                os=-mingw32
 
1155
                ;;
1032
1156
        xps | xps100)
1033
1157
                basic_machine=xps100-honeywell
1034
1158
                ;;
1040
1164
                basic_machine=z8k-unknown
1041
1165
                os=-sim
1042
1166
                ;;
 
1167
        z80-*-coff)
 
1168
                basic_machine=z80-unknown
 
1169
                os=-sim
 
1170
                ;;
1043
1171
        none)
1044
1172
                basic_machine=none-none
1045
1173
                os=-none
1059
1187
        romp)
1060
1188
                basic_machine=romp-ibm
1061
1189
                ;;
 
1190
        mmix)
 
1191
                basic_machine=mmix-knuth
 
1192
                ;;
1062
1193
        rs6000)
1063
1194
                basic_machine=rs6000-ibm
1064
1195
                ;;
1075
1206
        we32k)
1076
1207
                basic_machine=we32k-att
1077
1208
                ;;
1078
 
        sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
 
1209
        sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1079
1210
                basic_machine=sh-unknown
1080
1211
                ;;
1081
 
        sh64)
1082
 
                basic_machine=sh64-unknown
1083
 
                ;;
1084
 
        sparc | sparcv9 | sparcv9b)
 
1212
        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1085
1213
                basic_machine=sparc-sun
1086
1214
                ;;
1087
1215
        cydra)
1128
1256
        # First match some system type aliases
1129
1257
        # that might get confused with valid system types.
1130
1258
        # -solaris* is a basic system type, with this one exception.
 
1259
        -auroraux)
 
1260
                os=-auroraux
 
1261
                ;;
1131
1262
        -solaris1 | -solaris1.*)
1132
1263
                os=`echo $os | sed -e 's|solaris1|sunos4|'`
1133
1264
                ;;
1148
1279
        # Each alternative MUST END IN A *, to match a version number.
1149
1280
        # -sysv* is not here because it comes later, after sysvr4.
1150
1281
        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1151
 
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1152
 
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
 
1282
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
 
1283
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
 
1284
              | -sym* | -kopensolaris* \
1153
1285
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1154
 
              | -aos* \
 
1286
              | -aos* | -aros* \
1155
1287
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1156
1288
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1157
 
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
 
1289
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
 
1290
              | -openbsd* | -solidbsd* \
1158
1291
              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1159
1292
              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1160
1293
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1161
1294
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1162
 
              | -chorusos* | -chorusrdb* \
 
1295
              | -chorusos* | -chorusrdb* | -cegcc* \
1163
1296
              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1164
 
              | -mingw32* | -linux* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
 
1297
              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
 
1298
              | -uxpv* | -beos* | -mpeix* | -udk* \
1165
1299
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1166
1300
              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1167
1301
              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1168
1302
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1169
1303
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1170
 
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
 
1304
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
 
1305
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1171
1306
        # Remember, each alternative MUST END IN *, to match a version number.
1172
1307
                ;;
1173
1308
        -qnx*)
1185
1320
                os=`echo $os | sed -e 's|nto|nto-qnx|'`
1186
1321
                ;;
1187
1322
        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1188
 
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
 
1323
              | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1189
1324
              | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1190
1325
                ;;
1191
1326
        -mac*)
1194
1329
        -linux-dietlibc)
1195
1330
                os=-linux-dietlibc
1196
1331
                ;;
 
1332
        -linux*)
 
1333
                os=`echo $os | sed -e 's|linux|linux-gnu|'`
 
1334
                ;;
1197
1335
        -sunos5*)
1198
1336
                os=`echo $os | sed -e 's|sunos5|solaris2|'`
1199
1337
                ;;
1291
1429
        -kaos*)
1292
1430
                os=-kaos
1293
1431
                ;;
 
1432
        -zvmoe)
 
1433
                os=-zvmoe
 
1434
                ;;
 
1435
        -dicos*)
 
1436
                os=-dicos
 
1437
                ;;
1294
1438
        -none)
1295
1439
                ;;
1296
1440
        *)
1313
1457
# system, and we'll never get to this point.
1314
1458
 
1315
1459
case $basic_machine in
 
1460
        score-*)
 
1461
                os=-elf
 
1462
                ;;
 
1463
        spu-*)
 
1464
                os=-elf
 
1465
                ;;
1316
1466
        *-acorn)
1317
1467
                os=-riscix1.2
1318
1468
                ;;
1322
1472
        arm*-semi)
1323
1473
                os=-aout
1324
1474
                ;;
1325
 
    c4x-* | tic4x-*)
1326
 
        os=-coff
1327
 
        ;;
 
1475
        c4x-* | tic4x-*)
 
1476
                os=-coff
 
1477
                ;;
1328
1478
        # This must come before the *-dec entry.
1329
1479
        pdp10-*)
1330
1480
                os=-tops20
1350
1500
        m68*-cisco)
1351
1501
                os=-aout
1352
1502
                ;;
 
1503
        mep-*)
 
1504
                os=-elf
 
1505
                ;;
1353
1506
        mips*-cisco)
1354
1507
                os=-elf
1355
1508
                ;;
1368
1521
        *-be)
1369
1522
                os=-beos
1370
1523
                ;;
 
1524
        *-haiku)
 
1525
                os=-haiku
 
1526
                ;;
1371
1527
        *-ibm)
1372
1528
                os=-aix
1373
1529
                ;;
 
1530
        *-knuth)
 
1531
                os=-mmixware
 
1532
                ;;
1374
1533
        *-wec)
1375
1534
                os=-proelf
1376
1535
                ;;
1473
1632
                        -sunos*)
1474
1633
                                vendor=sun
1475
1634
                                ;;
1476
 
                        -aix*)
 
1635
                        -cnk*|-aix*)
1477
1636
                                vendor=ibm
1478
1637
                                ;;
1479
1638
                        -beos*)
1536
1695
esac
1537
1696
 
1538
1697
echo $basic_machine$os
1539
 
exit 0
 
1698
exit
1540
1699
 
1541
1700
# Local variables:
1542
1701
# eval: (add-hook 'write-file-hooks 'time-stamp)