Develop and Download Open Source Software

Browse CVS Repository

Diff of /freewnn/FreeWnn/config.sub

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by ura, Mon Jun 18 09:09:20 2001 UTC revision 1.2 by hiroo, Tue Aug 14 13:43:20 2001 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
2  # Configuration validation subroutine script, version 1.1.  # Configuration validation subroutine script.
3  #   Copyright (C) 1991, 92-97, 1998 Free Software Foundation, Inc.  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4    #   Free Software Foundation, Inc.
5    
6    timestamp='2001-04-20'
7    
8  # This file is (in principle) common to ALL GNU software.  # This file is (in principle) common to ALL GNU software.
9  # The presence of a machine in this file suggests that SOME GNU software  # The presence of a machine in this file suggests that SOME GNU software
10  # can handle that machine.  It does not imply ALL GNU software can.  # can handle that machine.  It does not imply ALL GNU software can.
# Line 25  Line 29 
29  # configuration script generated by Autoconf, you may include it under  # configuration script generated by Autoconf, you may include it under
30  # the same distribution terms that you use for the rest of that program.  # the same distribution terms that you use for the rest of that program.
31    
32    # Please send patches to <config-patches@gnu.org>.
33    #
34  # Configuration subroutine to validate and canonicalize a configuration type.  # Configuration subroutine to validate and canonicalize a configuration type.
35  # Supply the specified configuration type as an argument.  # Supply the specified configuration type as an argument.
36  # If it is invalid, we print an error message on stderr and exit with code 1.  # If it is invalid, we print an error message on stderr and exit with code 1.
# Line 45  Line 51 
51  #       CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM  #       CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
52  # It is wrong to echo any other type of specification.  # It is wrong to echo any other type of specification.
53    
54  if [ x$1 = x ]  me=`echo "$0" | sed -e 's,.*/,,'`
 then  
         echo Configuration name missing. 1>&2  
         echo "Usage: $0 CPU-MFR-OPSYS" 1>&2  
         echo "or     $0 ALIAS" 1>&2  
         echo where ALIAS is a recognized configuration type. 1>&2  
         exit 1  
 fi  
