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