Mercurial > emacs
comparison config.sub @ 16189:b41f7cd8f5b3 libc-960918 libc-960919 libc-960920 libc-960921 libc-960922 libc-960923
RMS:
Use pc instead of unknown, for pc clones.
Use -linux-gnu for Linux-based GNU systems.
author | Richard Kenner <kenner@gnu.org> |
---|---|
date | Sun, 15 Sep 1996 00:49:22 +0000 |
parents | f698fc246195 |
children | 450f26426101 |
comparison
equal
deleted
inserted
replaced
16188:5bc27ae3cd14 | 16189:b41f7cd8f5b3 |
---|---|
39 # configuration. | 39 # configuration. |
40 | 40 |
41 # The goal of this file is to map all the various variations of a given | 41 # The goal of this file is to map all the various variations of a given |
42 # machine specification into a single specification in the form: | 42 # machine specification into a single specification in the form: |
43 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM | 43 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM |
44 # or in some cases, the newer four-part form: | |
45 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM | |
44 # It is wrong to echo any other type of specification. | 46 # It is wrong to echo any other type of specification. |
45 | 47 |
46 if [ x$1 = x ] | 48 if [ x$1 = x ] |
47 then | 49 then |
48 echo Configuration name missing. 1>&2 | 50 echo Configuration name missing. 1>&2 |
60 ;; | 62 ;; |
61 *) | 63 *) |
62 ;; | 64 ;; |
63 esac | 65 esac |
64 | 66 |
65 # Separate what the user gave into CPU-COMPANY and OS (if any). | 67 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
66 basic_machine=`echo $1 | sed 's/-[^-]*$//'` | 68 # Here we must recognize all the valid KERNEL-OS combinations. |
67 if [ $basic_machine != $1 ] | 69 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
68 then os=`echo $1 | sed 's/.*-/-/'` | 70 case $maybe_os in |
69 else os=; fi | 71 linux-gnu*) |
72 os=-$maybe_os | |
73 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | |
74 ;; | |
75 *) | |
76 basic_machine=`echo $1 | sed 's/-[^-]*$//'` | |
77 if [ $basic_machine != $1 ] | |
78 then os=`echo $1 | sed 's/.*-/-/'` | |
79 else os=; fi | |
80 ;; | |
81 esac | |
70 | 82 |
71 ### Let's recognize common machines as not being operating systems so | 83 ### Let's recognize common machines as not being operating systems so |
72 ### that things like config.sub decstation-3100 work. We also | 84 ### that things like config.sub decstation-3100 work. We also |
73 ### recognize some manufacturers as not being operating systems, so we | 85 ### recognize some manufacturers as not being operating systems, so we |
74 ### can provide default operating systems below. | 86 ### can provide default operating systems below. |
89 -hiux*) | 101 -hiux*) |
90 os=-hiuxwe2 | 102 os=-hiuxwe2 |
91 ;; | 103 ;; |
92 -sco5) | 104 -sco5) |
93 os=sco3.2v5 | 105 os=sco3.2v5 |
94 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` | 106 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
95 ;; | 107 ;; |
96 -sco4) | 108 -sco4) |
97 os=-sco3.2v4 | 109 os=-sco3.2v4 |
98 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` | 110 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
99 ;; | 111 ;; |
100 -sco3.2.[4-9]*) | 112 -sco3.2.[4-9]*) |
101 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` | 113 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` |
102 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` | 114 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
103 ;; | 115 ;; |
104 -sco3.2v[4-9]*) | 116 -sco3.2v[4-9]*) |
105 # Don't forget version if it is 3.2v4 or newer. | 117 # Don't forget version if it is 3.2v4 or newer. |
106 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` | 118 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
107 ;; | 119 ;; |
108 -sco*) | 120 -sco*) |
109 os=-sco3.2v2 | 121 os=-sco3.2v2 |
110 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` | 122 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
111 ;; | 123 ;; |
112 -isc) | 124 -isc) |
113 os=-isc2.2 | 125 os=-isc2.2 |
114 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` | 126 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
115 ;; | 127 ;; |
116 -clix*) | 128 -clix*) |
117 basic_machine=clipper-intergraph | 129 basic_machine=clipper-intergraph |
118 ;; | 130 ;; |
119 -isc*) | 131 -isc*) |
120 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` | 132 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
121 ;; | 133 ;; |
122 -lynx*) | 134 -lynx*) |
123 os=-lynxos | 135 os=-lynxos |
124 ;; | 136 ;; |
125 -ptx*) | 137 -ptx*) |
135 | 147 |
136 # Decode aliases for certain CPU-COMPANY combinations. | 148 # Decode aliases for certain CPU-COMPANY combinations. |
137 case $basic_machine in | 149 case $basic_machine in |
138 # Recognize the basic CPU types without company name. | 150 # Recognize the basic CPU types without company name. |
139 # Some are omitted here because they have special meanings below. | 151 # Some are omitted here because they have special meanings below. |
140 tahoe | i[3456]86 | i860 | m68k | m68000 | m88k | ns32k | arm \ | 152 tahoe | i860 | m68k | m68000 | m88k | ns32k | arm \ |
141 | arme[lb] | pyramid \ | 153 | arme[lb] | pyramid \ |
142 | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 \ | 154 | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 \ |
143 | alpha | we32k | ns16k | clipper | i370 | sh \ | 155 | alpha | we32k | ns16k | clipper | i370 | sh \ |
144 | powerpc | powerpcle | 1750a | dsp16xx | mips64 | mipsel \ | 156 | powerpc | powerpcle | 1750a | dsp16xx | mips64 | mipsel \ |
145 | pdp11 | mips64el | mips64orion | mips64orionel \ | 157 | pdp11 | mips64el | mips64orion | mips64orionel \ |
146 | sparc | sparclet | sparclite | sparc64) | 158 | sparc | sparclet | sparclite | sparc64) |
147 basic_machine=$basic_machine-unknown | 159 basic_machine=$basic_machine-unknown |
148 ;; | 160 ;; |
161 # We use `pc' rather than `unknown' | |
162 # because (1) that's what they normally are, and | |
163 # (2) the word "unknown" tends to confuse beginning users. | |
164 i[3456]86) | |
165 basic_machine=$basic_machine-pc | |
166 ;; | |
149 # Object if more than one company name word. | 167 # Object if more than one company name word. |
150 *-*-*) | 168 *-*-*) |
151 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | 169 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
152 exit 1 | 170 exit 1 |
153 ;; | 171 ;; |
323 basic_machine=i370-ibm | 341 basic_machine=i370-ibm |
324 os=-mvs | 342 os=-mvs |
325 ;; | 343 ;; |
326 # I'm not sure what "Sysv32" means. Should this be sysv3.2? | 344 # I'm not sure what "Sysv32" means. Should this be sysv3.2? |
327 i[3456]86v32) | 345 i[3456]86v32) |
328 basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` | 346 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
329 os=-sysv32 | 347 os=-sysv32 |
330 ;; | 348 ;; |
331 i[3456]86v4*) | 349 i[3456]86v4*) |
332 basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` | 350 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
333 os=-sysv4 | 351 os=-sysv4 |
334 ;; | 352 ;; |
335 i[3456]86v) | 353 i[3456]86v) |
336 basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` | 354 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
337 os=-sysv | 355 os=-sysv |
338 ;; | 356 ;; |
339 i[3456]86sol2) | 357 i[3456]86sol2) |
340 basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` | 358 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
341 os=-solaris2 | 359 os=-solaris2 |
342 ;; | 360 ;; |
343 iris | iris4d) | 361 iris | iris4d) |
344 basic_machine=mips-sgi | 362 basic_machine=mips-sgi |
345 case $os in | 363 case $os in |
633 # Decode manufacturer-specific aliases for certain operating systems. | 651 # Decode manufacturer-specific aliases for certain operating systems. |
634 | 652 |
635 if [ x"$os" != x"" ] | 653 if [ x"$os" != x"" ] |
636 then | 654 then |
637 case $os in | 655 case $os in |
656 # First match some system type aliases | |
657 # that might get confused with valid system types. | |
638 # -solaris* is a basic system type, with this one exception. | 658 # -solaris* is a basic system type, with this one exception. |
639 -solaris1 | -solaris1.*) | 659 -solaris1 | -solaris1.*) |
640 os=`echo $os | sed -e 's|solaris1|sunos4|'` | 660 os=`echo $os | sed -e 's|solaris1|sunos4|'` |
641 ;; | 661 ;; |
642 -solaris) | 662 -solaris) |
644 ;; | 664 ;; |
645 -unixware* | svr4*) | 665 -unixware* | svr4*) |
646 os=-sysv4 | 666 os=-sysv4 |
647 ;; | 667 ;; |
648 -gnu/linux*) | 668 -gnu/linux*) |
649 os=`echo $os | sed -e 's|gnu/linux|linux|'` | 669 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` |
650 ;; | 670 ;; |
651 # First accept the basic system types. | 671 # First accept the basic system types. |
652 # The portable systems comes first. | 672 # The portable systems comes first. |
653 # Each alternative MUST END IN A *, to match a version number. | 673 # Each alternative MUST END IN A *, to match a version number. |
654 # -sysv* is not here because it comes later, after sysvr4. | 674 # -sysv* is not here because it comes later, after sysvr4. |
655 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | 675 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
656 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | 676 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ |
657 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | 677 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
658 | -amigados* | -msdos* | -newsos* | -unicos* | -aof* | -aos* \ | 678 | -amigados* | -msdos* | -newsos* | -unicos* | -aof* | -aos* \ |
659 | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \ | 679 | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \ |
660 | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \ | 680 | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
661 | -hiux* | -386bsd* | -netbsd* | -freebsd* | -riscix* \ | 681 | -hiux* | -386bsd* | -netbsd* | -freebsd* | -riscix* \ |
662 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ | 682 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ |
663 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | 683 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
664 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | 684 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
665 | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems*) | 685 | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
686 | -linux-gnu*) | |
666 # Remember, each alternative MUST END IN *, to match a version number. | 687 # Remember, each alternative MUST END IN *, to match a version number. |
688 ;; | |
689 -linux*) | |
690 os=`echo $os | sed -e 's|linux|linux-gnu|'` | |
667 ;; | 691 ;; |
668 -sunos5*) | 692 -sunos5*) |
669 os=`echo $os | sed -e 's|sunos5|solaris2|'` | 693 os=`echo $os | sed -e 's|sunos5|solaris2|'` |
670 ;; | 694 ;; |
671 -sunos6*) | 695 -sunos6*) |