55    
56  # First pass through any local machine types.  usage="\
57  case $1 in  Usage: $0 [OPTION] CPU-MFR-OPSYS
58          *local*)         $0 [OPTION] ALIAS
59                  echo $1  
60                  exit 0  Canonicalize a configuration name.
61                  ;;  
62          *)  Operation modes:
63          ;;    -h, --help         print this help, then exit
64      -t, --time-stamp   print date of last modification, then exit
65      -v, --version      print version number, then exit
66    
67    Report bugs and patches to <config-patches@gnu.org>."
68    
69    version="\
70    GNU config.sub ($timestamp)
71    
72    Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
73    Free Software Foundation, Inc.
74    
75    This is free software; see the source for copying conditions.  There is NO
76    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
77    
78    help="
79    Try \`$me --help' for more information."
80    
81    # Parse command line
82    while test $# -gt 0 ; do
83      case $1 in
84        --time-stamp | --time* | -t )
85           echo "$timestamp" ; exit 0 ;;
86        --version | -v )
87           echo "$version" ; exit 0 ;;
88        --help | --h* | -h )
89           echo "$usage"; exit 0 ;;
90        -- )     # Stop option processing
91           shift; break ;;
92        - ) # Use stdin as input.
93           break ;;
94        -* )
95           echo "$me: invalid option $1$help"
96           exit 1 ;;
97    
98        *local*)
99           # First pass through any local machine types.
100           echo $1
101           exit 0;;
102    
103        * )
104           break ;;
105      esac
106    done
107    
108    case $# in
109     0) echo "$me: missing argument$help" >&2
110        exit 1;;
111     1) ;;
112     *) echo "$me: too many arguments$help" >&2
113        exit 1;;
114  esac  esac
115    
116  # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).  # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
117  # Here we must recognize all the valid KERNEL-OS combinations.  # Here we must recognize all the valid KERNEL-OS combinations.
118  maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`  maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
119  case $maybe_os in  case $maybe_os in
120    linux-gnu*)    nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*)
121      os=-$maybe_os      os=-$maybe_os
122      basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`      basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
123      ;;      ;;
# Line 94  case $os in Line 143  case $os in
143          -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\          -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
144          -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \          -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
145          -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \          -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
146          -apple)          -apple | -axis)
147                    os=
148                    basic_machine=$1
149                    ;;
150            -sim | -cisco | -oki | -wec | -winbond)
151                  os=                  os=
152                  basic_machine=$1                  basic_machine=$1
153                  ;;                  ;;
154            -scout)
155                    ;;
156            -wrs)
157                    os=-vxworks
158                    basic_machine=$1
159                    ;;
160          -hiux*)          -hiux*)
161                  os=-hiuxwe2                  os=-hiuxwe2
162                  ;;                  ;;
163          -sco5)          -sco5)
164                  os=sco3.2v5                  os=-sco3.2v5
165                  basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`                  basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
166                  ;;                  ;;
167          -sco4)          -sco4)
# Line 121  case $os in Line 180  case $os in
180                  os=-sco3.2v2                  os=-sco3.2v2
181                  basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`                  basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
182                  ;;                  ;;
183            -udk*)
184                    basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
185                    ;;
186          -isc)          -isc)
187                  os=-isc2.2                  os=-isc2.2
188                  basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`                  basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
# Line 143  case $os in Line 205  case $os in
205          -psos*)          -psos*)
206                  os=-psos                  os=-psos
207                  ;;                  ;;
208            -mint | -mint[0-9]*)
209                    basic_machine=m68k-atari
210                    os=-mint
211                    ;;
212  esac  esac
213    
214  # Decode aliases for certain CPU-COMPANY combinations.  # Decode aliases for certain CPU-COMPANY combinations.
215  case $basic_machine in  case $basic_machine in
216          # Recognize the basic CPU types without company name.          # Recognize the basic CPU types without company name.
217          # Some are omitted here because they have special meanings below.          # Some are omitted here because they have special meanings below.
218          tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \          tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \
219                  | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \                  | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \
220                  | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 | hppa2.0 \                  | pyramid | mn10200 | mn10300 | tron | a29k \
221                  | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \                  | 580 | i960 | h8300 \
222                  | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \                  | x86 | ppcbe | mipsbe | mipsle | shbe | shle \
223                  | mips64 | mipsel | mips64el | mips64orion | mips64orionel \                  | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
224                  | mipstx39 | mipstx39el \                  | hppa64 \
225                  | sparc | sparclet | sparclite | sparc64 | v850)                  | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
226                    | alphaev6[78] \
227                    | we32k | ns16k | clipper | i370 | sh | sh[34] \
228                    | powerpc | powerpcle \
229                    | 1750a | dsp16xx | pdp10 | pdp11 \
230                    | mips16 | mips64 | mipsel | mips64el \
231                    | mips64orion | mips64orionel | mipstx39 | mipstx39el \
232                    | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
233                    | mips64vr5000 | miprs64vr5000el | mcore | s390 | s390x \
234                    | sparc | sparclet | sparclite | sparc64 | sparcv9 | sparcv9b \
235                    | v850 | c4x \
236                    | thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \
237                    | pj | pjl | h8500)
238                  basic_machine=$basic_machine-unknown                  basic_machine=$basic_machine-unknown
239                  ;;                  ;;
240            m6811 | m68hc11 | m6812 | m68hc12)
241                    # Motorola 68HC11/12.
242                    basic_machine=$basic_machine-unknown
243                    os=-none
244                    ;;
245            m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | w65)
246                    ;;
247    
248          # We use `pc' rather than `unknown'          # We use `pc' rather than `unknown'
249          # because (1) that's what they normally are, and          # because (1) that's what they normally are, and
250          # (2) the word "unknown" tends to confuse beginning users.          # (2) the word "unknown" tends to confuse beginning users.
251          i[34567]86)          i*86 | x86_64)
252            basic_machine=$basic_machine-pc            basic_machine=$basic_machine-pc
253            ;;            ;;
254          # Object if more than one company name word.          # Object if more than one company name word.
# Line 171  case $basic_machine in Line 257  case $basic_machine in
257                  exit 1                  exit 1
258                  ;;                  ;;
259          # Recognize the basic CPU types with company name.          # Recognize the basic CPU types with company name.
260          vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \          # FIXME: clean up the formatting here.
261                | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \          vax-* | tahoe-* | i*86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
262                  | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \
263                  | arm-*  | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \
264                | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \                | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
265                | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \                | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
266                | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* \                | xmp-* | ymp-* \
267                | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \                | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \
268                | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \                | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
269                | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \                | hppa2.0n-* | hppa64-* \
270                | sparc64-* | mips64-* | mipsel-* \                | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
271                | mips64el-* | mips64orion-* | mips64orionel-*  \                | alphaev6[78]-* \
272                | mipstx39-* | mipstx39el-* \                | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
273                | f301-*)                | clipper-* | orion-* \
274                  | sparclite-* | pdp10-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
275                  | sparc64-* | sparcv9-* | sparcv9b-* | sparc86x-* \
276                  | mips16-* | mips64-* | mipsel-* \
277                  | mips64el-* | mips64orion-* | mips64orionel-* \
278                  | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
279                  | mipstx39-* | mipstx39el-* | mcore-* \
280                  | f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \
281                  | [cjt]90-* \
282                  | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
283                  | thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \
284                  | bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*)
285                  ;;                  ;;
286          # Recognize the various machine names and aliases which stand          # Recognize the various machine names and aliases which stand
287          # for a CPU type and a company and sometimes even an OS.          # for a CPU type and a company and sometimes even an OS.
288            386bsd)
289                    basic_machine=i386-unknown
290                    os=-bsd
291                    ;;
292          3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)          3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
293                  basic_machine=m68000-att                  basic_machine=m68000-att
294                  ;;                  ;;
295          3b*)          3b*)
296                  basic_machine=we32k-att                  basic_machine=we32k-att
297                  ;;                  ;;
298            a29khif)
299                    basic_machine=a29k-amd
300                    os=-udi
301                    ;;
302            adobe68k)
303                    basic_machine=m68010-adobe
304                    os=-scout
305                    ;;
306          alliant | fx80)          alliant | fx80)
307                  basic_machine=fx80-alliant                  basic_machine=fx80-alliant
308                  ;;                  ;;
# Line 207  case $basic_machine in Line 318  case $basic_machine in
318                  os=-sysv                  os=-sysv
319                  ;;                  ;;
320          amiga | amiga-*)          amiga | amiga-*)
321                  basic_machine=m68k-cbm                  basic_machine=m68k-unknown
322                  ;;                  ;;
323          amigaos | amigados)          amigaos | amigados)
324                  basic_machine=m68k-cbm                  basic_machine=m68k-unknown
325                  os=-amigaos                  os=-amigaos
326                  ;;                  ;;
327          amigaunix | amix)          amigaunix | amix)
328                  basic_machine=m68k-cbm                  basic_machine=m68k-unknown
329                  os=-sysv4                  os=-sysv4
330                  ;;                  ;;
331          apollo68)          apollo68)
332                  basic_machine=m68k-apollo                  basic_machine=m68k-apollo
333                  os=-sysv                  os=-sysv
334                  ;;                  ;;
335            apollo68bsd)
336                    basic_machine=m68k-apollo
337                    os=-bsd
338                    ;;
339          aux)          aux)
340                  basic_machine=m68k-apple                  basic_machine=m68k-apple
341                  os=-aux                  os=-aux
# Line 257  case $basic_machine in Line 372  case $basic_machine in
372                  basic_machine=cray2-cray                  basic_machine=cray2-cray
373                  os=-unicos                  os=-unicos
374                  ;;                  ;;
375          [ctj]90-cray)          [cjt]90)
376                  basic_machine=c90-cray                  basic_machine=${basic_machine}-cray
377                  os=-unicos                  os=-unicos
378                  ;;                  ;;
379          crds | unos)          crds | unos)
380                  basic_machine=m68k-crds                  basic_machine=m68k-crds
381                  ;;                  ;;
382            cris | cris-* | etrax*)
383                    basic_machine=cris-axis
384                    ;;
385          da30 | da30-*)          da30 | da30-*)
386                  basic_machine=m68k-da30                  basic_machine=m68k-da30
387                  ;;                  ;;
# Line 297  case $basic_machine in Line 415  case $basic_machine in
415          encore | umax | mmax)          encore | umax | mmax)
416                  basic_machine=ns32k-encore                  basic_machine=ns32k-encore
417                  ;;                  ;;
418            es1800 | OSE68k | ose68k | ose | OSE)
419                    basic_machine=m68k-ericsson
420                    os=-ose
421                    ;;
422          fx2800)          fx2800)
423                  basic_machine=i860-alliant                  basic_machine=i860-alliant
424                  ;;                  ;;
# Line 307  case $basic_machine in Line 429  case $basic_machine in
429                  basic_machine=tron-gmicro                  basic_machine=tron-gmicro
430                  os=-sysv                  os=-sysv
431                  ;;                  ;;
432            go32)
433                    basic_machine=i386-pc
434                    os=-go32
435                    ;;
436          h3050r* | hiux*)          h3050r* | hiux*)
437                  basic_machine=hppa1.1-hitachi                  basic_machine=hppa1.1-hitachi
438                  os=-hiuxwe2                  os=-hiuxwe2
# Line 315  case $basic_machine in Line 441  case $basic_machine in
441                  basic_machine=h8300-hitachi                  basic_machine=h8300-hitachi
442                  os=-hms                  os=-hms
443                  ;;                  ;;
444            h8300xray)
445                    basic_machine=h8300-hitachi
446                    os=-xray
447                    ;;
448            h8500hms)
449                    basic_machine=h8500-hitachi
450                    os=-hms
451                    ;;
452          harris)          harris)
453                  basic_machine=m88k-harris                  basic_machine=m88k-harris
454                  os=-sysv3                  os=-sysv3
# Line 330  case $basic_machine in Line 464  case $basic_machine in
464                  basic_machine=m68k-hp                  basic_machine=m68k-hp
465                  os=-hpux                  os=-hpux
466                  ;;                  ;;
467            hp3k9[0-9][0-9] | hp9[0-9][0-9])
468                    basic_machine=hppa1.0-hp
469                    ;;
470          hp9k2[0-9][0-9] | hp9k31[0-9])          hp9k2[0-9][0-9] | hp9k31[0-9])
471                  basic_machine=m68000-hp                  basic_machine=m68000-hp
472                  ;;                  ;;
473          hp9k3[2-9][0-9])          hp9k3[2-9][0-9])
474                  basic_machine=m68k-hp                  basic_machine=m68k-hp
475                  ;;                  ;;
476          hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)          hp9k6[0-9][0-9] | hp6[0-9][0-9])
477                    basic_machine=hppa1.0-hp
478                    ;;
479            hp9k7[0-79][0-9] | hp7[0-79][0-9])
480                    basic_machine=hppa1.1-hp
481                    ;;
482            hp9k78[0-9] | hp78[0-9])
483                    # FIXME: really hppa2.0-hp
484                    basic_machine=hppa1.1-hp
485                    ;;
486            hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
487                    # FIXME: really hppa2.0-hp
488                    basic_machine=hppa1.1-hp
489                    ;;
490            hp9k8[0-9][13679] | hp8[0-9][13679])
491                  basic_machine=hppa1.1-hp                  basic_machine=hppa1.1-hp
492                  ;;                  ;;
493          hp9k8[0-9][0-9] | hp8[0-9][0-9])          hp9k8[0-9][0-9] | hp8[0-9][0-9])
# Line 345  case $basic_machine in Line 496  case $basic_machine in
496          hppa-next)          hppa-next)
497                  os=-nextstep3                  os=-nextstep3
498                  ;;                  ;;
499            hppaosf)
500                    basic_machine=hppa1.1-hp
501                    os=-osf
502                    ;;
503            hppro)
504                    basic_machine=hppa1.1-hp
505                    os=-proelf
506                    ;;
507          i370-ibm* | ibm*)          i370-ibm* | ibm*)
508                  basic_machine=i370-ibm                  basic_machine=i370-ibm
                 os=-mvs  
