[254b4450] | 1 | #! /bin/sh |
---|
| 2 | # Configuration validation subroutine script, version 1.1. |
---|
[7a524954] | 3 | # Copyright (C) 1991, 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc. |
---|
[254b4450] | 4 | # This file is (in principle) common to ALL GNU software. |
---|
| 5 | # The presence of a machine in this file suggests that SOME GNU software |
---|
| 6 | # can handle that machine. It does not imply ALL GNU software can. |
---|
| 7 | # |
---|
| 8 | # This file is free software; you can redistribute it and/or modify |
---|
| 9 | # it under the terms of the GNU General Public License as published by |
---|
| 10 | # the Free Software Foundation; either version 2 of the License, or |
---|
| 11 | # (at your option) any later version. |
---|
| 12 | # |
---|
| 13 | # This program is distributed in the hope that it will be useful, |
---|
| 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 16 | # GNU General Public License for more details. |
---|
| 17 | # |
---|
| 18 | # You should have received a copy of the GNU General Public License |
---|
| 19 | # along with this program; if not, write to the Free Software |
---|
| 20 | # Foundation, Inc., 59 Temple Place - Suite 330, |
---|
| 21 | # Boston, MA 02111-1307, USA. |
---|
| 22 | |
---|
| 23 | # As a special exception to the GNU General Public License, if you |
---|
| 24 | # distribute this file as part of a program that contains a |
---|
| 25 | # configuration script generated by Autoconf, you may include it under |
---|
| 26 | # the same distribution terms that you use for the rest of that program. |
---|
| 27 | |
---|
| 28 | # Configuration subroutine to validate and canonicalize a configuration type. |
---|
| 29 | # Supply the specified configuration type as an argument. |
---|
| 30 | # If it is invalid, we print an error message on stderr and exit with code 1. |
---|
| 31 | # Otherwise, we print the canonical config type on stdout and succeed. |
---|
| 32 | |
---|
| 33 | # This file is supposed to be the same for all GNU packages |
---|
| 34 | # and recognize all the CPU types, system types and aliases |
---|
| 35 | # that are meaningful with *any* GNU software. |
---|
| 36 | # Each package is responsible for reporting which valid configurations |
---|
| 37 | # it does not support. The user should be able to distinguish |
---|
| 38 | # a failure to support a valid configuration from a meaningless |
---|
| 39 | # configuration. |
---|
| 40 | |
---|
| 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: |
---|
| 43 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM |
---|
| 44 | # or in some cases, the newer four-part form: |
---|
| 45 | # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM |
---|
| 46 | # It is wrong to echo any other type of specification. |
---|
| 47 | |
---|
| 48 | if [ x$1 = x ] |
---|
| 49 | then |
---|
| 50 | echo Configuration name missing. 1>&2 |
---|
| 51 | echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 |
---|
| 52 | echo "or $0 ALIAS" 1>&2 |
---|
| 53 | echo where ALIAS is a recognized configuration type. 1>&2 |
---|
| 54 | exit 1 |
---|
| 55 | fi |
---|
| 56 | |
---|
| 57 | # First pass through any local machine types. |
---|
| 58 | case $1 in |
---|
| 59 | *local*) |
---|
| 60 | echo $1 |
---|
| 61 | exit 0 |
---|
| 62 | ;; |
---|
| 63 | *) |
---|
| 64 | ;; |
---|
| 65 | esac |
---|
| 66 | |
---|
| 67 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
---|
| 68 | # Here we must recognize all the valid KERNEL-OS combinations. |
---|
| 69 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
---|
| 70 | case $maybe_os in |
---|
| 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 |
---|
| 82 | |
---|
| 83 | ### Let's recognize common machines as not being operating systems so |
---|
| 84 | ### that things like config.sub decstation-3100 work. We also |
---|
| 85 | ### recognize some manufacturers as not being operating systems, so we |
---|
| 86 | ### can provide default operating systems below. |
---|
| 87 | case $os in |
---|
| 88 | -sun*os*) |
---|
| 89 | # Prevent following clause from handling this invalid input. |
---|
| 90 | ;; |
---|
| 91 | -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ |
---|
| 92 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ |
---|
| 93 | -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
---|
| 94 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
---|
| 95 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
---|
| 96 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
---|
| 97 | -apple) |
---|
| 98 | os= |
---|
| 99 | basic_machine=$1 |
---|
| 100 | ;; |
---|
[7a524954] | 101 | -sim | -cisco | -oki | -wec | -winbond ) # CYGNUS LOCAL |
---|
| 102 | os= |
---|
| 103 | basic_machine=$1 |
---|
| 104 | ;; |
---|
| 105 | -scout) # CYGNUS LOCAL |
---|
| 106 | ;; |
---|
| 107 | -wrs) # CYGNUS LOCAL |
---|
| 108 | os=vxworks |
---|
| 109 | basic_machine=$1 |
---|
| 110 | ;; |
---|
[254b4450] | 111 | -hiux*) |
---|
| 112 | os=-hiuxwe2 |
---|
| 113 | ;; |
---|
| 114 | -sco5) |
---|
| 115 | os=sco3.2v5 |
---|
| 116 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
---|
| 117 | ;; |
---|
| 118 | -sco4) |
---|
| 119 | os=-sco3.2v4 |
---|
| 120 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
---|
| 121 | ;; |
---|
| 122 | -sco3.2.[4-9]*) |
---|
| 123 | os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` |
---|
| 124 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
---|
| 125 | ;; |
---|
| 126 | -sco3.2v[4-9]*) |
---|
| 127 | # Don't forget version if it is 3.2v4 or newer. |
---|
| 128 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
---|
| 129 | ;; |
---|
| 130 | -sco*) |
---|
| 131 | os=-sco3.2v2 |
---|
| 132 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
---|
| 133 | ;; |
---|
| 134 | -isc) |
---|
| 135 | os=-isc2.2 |
---|
| 136 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
---|
| 137 | ;; |
---|
| 138 | -clix*) |
---|
| 139 | basic_machine=clipper-intergraph |
---|
| 140 | ;; |
---|
| 141 | -isc*) |
---|
| 142 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
---|
| 143 | ;; |
---|
| 144 | -lynx*) |
---|
| 145 | os=-lynxos |
---|
| 146 | ;; |
---|
| 147 | -ptx*) |
---|
| 148 | basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` |
---|
| 149 | ;; |
---|
| 150 | -windowsnt*) |
---|
| 151 | os=`echo $os | sed -e 's/windowsnt/winnt/'` |
---|
| 152 | ;; |
---|
| 153 | -psos*) |
---|
| 154 | os=-psos |
---|
| 155 | ;; |
---|
| 156 | esac |
---|
| 157 | |
---|
| 158 | # Decode aliases for certain CPU-COMPANY combinations. |
---|
| 159 | case $basic_machine in |
---|
| 160 | # Recognize the basic CPU types without company name. |
---|
| 161 | # Some are omitted here because they have special meanings below. |
---|
[7a524954] | 162 | tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ |
---|
| 163 | | arme[lb] | pyramid | mn10200 | mn10300 \ |
---|
[254b4450] | 164 | | tron | a29k | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 \ |
---|
[7a524954] | 165 | | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \ |
---|
| 166 | | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \ |
---|
| 167 | | mips64 | mipsel | mips64el | mips64orion | mips64orionel \ |
---|
| 168 | | mipstx39 | mipstx39el \ |
---|
[a806d8b] | 169 | | sparc | sparclet | sparclite | sparc64 | v850 | c4x \ |
---|
| 170 | | or16 | or32) |
---|
[7a524954] | 171 | basic_machine=$basic_machine-unknown |
---|
| 172 | ;; |
---|
| 173 | m88110 | m680[01234]0 | m683?2 | m68360 | z8k | v70 | h8500 | w65) # CYGNUS LOCAL |
---|
| 174 | basic_machine=$basic_machine-unknown |
---|
| 175 | ;; |
---|
| 176 | mips64vr4300 | mips64vr4300el) # CYGNUS LOCAL jsmith/vr4300 |
---|
| 177 | basic_machine=$basic_machine-unknown |
---|
| 178 | ;; |
---|
| 179 | mips64vr4100 | mips64vr4100el) # CYGNUS LOCAL jsmith/vr4100 |
---|
| 180 | basic_machine=$basic_machine-unknown |
---|
| 181 | ;; |
---|
| 182 | mips64vr5000 | mips64vr5000el) # CYGNUS LOCAL ian/vr5000 |
---|
| 183 | basic_machine=$basic_machine-unknown |
---|
| 184 | ;; |
---|
| 185 | mips16) # CYGNUS LOCAL krk/mips16 |
---|
| 186 | basic_machine=$basic_machine-unknown |
---|
| 187 | ;; |
---|
| 188 | d10v) # CYGNUS LOCAL meissner/d10v |
---|
| 189 | basic_machine=$basic_machine-unknown |
---|
[254b4450] | 190 | ;; |
---|
| 191 | # We use `pc' rather than `unknown' |
---|
| 192 | # because (1) that's what they normally are, and |
---|
| 193 | # (2) the word "unknown" tends to confuse beginning users. |
---|
| 194 | i[3456]86) |
---|
[7a524954] | 195 | basic_machine=$basic_machine-pc |
---|
| 196 | ;; |
---|
[254b4450] | 197 | # Object if more than one company name word. |
---|
| 198 | *-*-*) |
---|
| 199 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
---|
| 200 | exit 1 |
---|
| 201 | ;; |
---|
| 202 | # Recognize the basic CPU types with company name. |
---|
[7a524954] | 203 | vax-* | tahoe-* | i[3456]86-* | i860-* | m32r-* | m68k-* | m68000-* \ |
---|
| 204 | | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ |
---|
| 205 | | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ |
---|
| 206 | | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \ |
---|
| 207 | | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* \ |
---|
| 208 | | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \ |
---|
| 209 | | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \ |
---|
| 210 | | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ |
---|
| 211 | | sparc64-* | mips64-* | mipsel-* \ |
---|
| 212 | | mips64el-* | mips64orion-* | mips64orionel-* \ |
---|
| 213 | | mipstx39-* | mipstx39el-* \ |
---|
| 214 | | f301-*) |
---|
| 215 | ;; |
---|
| 216 | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | h8500-* | d10v-*) # CYGNUS LOCAL |
---|
| 217 | ;; |
---|
| 218 | mips64vr4300-* | mips64vr4300el-*) # CYGNUS LOCAL jsmith/vr4300 |
---|
| 219 | ;; |
---|
| 220 | mips64vr4100-* | mips64vr4100el-*) # CYGNUS LOCAL jsmith/vr4100 |
---|
| 221 | ;; |
---|
| 222 | mips16-*) # CYGNUS LOCAL krk/mips16 |
---|
[254b4450] | 223 | ;; |
---|
| 224 | # Recognize the various machine names and aliases which stand |
---|
| 225 | # for a CPU type and a company and sometimes even an OS. |
---|
[7a524954] | 226 | 386bsd) # CYGNUS LOCAL |
---|
| 227 | basic_machine=i386-unknown |
---|
| 228 | os=-bsd |
---|
| 229 | ;; |
---|
[254b4450] | 230 | 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) |
---|
| 231 | basic_machine=m68000-att |
---|
| 232 | ;; |
---|
| 233 | 3b*) |
---|
| 234 | basic_machine=we32k-att |
---|
| 235 | ;; |
---|
[7a524954] | 236 | a29khif) # CYGNUS LOCAL |
---|
| 237 | basic_machine=a29k-amd |
---|
| 238 | os=-udi |
---|
| 239 | ;; |
---|
| 240 | adobe68k) # CYGNUS LOCAL |
---|
| 241 | basic_machine=m68010-adobe |
---|
| 242 | os=-scout |
---|
| 243 | ;; |
---|
[254b4450] | 244 | alliant | fx80) |
---|
| 245 | basic_machine=fx80-alliant |
---|
| 246 | ;; |
---|
| 247 | altos | altos3068) |
---|
| 248 | basic_machine=m68k-altos |
---|
| 249 | ;; |
---|
| 250 | am29k) |
---|
| 251 | basic_machine=a29k-none |
---|
| 252 | os=-bsd |
---|
| 253 | ;; |
---|
| 254 | amdahl) |
---|
| 255 | basic_machine=580-amdahl |
---|
| 256 | os=-sysv |
---|
| 257 | ;; |
---|
| 258 | amiga | amiga-*) |
---|
| 259 | basic_machine=m68k-cbm |
---|
| 260 | ;; |
---|
[7a524954] | 261 | amigaos | amigados) |
---|
[254b4450] | 262 | basic_machine=m68k-cbm |
---|
[7a524954] | 263 | os=-amigaos |
---|
[254b4450] | 264 | ;; |
---|
| 265 | amigaunix | amix) |
---|
| 266 | basic_machine=m68k-cbm |
---|
| 267 | os=-sysv4 |
---|
| 268 | ;; |
---|
| 269 | apollo68) |
---|
| 270 | basic_machine=m68k-apollo |
---|
| 271 | os=-sysv |
---|
| 272 | ;; |
---|
[7a524954] | 273 | apollo68bsd) # CYGNUS LOCAL |
---|
| 274 | basic_machine=m68k-apollo |
---|
| 275 | os=-bsd |
---|
| 276 | ;; |
---|
[254b4450] | 277 | aux) |
---|
| 278 | basic_machine=m68k-apple |
---|
| 279 | os=-aux |
---|
| 280 | ;; |
---|
| 281 | balance) |
---|
| 282 | basic_machine=ns32k-sequent |
---|
| 283 | os=-dynix |
---|
| 284 | ;; |
---|
| 285 | convex-c1) |
---|
| 286 | basic_machine=c1-convex |
---|
| 287 | os=-bsd |
---|
| 288 | ;; |
---|
| 289 | convex-c2) |
---|
| 290 | basic_machine=c2-convex |
---|
| 291 | os=-bsd |
---|
| 292 | ;; |
---|
| 293 | convex-c32) |
---|
| 294 | basic_machine=c32-convex |
---|
| 295 | os=-bsd |
---|
| 296 | ;; |
---|
| 297 | convex-c34) |
---|
| 298 | basic_machine=c34-convex |
---|
| 299 | os=-bsd |
---|
| 300 | ;; |
---|
| 301 | convex-c38) |
---|
| 302 | basic_machine=c38-convex |
---|
| 303 | os=-bsd |
---|
| 304 | ;; |
---|
| 305 | cray | ymp) |
---|
| 306 | basic_machine=ymp-cray |
---|
| 307 | os=-unicos |
---|
| 308 | ;; |
---|
| 309 | cray2) |
---|
| 310 | basic_machine=cray2-cray |
---|
| 311 | os=-unicos |
---|
| 312 | ;; |
---|
| 313 | [ctj]90-cray) |
---|
| 314 | basic_machine=c90-cray |
---|
| 315 | os=-unicos |
---|
| 316 | ;; |
---|
| 317 | crds | unos) |
---|
| 318 | basic_machine=m68k-crds |
---|
| 319 | ;; |
---|
| 320 | da30 | da30-*) |
---|
| 321 | basic_machine=m68k-da30 |
---|
| 322 | ;; |
---|
| 323 | decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) |
---|
| 324 | basic_machine=mips-dec |
---|
| 325 | ;; |
---|
| 326 | delta | 3300 | motorola-3300 | motorola-delta \ |
---|
| 327 | | 3300-motorola | delta-motorola) |
---|
| 328 | basic_machine=m68k-motorola |
---|
| 329 | ;; |
---|
| 330 | delta88) |
---|
| 331 | basic_machine=m88k-motorola |
---|
| 332 | os=-sysv3 |
---|
| 333 | ;; |
---|
| 334 | dpx20 | dpx20-*) |
---|
| 335 | basic_machine=rs6000-bull |
---|
| 336 | os=-bosx |
---|
| 337 | ;; |
---|
| 338 | dpx2* | dpx2*-bull) |
---|
| 339 | basic_machine=m68k-bull |
---|
| 340 | os=-sysv3 |
---|
| 341 | ;; |
---|
| 342 | ebmon29k) |
---|
| 343 | basic_machine=a29k-amd |
---|
| 344 | os=-ebmon |
---|
| 345 | ;; |
---|
| 346 | elxsi) |
---|
| 347 | basic_machine=elxsi-elxsi |
---|
| 348 | os=-bsd |
---|
| 349 | ;; |
---|
| 350 | encore | umax | mmax) |
---|
| 351 | basic_machine=ns32k-encore |
---|
| 352 | ;; |
---|
[7a524954] | 353 | es1800 | OSE68k | ose68k | ose | OSE) # CYGNUS LOCAL |
---|
| 354 | basic_machine=m68k-ericsson |
---|
| 355 | os=-ose |
---|
| 356 | ;; |
---|
[254b4450] | 357 | fx2800) |
---|
| 358 | basic_machine=i860-alliant |
---|
| 359 | ;; |
---|
| 360 | genix) |
---|
| 361 | basic_machine=ns32k-ns |
---|
| 362 | ;; |
---|
| 363 | gmicro) |
---|
| 364 | basic_machine=tron-gmicro |
---|
| 365 | os=-sysv |
---|
| 366 | ;; |
---|
| 367 | h3050r* | hiux*) |
---|
| 368 | basic_machine=hppa1.1-hitachi |
---|
| 369 | os=-hiuxwe2 |
---|
| 370 | ;; |
---|
| 371 | h8300hms) |
---|
| 372 | basic_machine=h8300-hitachi |
---|
| 373 | os=-hms |
---|
| 374 | ;; |
---|
[7a524954] | 375 | h8300xray) # CYGNUS LOCAL |
---|
| 376 | basic_machine=h8300-hitachi |
---|
| 377 | os=-xray |
---|
| 378 | ;; |
---|
| 379 | h8500hms) # CYGNUS LOCAL |
---|
| 380 | basic_machine=h8500-hitachi |
---|
| 381 | os=-hms |
---|
| 382 | ;; |
---|
[254b4450] | 383 | harris) |
---|
| 384 | basic_machine=m88k-harris |
---|
| 385 | os=-sysv3 |
---|
| 386 | ;; |
---|
| 387 | hp300-*) |
---|
| 388 | basic_machine=m68k-hp |
---|
| 389 | ;; |
---|
| 390 | hp300bsd) |
---|
| 391 | basic_machine=m68k-hp |
---|
| 392 | os=-bsd |
---|
| 393 | ;; |
---|
| 394 | hp300hpux) |
---|
| 395 | basic_machine=m68k-hp |
---|
| 396 | os=-hpux |
---|
| 397 | ;; |
---|
[7a524954] | 398 | w89k-*) # CYGNUS LOCAL |
---|
| 399 | basic_machine=hppa1.1-winbond |
---|
| 400 | os=-proelf |
---|
| 401 | ;; |
---|
| 402 | op50n-*) # CYGNUS LOCAL |
---|
| 403 | basic_machine=hppa1.1-oki |
---|
| 404 | os=-proelf |
---|
| 405 | ;; |
---|
| 406 | op60c-*) # CYGNUS LOCAL |
---|
| 407 | basic_machine=hppa1.1-oki |
---|
| 408 | os=-proelf |
---|
| 409 | ;; |
---|
| 410 | hppro) # CYGNUS LOCAL |
---|
| 411 | basic_machine=hppa1.1-hp |
---|
| 412 | os=-proelf |
---|
| 413 | ;; |
---|
[254b4450] | 414 | hp9k2[0-9][0-9] | hp9k31[0-9]) |
---|
| 415 | basic_machine=m68000-hp |
---|
| 416 | ;; |
---|
| 417 | hp9k3[2-9][0-9]) |
---|
| 418 | basic_machine=m68k-hp |
---|
| 419 | ;; |
---|
| 420 | hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7) |
---|
| 421 | basic_machine=hppa1.1-hp |
---|
| 422 | ;; |
---|
| 423 | hp9k8[0-9][0-9] | hp8[0-9][0-9]) |
---|
| 424 | basic_machine=hppa1.0-hp |
---|
| 425 | ;; |
---|
| 426 | hppa-next) |
---|
| 427 | os=-nextstep3 |
---|
| 428 | ;; |
---|
[7a524954] | 429 | hppaosf) # CYGNUS LOCAL |
---|
| 430 | basic_machine=hppa1.1-hp |
---|
| 431 | os=-osf |
---|
| 432 | ;; |
---|
[254b4450] | 433 | i370-ibm* | ibm*) |
---|
| 434 | basic_machine=i370-ibm |
---|
| 435 | os=-mvs |
---|
| 436 | ;; |
---|
| 437 | # I'm not sure what "Sysv32" means. Should this be sysv3.2? |
---|
| 438 | i[3456]86v32) |
---|
| 439 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
---|
| 440 | os=-sysv32 |
---|
| 441 | ;; |
---|
| 442 | i[3456]86v4*) |
---|
| 443 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
---|
| 444 | os=-sysv4 |
---|
| 445 | ;; |
---|
| 446 | i[3456]86v) |
---|
| 447 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
---|
| 448 | os=-sysv |
---|
| 449 | ;; |
---|
| 450 | i[3456]86sol2) |
---|
| 451 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
---|
| 452 | os=-solaris2 |
---|
| 453 | ;; |
---|
[7a524954] | 454 | i386mach) # CYGNUS LOCAL |
---|
| 455 | basic_machine=i386-mach |
---|
| 456 | os=-mach |
---|
| 457 | ;; |
---|
| 458 | i386-vsta | vsta) # CYGNUS LOCAL |
---|
| 459 | basic_machine=i386-unknown |
---|
| 460 | os=-vsta |
---|
| 461 | ;; |
---|
| 462 | i386-go32 | go32) # CYGNUS LOCAL |
---|
| 463 | basic_machine=i386-unknown |
---|
| 464 | os=-go32 |
---|
| 465 | ;; |
---|
[254b4450] | 466 | iris | iris4d) |
---|
| 467 | basic_machine=mips-sgi |
---|
| 468 | case $os in |
---|
| 469 | -irix*) |
---|
| 470 | ;; |
---|
| 471 | *) |
---|
| 472 | os=-irix4 |
---|
| 473 | ;; |
---|
| 474 | esac |
---|
| 475 | ;; |
---|
| 476 | isi68 | isi) |
---|
| 477 | basic_machine=m68k-isi |
---|
| 478 | os=-sysv |
---|
| 479 | ;; |
---|
| 480 | m88k-omron*) |
---|
| 481 | basic_machine=m88k-omron |
---|
| 482 | ;; |
---|
| 483 | magnum | m3230) |
---|
| 484 | basic_machine=mips-mips |
---|
| 485 | os=-sysv |
---|
| 486 | ;; |
---|
| 487 | merlin) |
---|
| 488 | basic_machine=ns32k-utek |
---|
| 489 | os=-sysv |
---|
| 490 | ;; |
---|
| 491 | miniframe) |
---|
| 492 | basic_machine=m68000-convergent |
---|
| 493 | ;; |
---|
[7a524954] | 494 | mipsel*-linux*) |
---|
| 495 | basic_machine=mipsel-unknown |
---|
| 496 | os=-linux-gnu |
---|
| 497 | ;; |
---|
| 498 | mips*-linux*) |
---|
| 499 | basic_machine=mips-unknown |
---|
| 500 | os=-linux-gnu |
---|
| 501 | ;; |
---|
[254b4450] | 502 | mips3*-*) |
---|
| 503 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` |
---|
| 504 | ;; |
---|
| 505 | mips3*) |
---|
| 506 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown |
---|
| 507 | ;; |
---|
[7a524954] | 508 | monitor) # CYGNUS LOCAL |
---|
| 509 | basic_machine=m68k-rom68k |
---|
| 510 | os=-coff |
---|
| 511 | ;; |
---|
| 512 | msdos) # CYGNUS LOCAL |
---|
| 513 | basic_machine=i386-unknown |
---|
| 514 | os=-msdos |
---|
| 515 | ;; |
---|
[254b4450] | 516 | ncr3000) |
---|
| 517 | basic_machine=i486-ncr |
---|
| 518 | os=-sysv4 |
---|
| 519 | ;; |
---|
[7a524954] | 520 | netbsd386) |
---|
| 521 | basic_machine=i386-unknown # CYGNUS LOCAL |
---|
| 522 | os=-netbsd |
---|
| 523 | ;; |
---|
[254b4450] | 524 | news | news700 | news800 | news900) |
---|
| 525 | basic_machine=m68k-sony |
---|
| 526 | os=-newsos |
---|
| 527 | ;; |
---|
| 528 | news1000) |
---|
| 529 | basic_machine=m68030-sony |
---|
| 530 | os=-newsos |
---|
| 531 | ;; |
---|
| 532 | news-3600 | risc-news) |
---|
| 533 | basic_machine=mips-sony |
---|
| 534 | os=-newsos |
---|
| 535 | ;; |
---|
[7a524954] | 536 | necv70) # CYGNUS LOCAL |
---|
| 537 | basic_machine=v70-nec |
---|
| 538 | os=-sysv |
---|
| 539 | ;; |
---|
[254b4450] | 540 | next | m*-next ) |
---|
| 541 | basic_machine=m68k-next |
---|
| 542 | case $os in |
---|
| 543 | -nextstep* ) |
---|
| 544 | ;; |
---|
| 545 | -ns2*) |
---|
| 546 | os=-nextstep2 |
---|
| 547 | ;; |
---|
| 548 | *) |
---|
| 549 | os=-nextstep3 |
---|
| 550 | ;; |
---|
| 551 | esac |
---|
| 552 | ;; |
---|
| 553 | nh3000) |
---|
| 554 | basic_machine=m68k-harris |
---|
| 555 | os=-cxux |
---|
| 556 | ;; |
---|
| 557 | nh[45]000) |
---|
| 558 | basic_machine=m88k-harris |
---|
| 559 | os=-cxux |
---|
| 560 | ;; |
---|
| 561 | nindy960) |
---|
| 562 | basic_machine=i960-intel |
---|
| 563 | os=-nindy |
---|
| 564 | ;; |
---|
[7a524954] | 565 | mon960) # CYGNUS LOCAL |
---|
| 566 | basic_machine=i960-intel |
---|
| 567 | os=-mon960 |
---|
| 568 | ;; |
---|
[254b4450] | 569 | np1) |
---|
| 570 | basic_machine=np1-gould |
---|
| 571 | ;; |
---|
[7a524954] | 572 | OSE68000 | ose68000) # CYGNUS LOCAL |
---|
| 573 | basic_machine=m68000-ericsson |
---|
| 574 | os=-ose |
---|
| 575 | ;; |
---|
| 576 | os68k) # CYGNUS LOCAL |
---|
| 577 | basic_machine=m68k-none |
---|
| 578 | os=-os68k |
---|
| 579 | ;; |
---|
[254b4450] | 580 | pa-hitachi) |
---|
| 581 | basic_machine=hppa1.1-hitachi |
---|
| 582 | os=-hiuxwe2 |
---|
| 583 | ;; |
---|
| 584 | paragon) |
---|
| 585 | basic_machine=i860-intel |
---|
| 586 | os=-osf |
---|
| 587 | ;; |
---|
| 588 | pbd) |
---|
| 589 | basic_machine=sparc-tti |
---|
| 590 | ;; |
---|
| 591 | pbb) |
---|
| 592 | basic_machine=m68k-tti |
---|
| 593 | ;; |
---|
| 594 | pc532 | pc532-*) |
---|
| 595 | basic_machine=ns32k-pc532 |
---|
| 596 | ;; |
---|
| 597 | pentium | p5) |
---|
| 598 | basic_machine=i586-intel |
---|
| 599 | ;; |
---|
| 600 | pentiumpro | p6) |
---|
| 601 | basic_machine=i686-intel |
---|
| 602 | ;; |
---|
| 603 | pentium-* | p5-*) |
---|
| 604 | basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
---|
| 605 | ;; |
---|
| 606 | pentiumpro-* | p6-*) |
---|
| 607 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
---|
| 608 | ;; |
---|
| 609 | k5) |
---|
| 610 | # We don't have specific support for AMD's K5 yet, so just call it a Pentium |
---|
| 611 | basic_machine=i586-amd |
---|
| 612 | ;; |
---|
| 613 | nexen) |
---|
| 614 | # We don't have specific support for Nexgen yet, so just call it a Pentium |
---|
| 615 | basic_machine=i586-nexgen |
---|
| 616 | ;; |
---|
| 617 | pn) |
---|
| 618 | basic_machine=pn-gould |
---|
| 619 | ;; |
---|
| 620 | power) basic_machine=rs6000-ibm |
---|
| 621 | ;; |
---|
| 622 | ppc) basic_machine=powerpc-unknown |
---|
| 623 | ;; |
---|
| 624 | ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
---|
| 625 | ;; |
---|
| 626 | ppcle | powerpclittle | ppc-le | powerpc-little) |
---|
| 627 | basic_machine=powerpcle-unknown |
---|
| 628 | ;; |
---|
| 629 | ppcle-* | powerpclittle-*) |
---|
| 630 | basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` |
---|
| 631 | ;; |
---|
| 632 | ps2) |
---|
| 633 | basic_machine=i386-ibm |
---|
| 634 | ;; |
---|
[7a524954] | 635 | rom68k) # CYGNUS LOCAL |
---|
| 636 | basic_machine=m68k-rom68k |
---|
| 637 | os=-coff |
---|
| 638 | ;; |
---|
[254b4450] | 639 | rm[46]00) |
---|
| 640 | basic_machine=mips-siemens |
---|
| 641 | ;; |
---|
| 642 | rtpc | rtpc-*) |
---|
| 643 | basic_machine=romp-ibm |
---|
| 644 | ;; |
---|
[7a524954] | 645 | sa29200) # CYGNUS LOCAL |
---|
| 646 | basic_machine=a29k-amd |
---|
| 647 | os=-udi |
---|
| 648 | ;; |
---|
[254b4450] | 649 | sequent) |
---|
| 650 | basic_machine=i386-sequent |
---|
| 651 | ;; |
---|
| 652 | sh) |
---|
| 653 | basic_machine=sh-hitachi |
---|
| 654 | os=-hms |
---|
| 655 | ;; |
---|
[7a524954] | 656 | sparclite-wrs) # CYGNUS LOCAL |
---|
| 657 | basic_machine=sparclite-wrs |
---|
| 658 | os=-vxworks |
---|
| 659 | ;; |
---|
[254b4450] | 660 | sps7) |
---|
| 661 | basic_machine=m68k-bull |
---|
| 662 | os=-sysv2 |
---|
| 663 | ;; |
---|
| 664 | spur) |
---|
| 665 | basic_machine=spur-unknown |
---|
| 666 | ;; |
---|
[7a524954] | 667 | st2000) # CYGNUS LOCAL |
---|
| 668 | basic_machine=m68k-tandem |
---|
| 669 | ;; |
---|
| 670 | stratus) # CYGNUS LOCAL |
---|
| 671 | basic_machine=i860-stratus |
---|
| 672 | os=-sysv4 |
---|
| 673 | ;; |
---|
[254b4450] | 674 | sun2) |
---|
| 675 | basic_machine=m68000-sun |
---|
| 676 | ;; |
---|
| 677 | sun2os3) |
---|
| 678 | basic_machine=m68000-sun |
---|
| 679 | os=-sunos3 |
---|
| 680 | ;; |
---|
| 681 | sun2os4) |
---|
| 682 | basic_machine=m68000-sun |
---|
| 683 | os=-sunos4 |
---|
| 684 | ;; |
---|
| 685 | sun3os3) |
---|
| 686 | basic_machine=m68k-sun |
---|
| 687 | os=-sunos3 |
---|
| 688 | ;; |
---|
| 689 | sun3os4) |
---|
| 690 | basic_machine=m68k-sun |
---|
| 691 | os=-sunos4 |
---|
| 692 | ;; |
---|
| 693 | sun4os3) |
---|
| 694 | basic_machine=sparc-sun |
---|
| 695 | os=-sunos3 |
---|
| 696 | ;; |
---|
| 697 | sun4os4) |
---|
| 698 | basic_machine=sparc-sun |
---|
| 699 | os=-sunos4 |
---|
| 700 | ;; |
---|
| 701 | sun4sol2) |
---|
| 702 | basic_machine=sparc-sun |
---|
| 703 | os=-solaris2 |
---|
| 704 | ;; |
---|
| 705 | sun3 | sun3-*) |
---|
| 706 | basic_machine=m68k-sun |
---|
| 707 | ;; |
---|
| 708 | sun4) |
---|
| 709 | basic_machine=sparc-sun |
---|
| 710 | ;; |
---|
| 711 | sun386 | sun386i | roadrunner) |
---|
| 712 | basic_machine=i386-sun |
---|
| 713 | ;; |
---|
| 714 | symmetry) |
---|
| 715 | basic_machine=i386-sequent |
---|
| 716 | os=-dynix |
---|
| 717 | ;; |
---|
[7a524954] | 718 | tx39) |
---|
| 719 | basic_machine=mipstx39-unknown |
---|
| 720 | ;; |
---|
| 721 | tx39el) |
---|
| 722 | basic_machine=mipstx39el-unknown |
---|
| 723 | ;; |
---|
[254b4450] | 724 | tower | tower-32) |
---|
| 725 | basic_machine=m68k-ncr |
---|
| 726 | ;; |
---|
| 727 | udi29k) |
---|
| 728 | basic_machine=a29k-amd |
---|
| 729 | os=-udi |
---|
| 730 | ;; |
---|
| 731 | ultra3) |
---|
| 732 | basic_machine=a29k-nyu |
---|
| 733 | os=-sym1 |
---|
| 734 | ;; |
---|
[7a524954] | 735 | v810 | necv810) # CYGNUS LOCAL |
---|
| 736 | basic_machine=v810-nec |
---|
| 737 | os=-none |
---|
| 738 | ;; |
---|
[254b4450] | 739 | vaxv) |
---|
| 740 | basic_machine=vax-dec |
---|
| 741 | os=-sysv |
---|
| 742 | ;; |
---|
| 743 | vms) |
---|
| 744 | basic_machine=vax-dec |
---|
| 745 | os=-vms |
---|
| 746 | ;; |
---|
[7a524954] | 747 | vpp*|vx|vx-*) |
---|
[254b4450] | 748 | basic_machine=f301-fujitsu |
---|
| 749 | ;; |
---|
| 750 | vxworks960) |
---|
| 751 | basic_machine=i960-wrs |
---|
| 752 | os=-vxworks |
---|
| 753 | ;; |
---|
| 754 | vxworks68) |
---|
| 755 | basic_machine=m68k-wrs |
---|
| 756 | os=-vxworks |
---|
| 757 | ;; |
---|
| 758 | vxworks29k) |
---|
| 759 | basic_machine=a29k-wrs |
---|
| 760 | os=-vxworks |
---|
| 761 | ;; |
---|
[7a524954] | 762 | w65*) # CYGNUS LOCAL |
---|
| 763 | basic_machine=w65-wdc |
---|
| 764 | os=-none |
---|
| 765 | ;; |
---|
[254b4450] | 766 | xmp) |
---|
| 767 | basic_machine=xmp-cray |
---|
| 768 | os=-unicos |
---|
| 769 | ;; |
---|
| 770 | xps | xps100) |
---|
| 771 | basic_machine=xps100-honeywell |
---|
| 772 | ;; |
---|
[7a524954] | 773 | z8k-*-coff) # CYGNUS LOCAL |
---|
| 774 | basic_machine=z8k-unknown |
---|
| 775 | os=-sim |
---|
| 776 | ;; |
---|
[254b4450] | 777 | none) |
---|
| 778 | basic_machine=none-none |
---|
| 779 | os=-none |
---|
| 780 | ;; |
---|
| 781 | |
---|
| 782 | # Here we handle the default manufacturer of certain CPU types. It is in |
---|
| 783 | # some cases the only manufacturer, in others, it is the most popular. |
---|
[7a524954] | 784 | w89k) # CYGNUS LOCAL |
---|
| 785 | basic_machine=hppa1.1-winbond |
---|
| 786 | ;; |
---|
| 787 | op50n) # CYGNUS LOCAL |
---|
| 788 | basic_machine=hppa1.1-oki |
---|
| 789 | ;; |
---|
| 790 | op60c) # CYGNUS LOCAL |
---|
| 791 | basic_machine=hppa1.1-oki |
---|
| 792 | ;; |
---|
[254b4450] | 793 | mips) |
---|
[7a524954] | 794 | if [ x$os = x-linux-gnu ]; then |
---|
| 795 | basic_machine=mips-unknown |
---|
| 796 | else |
---|
| 797 | basic_machine=mips-mips |
---|
| 798 | fi |
---|
[254b4450] | 799 | ;; |
---|
| 800 | romp) |
---|
| 801 | basic_machine=romp-ibm |
---|
| 802 | ;; |
---|
| 803 | rs6000) |
---|
| 804 | basic_machine=rs6000-ibm |
---|
| 805 | ;; |
---|
| 806 | vax) |
---|
| 807 | basic_machine=vax-dec |
---|
| 808 | ;; |
---|
| 809 | pdp11) |
---|
| 810 | basic_machine=pdp11-dec |
---|
| 811 | ;; |
---|
| 812 | we32k) |
---|
| 813 | basic_machine=we32k-att |
---|
| 814 | ;; |
---|
| 815 | sparc) |
---|
| 816 | basic_machine=sparc-sun |
---|
| 817 | ;; |
---|
| 818 | cydra) |
---|
| 819 | basic_machine=cydra-cydrome |
---|
| 820 | ;; |
---|
| 821 | orion) |
---|
| 822 | basic_machine=orion-highlevel |
---|
| 823 | ;; |
---|
| 824 | orion105) |
---|
| 825 | basic_machine=clipper-highlevel |
---|
| 826 | ;; |
---|
[7a524954] | 827 | mac | mpw | mac-mpw) # CYGNUS LOCAL |
---|
| 828 | basic_machine=m68k-apple |
---|
| 829 | ;; |
---|
| 830 | pmac | pmac-mpw) # CYGNUS LOCAL |
---|
| 831 | basic_machine=powerpc-apple |
---|
| 832 | ;; |
---|
[254b4450] | 833 | *) |
---|
| 834 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
---|
| 835 | exit 1 |
---|
| 836 | ;; |
---|
| 837 | esac |
---|
| 838 | |
---|
| 839 | # Here we canonicalize certain aliases for manufacturers. |
---|
| 840 | case $basic_machine in |
---|
| 841 | *-digital*) |
---|
| 842 | basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` |
---|
| 843 | ;; |
---|
| 844 | *-commodore*) |
---|
| 845 | basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` |
---|
| 846 | ;; |
---|
| 847 | *) |
---|
| 848 | ;; |
---|
| 849 | esac |
---|
| 850 | |
---|
| 851 | # Decode manufacturer-specific aliases for certain operating systems. |
---|
| 852 | |
---|
| 853 | if [ x"$os" != x"" ] |
---|
| 854 | then |
---|
| 855 | case $os in |
---|
| 856 | # First match some system type aliases |
---|
| 857 | # that might get confused with valid system types. |
---|
| 858 | # -solaris* is a basic system type, with this one exception. |
---|
| 859 | -solaris1 | -solaris1.*) |
---|
| 860 | os=`echo $os | sed -e 's|solaris1|sunos4|'` |
---|
| 861 | ;; |
---|
| 862 | -solaris) |
---|
| 863 | os=-solaris2 |
---|
| 864 | ;; |
---|
| 865 | -unixware* | svr4*) |
---|
| 866 | os=-sysv4 |
---|
| 867 | ;; |
---|
| 868 | -gnu/linux*) |
---|
| 869 | os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` |
---|
| 870 | ;; |
---|
| 871 | # First accept the basic system types. |
---|
| 872 | # The portable systems comes first. |
---|
| 873 | # Each alternative MUST END IN A *, to match a version number. |
---|
| 874 | # -sysv* is not here because it comes later, after sysvr4. |
---|
| 875 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
---|
| 876 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ |
---|
| 877 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
---|
[7a524954] | 878 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
---|
| 879 | | -aos* \ |
---|
[254b4450] | 880 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
---|
| 881 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
---|
| 882 | | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ |
---|
| 883 | | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ |
---|
| 884 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
---|
| 885 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
---|
| 886 | | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
---|
[7a524954] | 887 | | -mingw32* | -linux-gnu* | -uxpv*) |
---|
[254b4450] | 888 | # Remember, each alternative MUST END IN *, to match a version number. |
---|
| 889 | ;; |
---|
[7a524954] | 890 | # CYGNUS LOCAL |
---|
| 891 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
---|
| 892 | | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ |
---|
| 893 | | -macos* | -mpw* | -magic* | -mon960* | -lnews* ) |
---|
| 894 | ;; |
---|
| 895 | -mac*) |
---|
| 896 | os=`echo $os | sed -e 's|mac|macos|'` |
---|
| 897 | ;; |
---|
| 898 | # END CYGNUS LOCAL |
---|
[254b4450] | 899 | -linux*) |
---|
| 900 | os=`echo $os | sed -e 's|linux|linux-gnu|'` |
---|
| 901 | ;; |
---|
| 902 | -sunos5*) |
---|
| 903 | os=`echo $os | sed -e 's|sunos5|solaris2|'` |
---|
| 904 | ;; |
---|
| 905 | -sunos6*) |
---|
| 906 | os=`echo $os | sed -e 's|sunos6|solaris3|'` |
---|
| 907 | ;; |
---|
| 908 | -osfrose*) |
---|
| 909 | os=-osfrose |
---|
| 910 | ;; |
---|
| 911 | -osf*) |
---|
| 912 | os=-osf |
---|
| 913 | ;; |
---|
| 914 | -utek*) |
---|
| 915 | os=-bsd |
---|
| 916 | ;; |
---|
| 917 | -dynix*) |
---|
| 918 | os=-bsd |
---|
| 919 | ;; |
---|
| 920 | -acis*) |
---|
| 921 | os=-aos |
---|
| 922 | ;; |
---|
[7a524954] | 923 | -386bsd) # CYGNUS LOCAL |
---|
| 924 | os=-bsd |
---|
| 925 | ;; |
---|
[254b4450] | 926 | -ctix* | -uts*) |
---|
| 927 | os=-sysv |
---|
| 928 | ;; |
---|
| 929 | -ns2 ) |
---|
| 930 | os=-nextstep2 |
---|
| 931 | ;; |
---|
| 932 | # Preserve the version number of sinix5. |
---|
| 933 | -sinix5.*) |
---|
| 934 | os=`echo $os | sed -e 's|sinix|sysv|'` |
---|
| 935 | ;; |
---|
| 936 | -sinix*) |
---|
| 937 | os=-sysv4 |
---|
| 938 | ;; |
---|
| 939 | -triton*) |
---|
| 940 | os=-sysv3 |
---|
| 941 | ;; |
---|
| 942 | -oss*) |
---|
| 943 | os=-sysv3 |
---|
| 944 | ;; |
---|
| 945 | -svr4) |
---|
| 946 | os=-sysv4 |
---|
| 947 | ;; |
---|
| 948 | -svr3) |
---|
| 949 | os=-sysv3 |
---|
| 950 | ;; |
---|
| 951 | -sysvr4) |
---|
| 952 | os=-sysv4 |
---|
| 953 | ;; |
---|
| 954 | # This must come after -sysvr4. |
---|
| 955 | -sysv*) |
---|
| 956 | ;; |
---|
[7a524954] | 957 | -ose*) # CYGNUS LOCAL |
---|
| 958 | os=-ose |
---|
| 959 | ;; |
---|
| 960 | -es1800*) # CYGNUS LOCAL |
---|
| 961 | os=-ose |
---|
| 962 | ;; |
---|
[254b4450] | 963 | -xenix) |
---|
| 964 | os=-xenix |
---|
| 965 | ;; |
---|
| 966 | -none) |
---|
| 967 | ;; |
---|
| 968 | *) |
---|
| 969 | # Get rid of the `-' at the beginning of $os. |
---|
| 970 | os=`echo $os | sed 's/[^-]*-//'` |
---|
| 971 | echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 |
---|
| 972 | exit 1 |
---|
| 973 | ;; |
---|
| 974 | esac |
---|
| 975 | else |
---|
| 976 | |
---|
| 977 | # Here we handle the default operating systems that come with various machines. |
---|
| 978 | # The value should be what the vendor currently ships out the door with their |
---|
| 979 | # machine or put another way, the most popular os provided with the machine. |
---|
| 980 | |
---|
| 981 | # Note that if you're going to try to match "-MANUFACTURER" here (say, |
---|
| 982 | # "-sun"), then you have to tell the case statement up towards the top |
---|
| 983 | # that MANUFACTURER isn't an operating system. Otherwise, code above |
---|
| 984 | # will signal an error saying that MANUFACTURER isn't an operating |
---|
| 985 | # system, and we'll never get to this point. |
---|
| 986 | |
---|
| 987 | case $basic_machine in |
---|
| 988 | *-acorn) |
---|
| 989 | os=-riscix1.2 |
---|
| 990 | ;; |
---|
| 991 | arm*-semi) |
---|
| 992 | os=-aout |
---|
| 993 | ;; |
---|
| 994 | pdp11-*) |
---|
| 995 | os=-none |
---|
| 996 | ;; |
---|
| 997 | *-dec | vax-*) |
---|
| 998 | os=-ultrix4.2 |
---|
| 999 | ;; |
---|
| 1000 | m68*-apollo) |
---|
| 1001 | os=-domain |
---|
| 1002 | ;; |
---|
| 1003 | i386-sun) |
---|
| 1004 | os=-sunos4.0.2 |
---|
| 1005 | ;; |
---|
| 1006 | m68000-sun) |
---|
| 1007 | os=-sunos3 |
---|
| 1008 | # This also exists in the configure program, but was not the |
---|
| 1009 | # default. |
---|
| 1010 | # os=-sunos4 |
---|
| 1011 | ;; |
---|
[7a524954] | 1012 | m68*-cisco) # CYGNUS LOCAL |
---|
| 1013 | os=-aout |
---|
| 1014 | ;; |
---|
| 1015 | mips*-cisco) # CYGNUS LOCAL |
---|
| 1016 | os=-elf |
---|
| 1017 | ;; |
---|
| 1018 | mips*-*) # CYGNUS LOCAL |
---|
| 1019 | os=-elf |
---|
| 1020 | ;; |
---|
[254b4450] | 1021 | *-tti) # must be before sparc entry or we get the wrong os. |
---|
| 1022 | os=-sysv3 |
---|
| 1023 | ;; |
---|
| 1024 | sparc-* | *-sun) |
---|
| 1025 | os=-sunos4.1.1 |
---|
| 1026 | ;; |
---|
[7a524954] | 1027 | *-be) # CYGNUS LOCAL |
---|
| 1028 | os=-beos |
---|
| 1029 | ;; |
---|
[254b4450] | 1030 | *-ibm) |
---|
| 1031 | os=-aix |
---|
| 1032 | ;; |
---|
[7a524954] | 1033 | *-wec) # CYGNUS LOCAL |
---|
| 1034 | os=-proelf |
---|
| 1035 | ;; |
---|
| 1036 | *-winbond) # CYGNUS LOCAL |
---|
| 1037 | os=-proelf |
---|
| 1038 | ;; |
---|
| 1039 | *-oki) # CYGNUS LOCAL |
---|
| 1040 | os=-proelf |
---|
| 1041 | ;; |
---|
[254b4450] | 1042 | *-hp) |
---|
| 1043 | os=-hpux |
---|
| 1044 | ;; |
---|
| 1045 | *-hitachi) |
---|
| 1046 | os=-hiux |
---|
| 1047 | ;; |
---|
| 1048 | i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) |
---|
| 1049 | os=-sysv |
---|
| 1050 | ;; |
---|
| 1051 | *-cbm) |
---|
[7a524954] | 1052 | os=-amigaos |
---|
[254b4450] | 1053 | ;; |
---|
| 1054 | *-dg) |
---|
| 1055 | os=-dgux |
---|
| 1056 | ;; |
---|
| 1057 | *-dolphin) |
---|
| 1058 | os=-sysv3 |
---|
| 1059 | ;; |
---|
| 1060 | m68k-ccur) |
---|
| 1061 | os=-rtu |
---|
| 1062 | ;; |
---|
| 1063 | m88k-omron*) |
---|
| 1064 | os=-luna |
---|
| 1065 | ;; |
---|
| 1066 | *-next ) |
---|
| 1067 | os=-nextstep |
---|
| 1068 | ;; |
---|
| 1069 | *-sequent) |
---|
| 1070 | os=-ptx |
---|
| 1071 | ;; |
---|
| 1072 | *-crds) |
---|
| 1073 | os=-unos |
---|
| 1074 | ;; |
---|
| 1075 | *-ns) |
---|
| 1076 | os=-genix |
---|
| 1077 | ;; |
---|
| 1078 | i370-*) |
---|
| 1079 | os=-mvs |
---|
| 1080 | ;; |
---|
| 1081 | *-next) |
---|
| 1082 | os=-nextstep3 |
---|
| 1083 | ;; |
---|
| 1084 | *-gould) |
---|
| 1085 | os=-sysv |
---|
| 1086 | ;; |
---|
| 1087 | *-highlevel) |
---|
| 1088 | os=-bsd |
---|
| 1089 | ;; |
---|
| 1090 | *-encore) |
---|
| 1091 | os=-bsd |
---|
| 1092 | ;; |
---|
| 1093 | *-sgi) |
---|
| 1094 | os=-irix |
---|
| 1095 | ;; |
---|
| 1096 | *-siemens) |
---|
| 1097 | os=-sysv4 |
---|
| 1098 | ;; |
---|
| 1099 | *-masscomp) |
---|
| 1100 | os=-rtu |
---|
| 1101 | ;; |
---|
| 1102 | f301-fujitsu) |
---|
| 1103 | os=-uxpv |
---|
| 1104 | ;; |
---|
[7a524954] | 1105 | *-rom68k) # CYGNUS LOCAL |
---|
| 1106 | os=-coff |
---|
| 1107 | ;; |
---|
| 1108 | *-*bug) # CYGNUS LOCAL |
---|
| 1109 | os=-coff |
---|
| 1110 | ;; |
---|
| 1111 | *-apple) # CYGNUS LOCAL |
---|
| 1112 | os=-macos |
---|
| 1113 | ;; |
---|
[254b4450] | 1114 | *) |
---|
| 1115 | os=-none |
---|
| 1116 | ;; |
---|
| 1117 | esac |
---|
| 1118 | fi |
---|
| 1119 | |
---|
| 1120 | # Here we handle the case where we know the os, and the CPU type, but not the |
---|
| 1121 | # manufacturer. We pick the logical manufacturer. |
---|
| 1122 | vendor=unknown |
---|
| 1123 | case $basic_machine in |
---|
| 1124 | *-unknown) |
---|
| 1125 | case $os in |
---|
| 1126 | -riscix*) |
---|
| 1127 | vendor=acorn |
---|
| 1128 | ;; |
---|
| 1129 | -sunos*) |
---|
| 1130 | vendor=sun |
---|
| 1131 | ;; |
---|
| 1132 | -aix*) |
---|
| 1133 | vendor=ibm |
---|
| 1134 | ;; |
---|
[7a524954] | 1135 | -beos*) # CYGNUS LOCAL |
---|
| 1136 | vendor=be |
---|
| 1137 | ;; |
---|
[254b4450] | 1138 | -hpux*) |
---|
| 1139 | vendor=hp |
---|
| 1140 | ;; |
---|
| 1141 | -hiux*) |
---|
| 1142 | vendor=hitachi |
---|
| 1143 | ;; |
---|
| 1144 | -unos*) |
---|
| 1145 | vendor=crds |
---|
| 1146 | ;; |
---|
| 1147 | -dgux*) |
---|
| 1148 | vendor=dg |
---|
| 1149 | ;; |
---|
| 1150 | -luna*) |
---|
| 1151 | vendor=omron |
---|
| 1152 | ;; |
---|
| 1153 | -genix*) |
---|
| 1154 | vendor=ns |
---|
| 1155 | ;; |
---|
| 1156 | -mvs*) |
---|
| 1157 | vendor=ibm |
---|
| 1158 | ;; |
---|
| 1159 | -ptx*) |
---|
| 1160 | vendor=sequent |
---|
| 1161 | ;; |
---|
| 1162 | -vxsim* | -vxworks*) |
---|
| 1163 | vendor=wrs |
---|
| 1164 | ;; |
---|
| 1165 | -aux*) |
---|
| 1166 | vendor=apple |
---|
| 1167 | ;; |
---|
[7a524954] | 1168 | -hms*) # CYGNUS LOCAL |
---|
| 1169 | vendor=hitachi |
---|
| 1170 | ;; |
---|
| 1171 | -mpw* | -macos*) # CYGNUS LOCAL |
---|
| 1172 | vendor=apple |
---|
| 1173 | ;; |
---|
[254b4450] | 1174 | esac |
---|
| 1175 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` |
---|
| 1176 | ;; |
---|
| 1177 | esac |
---|
| 1178 | |
---|
| 1179 | echo $basic_machine$os |
---|