509                  ;;                  ;;
510  # I'm not sure what "Sysv32" means.  Should this be sysv3.2?  # I'm not sure what "Sysv32" means.  Should this be sysv3.2?
511          i[34567]86v32)          i*86v32)
512                  basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`                  basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
513                  os=-sysv32                  os=-sysv32
514                  ;;                  ;;
515          i[34567]86v4*)          i*86v4*)
516                  basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`                  basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
517                  os=-sysv4                  os=-sysv4
518                  ;;                  ;;
519          i[34567]86v)          i*86v)
520                  basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`                  basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
521                  os=-sysv                  os=-sysv
522                  ;;                  ;;
523          i[34567]86sol2)          i*86sol2)
524                  basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`                  basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
525                  os=-solaris2                  os=-solaris2
526                  ;;                  ;;
527            i386mach)
528                    basic_machine=i386-mach
529                    os=-mach
530                    ;;
531            i386-vsta | vsta)
532                    basic_machine=i386-unknown
533                    os=-vsta
534                    ;;
535          iris | iris4d)          iris | iris4d)
536                  basic_machine=mips-sgi                  basic_machine=mips-sgi
537                  case $os in                  case $os in
# Line 391  case $basic_machine in Line 557  case $basic_machine in
557                  basic_machine=ns32k-utek                  basic_machine=ns32k-utek
558                  os=-sysv                  os=-sysv
559                  ;;                  ;;
560            mingw32)
561                    basic_machine=i386-pc
562                    os=-mingw32
563                    ;;
564          miniframe)          miniframe)
565                  basic_machine=m68000-convergent                  basic_machine=m68000-convergent
566                  ;;                  ;;
567            *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
568                    basic_machine=m68k-atari
569                    os=-mint
570                    ;;
571          mipsel*-linux*)          mipsel*-linux*)
572                  basic_machine=mipsel-unknown                  basic_machine=mipsel-unknown
573                  os=-linux-gnu                  os=-linux-gnu
# Line 408  case $basic_machine in Line 582  case $basic_machine in
582          mips3*)          mips3*)
583                  basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown                  basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
584                  ;;                  ;;
585            mmix*)
586                    basic_machine=mmix-knuth
587                    os=-mmixware
588                    ;;
589            monitor)
590                    basic_machine=m68k-rom68k
591                    os=-coff
592                    ;;
593            msdos)
594                    basic_machine=i386-pc
595                    os=-msdos
596                    ;;
597            mvs)
598                    basic_machine=i370-ibm
599                    os=-mvs
600                    ;;
601          ncr3000)          ncr3000)
602                  basic_machine=i486-ncr                  basic_machine=i486-ncr
603                  os=-sysv4                  os=-sysv4
604                  ;;                  ;;
605            netbsd386)
606                    basic_machine=i386-unknown
607                    os=-netbsd
608                    ;;
609            netwinder)
610                    basic_machine=armv4l-rebel
611                    os=-linux
612                    ;;
613          news | news700 | news800 | news900)          news | news700 | news800 | news900)
614                  basic_machine=m68k-sony                  basic_machine=m68k-sony
615                  os=-newsos                  os=-newsos
# Line 424  case $basic_machine in Line 622  case $basic_machine in
622                  basic_machine=mips-sony                  basic_machine=mips-sony
623                  os=-newsos                  os=-newsos
624                  ;;                  ;;
625            necv70)
626                    basic_machine=v70-nec
627                    os=-sysv
628                    ;;
629          next | m*-next )          next | m*-next )
630                  basic_machine=m68k-next                  basic_machine=m68k-next
631                  case $os in                  case $os in
# Line 449  case $basic_machine in Line 651  case $basic_machine in
651                  basic_machine=i960-intel                  basic_machine=i960-intel
652                  os=-nindy                  os=-nindy
653                  ;;                  ;;
654            mon960)
655                    basic_machine=i960-intel
656                    os=-mon960
657                    ;;
658            nonstopux)
659                    basic_machine=mips-compaq
660                    os=-nonstopux
661                    ;;
662          np1)          np1)
663                  basic_machine=np1-gould                  basic_machine=np1-gould
664                  ;;                  ;;
665            nsr-tandem)
666                    basic_machine=nsr-tandem
667                    ;;
668            op50n-* | op60c-*)
669                    basic_machine=hppa1.1-oki
670                    os=-proelf
671                    ;;
672            OSE68000 | ose68000)
673                    basic_machine=m68000-ericsson
674                    os=-ose
675                    ;;
676            os68k)
677                    basic_machine=m68k-none
678                    os=-os68k
679                    ;;
680          pa-hitachi)          pa-hitachi)
681                  basic_machine=hppa1.1-hitachi                  basic_machine=hppa1.1-hitachi
682                  os=-hiuxwe2                  os=-hiuxwe2
# Line 469  case $basic_machine in Line 694  case $basic_machine in
694          pc532 | pc532-*)          pc532 | pc532-*)
695                  basic_machine=ns32k-pc532                  basic_machine=ns32k-pc532
696                  ;;                  ;;
697          pentium | p5 | k5 | nexen)          pentium | p5 | k5 | k6 | nexgen)
698                  basic_machine=i586-pc                  basic_machine=i586-pc
699                  ;;                  ;;
700          pentiumpro | p6 | k6 | 6x86)          pentiumpro | p6 | 6x86 | athlon)
701                  basic_machine=i686-pc                  basic_machine=i686-pc
702                  ;;                  ;;
703          pentiumii | pentium2)          pentiumii | pentium2)
704                  basic_machine=i786-pc                  basic_machine=i686-pc
705                  ;;                  ;;
706          pentium-* | p5-* | k5-* | nexen-*)          pentium-* | p5-* | k5-* | k6-* | nexgen-*)
707                  basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`                  basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
708                  ;;                  ;;
709          pentiumpro-* | p6-* | k6-* | 6x86-*)          pentiumpro-* | p6-* | 6x86-* | athlon-*)
710                  basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`                  basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
711                  ;;                  ;;
712          pentiumii-* | pentium2-*)          pentiumii-* | pentium2-*)
713                  basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`                  basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
714                  ;;                  ;;
715          pn)          pn)
716                  basic_machine=pn-gould                  basic_machine=pn-gould
717                  ;;                  ;;
718          power)  basic_machine=rs6000-ibm          power)  basic_machine=power-ibm
719                  ;;                  ;;
720          ppc)    basic_machine=powerpc-unknown          ppc)    basic_machine=powerpc-unknown
721                  ;;                  ;;
# Line 505  case $basic_machine in Line 730  case $basic_machine in
730          ps2)          ps2)
731                  basic_machine=i386-ibm                  basic_machine=i386-ibm
732                  ;;                  ;;
733            pw32)
734                    basic_machine=i586-unknown
735                    os=-pw32
736                    ;;
737            rom68k)
738                    basic_machine=m68k-rom68k
739                    os=-coff
740                    ;;
741          rm[46]00)          rm[46]00)
742                  basic_machine=mips-siemens                  basic_machine=mips-siemens
743                  ;;                  ;;
744          rtpc | rtpc-*)          rtpc | rtpc-*)
745                  basic_machine=romp-ibm                  basic_machine=romp-ibm
746                  ;;                  ;;
747            sa29200)
748                    basic_machine=a29k-amd
749                    os=-udi
750                    ;;
751          sequent)          sequent)
752                  basic_machine=i386-sequent                  basic_machine=i386-sequent
753                  ;;                  ;;
# Line 518  case $basic_machine in Line 755  case $basic_machine in
755                  basic_machine=sh-hitachi                  basic_machine=sh-hitachi
756                  os=-hms                  os=-hms
757                  ;;                  ;;
758            sparclite-wrs)
759                    basic_machine=sparclite-wrs
760                    os=-vxworks
761                    ;;
762          sps7)          sps7)
763                  basic_machine=m68k-bull                  basic_machine=m68k-bull
764                  os=-sysv2                  os=-sysv2
# Line 525  case $basic_machine in Line 766  case $basic_machine in
766          spur)          spur)
767                  basic_machine=spur-unknown                  basic_machine=spur-unknown
768                  ;;                  ;;
769            st2000)
770                    basic_machine=m68k-tandem
771                    ;;
772            stratus)
773                    basic_machine=i860-stratus
774                    os=-sysv4
775                    ;;
776          sun2)          sun2)
777                  basic_machine=m68000-sun                  basic_machine=m68000-sun
778                  ;;                  ;;
# Line 565  case $basic_machine in Line 813  case $basic_machine in
813          sun386 | sun386i | roadrunner)          sun386 | sun386i | roadrunner)
814                  basic_machine=i386-sun                  basic_machine=i386-sun
815                  ;;                  ;;
816            sv1)
817                    basic_machine=sv1-cray
818                    os=-unicos
819                    ;;
820          symmetry)          symmetry)
821                  basic_machine=i386-sequent                  basic_machine=i386-sequent
822                  os=-dynix                  os=-dynix
823                  ;;                  ;;
824            t3e)
825                    basic_machine=t3e-cray
826                    os=-unicos
827                    ;;
828            tic54x | c54x*)
829                    basic_machine=tic54x-unknown
830                    os=-coff
831                    ;;
832          tx39)          tx39)
833                  basic_machine=mipstx39-unknown                  basic_machine=mipstx39-unknown
834                  ;;                  ;;
# Line 586  case $basic_machine in Line 846  case $basic_machine in
846                  basic_machine=a29k-nyu                  basic_machine=a29k-nyu
847                  os=-sym1                  os=-sym1
848                  ;;                  ;;
849            v810 | necv810)
850                    basic_machine=v810-nec
851                    os=-none
852                    ;;
853          vaxv)          vaxv)
854                  basic_machine=vax-dec                  basic_machine=vax-dec
855                  os=-sysv                  os=-sysv
# Line 609  case $basic_machine in Line 873  case $basic_machine in
873                  basic_machine=a29k-wrs                  basic_machine=a29k-wrs
874                  os=-vxworks                  os=-vxworks
875                  ;;                  ;;
876            w65*)
877                    basic_machine=w65-wdc
878                    os=-none
879                    ;;
880            w89k-*)
881                    basic_machine=hppa1.1-winbond
882                    os=-proelf
883                    ;;
884          xmp)          xmp)
885                  basic_machine=xmp-cray                  basic_machine=xmp-cray
886                  os=-unicos                  os=-unicos
# Line 616  case $basic_machine in Line 888  case $basic_machine in
888          xps | xps100)          xps | xps100)
889                  basic_machine=xps100-honeywell                  basic_machine=xps100-honeywell
890                  ;;                  ;;
891            z8k-*-coff)
892                    basic_machine=z8k-unknown
893                    os=-sim
894                    ;;
895          none)          none)
896                  basic_machine=none-none                  basic_machine=none-none
897                  os=-none                  os=-none
# Line 623  case $basic_machine in Line 899  case $basic_machine in
899    
900  # Here we handle the default manufacturer of certain CPU types.  It is in  # Here we handle the default manufacturer of certain CPU types.  It is in
901  # some cases the only manufacturer, in others, it is the most popular.  # some cases the only manufacturer, in others, it is the most popular.
902            w89k)
903                    basic_machine=hppa1.1-winbond
904                    ;;
905            op50n)
906                    basic_machine=hppa1.1-oki
907                    ;;
908            op60c)
909                    basic_machine=hppa1.1-oki
910                    ;;
911          mips)          mips)
912                  if [ x$os = x-linux-gnu ]; then                  if [ x$os = x-linux-gnu ]; then
913                          basic_machine=mips-unknown                          basic_machine=mips-unknown
# Line 639  case $basic_machine in Line 924  case $basic_machine in
924          vax)          vax)
925                  basic_machine=vax-dec                  basic_machine=vax-dec
926                  ;;                  ;;
927            pdp10)
928                    # there are many clones, so DEC is not a safe bet
929                    basic_machine=pdp10-unknown
930                    ;;
931          pdp11)          pdp11)
932                  basic_machine=pdp11-dec                  basic_machine=pdp11-dec
933                  ;;                  ;;
934          we32k)          we32k)
935                  basic_machine=we32k-att                  basic_machine=we32k-att
936                  ;;                  ;;
937          sparc)          sh3 | sh4)
938                    basic_machine=sh-unknown
939                    ;;
940            sparc | sparcv9 | sparcv9b)
941                  basic_machine=sparc-sun                  basic_machine=sparc-sun
942                  ;;                  ;;
943          cydra)          cydra)
# Line 657  case $basic_machine in Line 949  case $basic_machine in
949          orion105)          orion105)
950                  basic_machine=clipper-highlevel                  basic_machine=clipper-highlevel
951                  ;;                  ;;
952            mac | mpw | mac-mpw)
953                    basic_machine=m68k-apple
954                    ;;
955            pmac | pmac-mpw)
956                    basic_machine=powerpc-apple
957                    ;;
958            c4x*)
959                    basic_machine=c4x-none
960                    os=-coff
961                    ;;
962            *-unknown)
963                    # Make sure to match an already-canonicalized machine name.
964                    ;;
965          *)          *)
966                  echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2                  echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
967                  exit 1                  exit 1
# Line 710  case $os in Line 1015  case $os in
1015                | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \                | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1016                | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \                | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1017                | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \                | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1018                | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \                | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1019                | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \                | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1020                | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \                | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1021                | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \                | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1022                | -mingw32* | -linux-gnu* | -uxpv* | -beos*)                | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1023                  | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
1024                  | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1025                  | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
1026          # Remember, each alternative MUST END IN *, to match a version number.          # Remember, each alternative MUST END IN *, to match a version number.
1027                  ;;                  ;;
1028            -qnx*)
1029                    case $basic_machine in
1030                        x86-* | i*86-*)
1031                            ;;
1032                        *)
1033                            os=-nto$os
1034                            ;;
1035                    esac
1036                    ;;
1037            -nto*)
1038                    os=-nto-qnx
1039                    ;;
1040            -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1041                  | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1042                  | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1043                    ;;
1044            -mac*)
1045                    os=`echo $os | sed -e 's|mac|macos|'`
1046                    ;;
1047          -linux*)          -linux*)
1048                  os=`echo $os | sed -e 's|linux|linux-gnu|'`                  os=`echo $os | sed -e 's|linux|linux-gnu|'`
1049                  ;;                  ;;
# Line 726  case $os in Line 1053  case $os in
1053          -sunos6*)          -sunos6*)
1054                  os=`echo $os | sed -e 's|sunos6|solaris3|'`                  os=`echo $os | sed -e 's|sunos6|solaris3|'`
1055                  ;;                  ;;
1056            -opened*)
1057                    os=-openedition
1058                    ;;
1059            -wince*)
1060                    os=-wince
1061                    ;;
1062          -osfrose*)          -osfrose*)
1063                  os=-osfrose                  os=-osfrose
1064                  ;;                  ;;
# Line 741  case $os in Line 1074  case $os in
1074          -acis*)          -acis*)
1075                  os=-aos                  os=-aos
1076                  ;;                  ;;
1077            -386bsd)
1078                    os=-bsd
1079                    ;;
1080          -ctix* | -uts*)          -ctix* | -uts*)
1081                  os=-sysv                  os=-sysv
1082                  ;;                  ;;
1083          -ns2 )          -ns2 )
1084                  os=-nextstep2                  os=-nextstep2
1085                  ;;                  ;;
1086            -nsk*)
1087                    os=-nsk
1088                    ;;
1089          # Preserve the version number of sinix5.          # Preserve the version number of sinix5.
1090          -sinix5.*)          -sinix5.*)
1091                  os=`echo $os | sed -e 's|sinix|sysv|'`                  os=`echo $os | sed -e 's|sinix|sysv|'`
# Line 772  case $os in Line 1111  case $os in
1111          # This must come after -sysvr4.          # This must come after -sysvr4.
1112          -sysv*)          -sysv*)
1113                  ;;                  ;;
1114            -ose*)
1115                    os=-ose
1116                    ;;
1117            -es1800*)
1118                    os=-ose
1119                    ;;
1120          -xenix)          -xenix)
1121                  os=-xenix                  os=-xenix
1122                  ;;                  ;;
1123            -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1124                    os=-mint
1125                    ;;
1126          -none)          -none)
1127                  ;;                  ;;
1128          *)          *)
# Line 800  case $basic_machine in Line 1148  case $basic_machine in
1148          *-acorn)          *-acorn)
1149                  os=-riscix1.2                  os=-riscix1.2
1150                  ;;                  ;;
1151            arm*-rebel)
1152                    os=-linux
1153                    ;;
1154          arm*-semi)          arm*-semi)
1155                  os=-aout                  os=-aout
1156                  ;;                  ;;
1157            pdp10-*)
1158                    os=-tops20
1159                    ;;
1160          pdp11-*)          pdp11-*)
1161                  os=-none                  os=-none
1162                  ;;                  ;;
# Line 821  case $basic_machine in Line 1175  case $basic_machine in
1175                  # default.                  # default.
1176                  # os=-sunos4                  # os=-sunos4
1177                  ;;                  ;;
1178            m68*-cisco)
1179                    os=-aout
1180                    ;;
1181            mips*-cisco)
1182                    os=-elf
1183                    ;;
1184            mips*-*)
1185                    os=-elf
1186                    ;;
1187          *-tti)  # must be before sparc entry or we get the wrong os.          *-tti)  # must be before sparc entry or we get the wrong os.
1188                  os=-sysv3                  os=-sysv3
1189                  ;;                  ;;
# Line 833  case $basic_machine in Line 1196  case $basic_machine in
1196          *-ibm)          *-ibm)
1197                  os=-aix                  os=-aix
1198                  ;;                  ;;
1199            *-wec)
1200                    os=-proelf
1201                    ;;
1202            *-winbond)
1203                    os=-proelf
1204                    ;;
1205            *-oki)
1206                    os=-proelf
1207                    ;;
1208          *-hp)          *-hp)
1209                  os=-hpux                  os=-hpux
1210                  ;;                  ;;
# Line 893  case $basic_machine in Line 1265  case $basic_machine in
1265          *-masscomp)          *-masscomp)
1266                  os=-rtu                  os=-rtu
1267                  ;;                  ;;
1268          f301-fujitsu)          f30[01]-fujitsu | f700-fujitsu)
1269                  os=-uxpv                  os=-uxpv
1270                  ;;                  ;;
1271            *-rom68k)
1272                    os=-coff
1273                    ;;
1274            *-*bug)
1275                    os=-coff
1276                    ;;
1277            *-apple)
1278                    os=-macos
1279                    ;;
1280            *-atari*)
1281                    os=-mint
1282                    ;;
1283          *)          *)
1284                  os=-none                  os=-none
1285                  ;;                  ;;
# Line 917  case $basic_machine in Line 1301  case $basic_machine in
1301                          -aix*)                          -aix*)
1302                                  vendor=ibm                                  vendor=ibm
1303                                  ;;                                  ;;
1304                            -beos*)
1305                                    vendor=be
1306                                    ;;
1307                          -hpux*)                          -hpux*)
1308                                  vendor=hp                                  vendor=hp
1309                                  ;;                                  ;;
1310                            -mpeix*)
1311                                    vendor=hp
1312                                    ;;
1313                          -hiux*)                          -hiux*)
1314                                  vendor=hitachi                                  vendor=hitachi
1315                                  ;;                                  ;;
# Line 935  case $basic_machine in Line 1325  case $basic_machine in
1325                          -genix*)                          -genix*)
1326                                  vendor=ns                                  vendor=ns
1327                                  ;;                                  ;;
1328                          -mvs*)                          -mvs* | -opened*)
1329                                  vendor=ibm                                  vendor=ibm
1330                                  ;;                                  ;;
1331                          -ptx*)                          -ptx*)
# Line 947  case $basic_machine in Line 1337  case $basic_machine in
1337                          -aux*)                          -aux*)
1338                                  vendor=apple                                  vendor=apple
1339                                  ;;                                  ;;
1340                            -hms*)
1341                                    vendor=hitachi
1342                                    ;;
1343                            -mpw* | -macos*)
1344                                    vendor=apple
1345                                    ;;
1346                            -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1347                                    vendor=atari
1348                                    ;;
1349                  esac                  esac
1350                  basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`                  basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1351                  ;;                  ;;
1352  esac  esac
1353    
1354  echo $basic_machine$os  echo $basic_machine$os
1355    exit 0
1356    
1357    # Local variables:
1358    # eval: (add-hook 'write-file-hooks 'time-stamp)
1359    # time-stamp-start: "timestamp='"
1360    # time-stamp-format: "%:y-%02m-%02d"
1361    # time-stamp-end: "'"
1362    # End:

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26