Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
michael@0 | 1 | #! /bin/sh |
michael@0 | 2 | # Configuration validation subroutine script. |
michael@0 | 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
michael@0 | 4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, |
michael@0 | 5 | # Inc. |
michael@0 | 6 | |
michael@0 | 7 | timestamp='2007-06-28' |
michael@0 | 8 | |
michael@0 | 9 | # This file is (in principle) common to ALL GNU software. |
michael@0 | 10 | # The presence of a machine in this file suggests that SOME GNU software |
michael@0 | 11 | # can handle that machine. It does not imply ALL GNU software can. |
michael@0 | 12 | # |
michael@0 | 13 | # This file is free software; you can redistribute it and/or modify |
michael@0 | 14 | # it under the terms of the GNU General Public License as published by |
michael@0 | 15 | # the Free Software Foundation; either version 2 of the License, or |
michael@0 | 16 | # (at your option) any later version. |
michael@0 | 17 | # |
michael@0 | 18 | # This program is distributed in the hope that it will be useful, |
michael@0 | 19 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
michael@0 | 20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
michael@0 | 21 | # GNU General Public License for more details. |
michael@0 | 22 | # |
michael@0 | 23 | # You should have received a copy of the GNU General Public License |
michael@0 | 24 | # along with this program; if not, write to the Free Software |
michael@0 | 25 | # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA |
michael@0 | 26 | # 02110-1301, USA. |
michael@0 | 27 | # |
michael@0 | 28 | # As a special exception to the GNU General Public License, if you |
michael@0 | 29 | # distribute this file as part of a program that contains a |
michael@0 | 30 | # configuration script generated by Autoconf, you may include it under |
michael@0 | 31 | # the same distribution terms that you use for the rest of that program. |
michael@0 | 32 | |
michael@0 | 33 | |
michael@0 | 34 | # Please send patches to <config-patches@gnu.org>. Submit a context |
michael@0 | 35 | # diff and a properly formatted ChangeLog entry. |
michael@0 | 36 | # |
michael@0 | 37 | # Configuration subroutine to validate and canonicalize a configuration type. |
michael@0 | 38 | # Supply the specified configuration type as an argument. |
michael@0 | 39 | # If it is invalid, we print an error message on stderr and exit with code 1. |
michael@0 | 40 | # Otherwise, we print the canonical config type on stdout and succeed. |
michael@0 | 41 | |
michael@0 | 42 | # This file is supposed to be the same for all GNU packages |
michael@0 | 43 | # and recognize all the CPU types, system types and aliases |
michael@0 | 44 | # that are meaningful with *any* GNU software. |
michael@0 | 45 | # Each package is responsible for reporting which valid configurations |
michael@0 | 46 | # it does not support. The user should be able to distinguish |
michael@0 | 47 | # a failure to support a valid configuration from a meaningless |
michael@0 | 48 | # configuration. |
michael@0 | 49 | |
michael@0 | 50 | # The goal of this file is to map all the various variations of a given |
michael@0 | 51 | # machine specification into a single specification in the form: |
michael@0 | 52 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM |
michael@0 | 53 | # or in some cases, the newer four-part form: |
michael@0 | 54 | # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM |
michael@0 | 55 | # It is wrong to echo any other type of specification. |
michael@0 | 56 | |
michael@0 | 57 | me=`echo "$0" | sed -e 's,.*/,,'` |
michael@0 | 58 | |
michael@0 | 59 | usage="\ |
michael@0 | 60 | Usage: $0 [OPTION] CPU-MFR-OPSYS |
michael@0 | 61 | $0 [OPTION] ALIAS |
michael@0 | 62 | |
michael@0 | 63 | Canonicalize a configuration name. |
michael@0 | 64 | |
michael@0 | 65 | Operation modes: |
michael@0 | 66 | -h, --help print this help, then exit |
michael@0 | 67 | -t, --time-stamp print date of last modification, then exit |
michael@0 | 68 | -v, --version print version number, then exit |
michael@0 | 69 | |
michael@0 | 70 | Report bugs and patches to <config-patches@gnu.org>." |
michael@0 | 71 | |
michael@0 | 72 | version="\ |
michael@0 | 73 | GNU config.sub ($timestamp) |
michael@0 | 74 | |
michael@0 | 75 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
michael@0 | 76 | Free Software Foundation, Inc. |
michael@0 | 77 | |
michael@0 | 78 | This is free software; see the source for copying conditions. There is NO |
michael@0 | 79 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
michael@0 | 80 | |
michael@0 | 81 | help=" |
michael@0 | 82 | Try \`$me --help' for more information." |
michael@0 | 83 | |
michael@0 | 84 | # Parse command line |
michael@0 | 85 | while test $# -gt 0 ; do |
michael@0 | 86 | case $1 in |
michael@0 | 87 | --time-stamp | --time* | -t ) |
michael@0 | 88 | echo "$timestamp" ; exit ;; |
michael@0 | 89 | --version | -v ) |
michael@0 | 90 | echo "$version" ; exit ;; |
michael@0 | 91 | --help | --h* | -h ) |
michael@0 | 92 | echo "$usage"; exit ;; |
michael@0 | 93 | -- ) # Stop option processing |
michael@0 | 94 | shift; break ;; |
michael@0 | 95 | - ) # Use stdin as input. |
michael@0 | 96 | break ;; |
michael@0 | 97 | -* ) |
michael@0 | 98 | echo "$me: invalid option $1$help" |
michael@0 | 99 | exit 1 ;; |
michael@0 | 100 | |
michael@0 | 101 | *local*) |
michael@0 | 102 | # First pass through any local machine types. |
michael@0 | 103 | echo $1 |
michael@0 | 104 | exit ;; |
michael@0 | 105 | |
michael@0 | 106 | * ) |
michael@0 | 107 | break ;; |
michael@0 | 108 | esac |
michael@0 | 109 | done |
michael@0 | 110 | |
michael@0 | 111 | case $# in |
michael@0 | 112 | 0) echo "$me: missing argument$help" >&2 |
michael@0 | 113 | exit 1;; |
michael@0 | 114 | 1) ;; |
michael@0 | 115 | *) echo "$me: too many arguments$help" >&2 |
michael@0 | 116 | exit 1;; |
michael@0 | 117 | esac |
michael@0 | 118 | |
michael@0 | 119 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
michael@0 | 120 | # Here we must recognize all the valid KERNEL-OS combinations. |
michael@0 | 121 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
michael@0 | 122 | case $maybe_os in |
michael@0 | 123 | nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ |
michael@0 | 124 | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ |
michael@0 | 125 | storm-chaos* | os2-emx* | rtmk-nova*) |
michael@0 | 126 | os=-$maybe_os |
michael@0 | 127 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
michael@0 | 128 | ;; |
michael@0 | 129 | *) |
michael@0 | 130 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
michael@0 | 131 | if [ $basic_machine != $1 ] |
michael@0 | 132 | then os=`echo $1 | sed 's/.*-/-/'` |
michael@0 | 133 | else os=; fi |
michael@0 | 134 | ;; |
michael@0 | 135 | esac |
michael@0 | 136 | |
michael@0 | 137 | ### Let's recognize common machines as not being operating systems so |
michael@0 | 138 | ### that things like config.sub decstation-3100 work. We also |
michael@0 | 139 | ### recognize some manufacturers as not being operating systems, so we |
michael@0 | 140 | ### can provide default operating systems below. |
michael@0 | 141 | case $os in |
michael@0 | 142 | -sun*os*) |
michael@0 | 143 | # Prevent following clause from handling this invalid input. |
michael@0 | 144 | ;; |
michael@0 | 145 | -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ |
michael@0 | 146 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ |
michael@0 | 147 | -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
michael@0 | 148 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
michael@0 | 149 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
michael@0 | 150 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
michael@0 | 151 | -apple | -axis | -knuth | -cray) |
michael@0 | 152 | os= |
michael@0 | 153 | basic_machine=$1 |
michael@0 | 154 | ;; |
michael@0 | 155 | -sim | -cisco | -oki | -wec | -winbond) |
michael@0 | 156 | os= |
michael@0 | 157 | basic_machine=$1 |
michael@0 | 158 | ;; |
michael@0 | 159 | -scout) |
michael@0 | 160 | ;; |
michael@0 | 161 | -wrs) |
michael@0 | 162 | os=-vxworks |
michael@0 | 163 | basic_machine=$1 |
michael@0 | 164 | ;; |
michael@0 | 165 | -chorusos*) |
michael@0 | 166 | os=-chorusos |
michael@0 | 167 | basic_machine=$1 |
michael@0 | 168 | ;; |
michael@0 | 169 | -chorusrdb) |
michael@0 | 170 | os=-chorusrdb |
michael@0 | 171 | basic_machine=$1 |
michael@0 | 172 | ;; |
michael@0 | 173 | -hiux*) |
michael@0 | 174 | os=-hiuxwe2 |
michael@0 | 175 | ;; |
michael@0 | 176 | -sco6) |
michael@0 | 177 | os=-sco5v6 |
michael@0 | 178 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
michael@0 | 179 | ;; |
michael@0 | 180 | -sco5) |
michael@0 | 181 | os=-sco3.2v5 |
michael@0 | 182 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
michael@0 | 183 | ;; |
michael@0 | 184 | -sco4) |
michael@0 | 185 | os=-sco3.2v4 |
michael@0 | 186 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
michael@0 | 187 | ;; |
michael@0 | 188 | -sco3.2.[4-9]*) |
michael@0 | 189 | os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` |
michael@0 | 190 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
michael@0 | 191 | ;; |
michael@0 | 192 | -sco3.2v[4-9]*) |
michael@0 | 193 | # Don't forget version if it is 3.2v4 or newer. |
michael@0 | 194 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
michael@0 | 195 | ;; |
michael@0 | 196 | -sco5v6*) |
michael@0 | 197 | # Don't forget version if it is 3.2v4 or newer. |
michael@0 | 198 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
michael@0 | 199 | ;; |
michael@0 | 200 | -sco*) |
michael@0 | 201 | os=-sco3.2v2 |
michael@0 | 202 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
michael@0 | 203 | ;; |
michael@0 | 204 | -udk*) |
michael@0 | 205 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
michael@0 | 206 | ;; |
michael@0 | 207 | -isc) |
michael@0 | 208 | os=-isc2.2 |
michael@0 | 209 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
michael@0 | 210 | ;; |
michael@0 | 211 | -clix*) |
michael@0 | 212 | basic_machine=clipper-intergraph |
michael@0 | 213 | ;; |
michael@0 | 214 | -isc*) |
michael@0 | 215 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
michael@0 | 216 | ;; |
michael@0 | 217 | -lynx*) |
michael@0 | 218 | os=-lynxos |
michael@0 | 219 | ;; |
michael@0 | 220 | -ptx*) |
michael@0 | 221 | basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` |
michael@0 | 222 | ;; |
michael@0 | 223 | -windowsnt*) |
michael@0 | 224 | os=`echo $os | sed -e 's/windowsnt/winnt/'` |
michael@0 | 225 | ;; |
michael@0 | 226 | -psos*) |
michael@0 | 227 | os=-psos |
michael@0 | 228 | ;; |
michael@0 | 229 | -mint | -mint[0-9]*) |
michael@0 | 230 | basic_machine=m68k-atari |
michael@0 | 231 | os=-mint |
michael@0 | 232 | ;; |
michael@0 | 233 | esac |
michael@0 | 234 | |
michael@0 | 235 | # Decode aliases for certain CPU-COMPANY combinations. |
michael@0 | 236 | case $basic_machine in |
michael@0 | 237 | # Recognize the basic CPU types without company name. |
michael@0 | 238 | # Some are omitted here because they have special meanings below. |
michael@0 | 239 | 1750a | 580 \ |
michael@0 | 240 | | a29k \ |
michael@0 | 241 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
michael@0 | 242 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
michael@0 | 243 | | am33_2.0 \ |
michael@0 | 244 | | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ |
michael@0 | 245 | | bfin \ |
michael@0 | 246 | | c4x | clipper \ |
michael@0 | 247 | | d10v | d30v | dlx | dsp16xx \ |
michael@0 | 248 | | fido | fr30 | frv \ |
michael@0 | 249 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
michael@0 | 250 | | i370 | i860 | i960 | ia64 \ |
michael@0 | 251 | | ip2k | iq2000 \ |
michael@0 | 252 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
michael@0 | 253 | | maxq | mb | microblaze | mcore | mep \ |
michael@0 | 254 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
michael@0 | 255 | | mips16 \ |
michael@0 | 256 | | mips64 | mips64el \ |
michael@0 | 257 | | mips64vr | mips64vrel \ |
michael@0 | 258 | | mips64orion | mips64orionel \ |
michael@0 | 259 | | mips64vr4100 | mips64vr4100el \ |
michael@0 | 260 | | mips64vr4300 | mips64vr4300el \ |
michael@0 | 261 | | mips64vr5000 | mips64vr5000el \ |
michael@0 | 262 | | mips64vr5900 | mips64vr5900el \ |
michael@0 | 263 | | mipsisa32 | mipsisa32el \ |
michael@0 | 264 | | mipsisa32r2 | mipsisa32r2el \ |
michael@0 | 265 | | mipsisa64 | mipsisa64el \ |
michael@0 | 266 | | mipsisa64r2 | mipsisa64r2el \ |
michael@0 | 267 | | mipsisa64sb1 | mipsisa64sb1el \ |
michael@0 | 268 | | mipsisa64sr71k | mipsisa64sr71kel \ |
michael@0 | 269 | | mipstx39 | mipstx39el \ |
michael@0 | 270 | | mn10200 | mn10300 \ |
michael@0 | 271 | | mt \ |
michael@0 | 272 | | msp430 \ |
michael@0 | 273 | | nios | nios2 \ |
michael@0 | 274 | | ns16k | ns32k \ |
michael@0 | 275 | | or32 \ |
michael@0 | 276 | | pdp10 | pdp11 | pj | pjl \ |
michael@0 | 277 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
michael@0 | 278 | | pyramid \ |
michael@0 | 279 | | score \ |
michael@0 | 280 | | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
michael@0 | 281 | | sh64 | sh64le \ |
michael@0 | 282 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
michael@0 | 283 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
michael@0 | 284 | | spu | strongarm \ |
michael@0 | 285 | | tahoe | thumb | tic4x | tic80 | tron \ |
michael@0 | 286 | | v850 | v850e \ |
michael@0 | 287 | | we32k \ |
michael@0 | 288 | | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ |
michael@0 | 289 | | z8k) |
michael@0 | 290 | basic_machine=$basic_machine-unknown |
michael@0 | 291 | ;; |
michael@0 | 292 | m6811 | m68hc11 | m6812 | m68hc12) |
michael@0 | 293 | # Motorola 68HC11/12. |
michael@0 | 294 | basic_machine=$basic_machine-unknown |
michael@0 | 295 | os=-none |
michael@0 | 296 | ;; |
michael@0 | 297 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
michael@0 | 298 | ;; |
michael@0 | 299 | ms1) |
michael@0 | 300 | basic_machine=mt-unknown |
michael@0 | 301 | ;; |
michael@0 | 302 | |
michael@0 | 303 | # We use `pc' rather than `unknown' |
michael@0 | 304 | # because (1) that's what they normally are, and |
michael@0 | 305 | # (2) the word "unknown" tends to confuse beginning users. |
michael@0 | 306 | i*86 | x86_64) |
michael@0 | 307 | basic_machine=$basic_machine-pc |
michael@0 | 308 | ;; |
michael@0 | 309 | # Object if more than one company name word. |
michael@0 | 310 | *-*-*) |
michael@0 | 311 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
michael@0 | 312 | exit 1 |
michael@0 | 313 | ;; |
michael@0 | 314 | # Recognize the basic CPU types with company name. |
michael@0 | 315 | 580-* \ |
michael@0 | 316 | | a29k-* \ |
michael@0 | 317 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
michael@0 | 318 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
michael@0 | 319 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
michael@0 | 320 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
michael@0 | 321 | | avr-* | avr32-* \ |
michael@0 | 322 | | bfin-* | bs2000-* \ |
michael@0 | 323 | | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
michael@0 | 324 | | clipper-* | craynv-* | cydra-* \ |
michael@0 | 325 | | d10v-* | d30v-* | dlx-* \ |
michael@0 | 326 | | elxsi-* \ |
michael@0 | 327 | | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ |
michael@0 | 328 | | h8300-* | h8500-* \ |
michael@0 | 329 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
michael@0 | 330 | | i*86-* | i860-* | i960-* | ia64-* \ |
michael@0 | 331 | | ip2k-* | iq2000-* \ |
michael@0 | 332 | | m32c-* | m32r-* | m32rle-* \ |
michael@0 | 333 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
michael@0 | 334 | | m88110-* | m88k-* | maxq-* | mcore-* \ |
michael@0 | 335 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
michael@0 | 336 | | mips16-* \ |
michael@0 | 337 | | mips64-* | mips64el-* \ |
michael@0 | 338 | | mips64vr-* | mips64vrel-* \ |
michael@0 | 339 | | mips64orion-* | mips64orionel-* \ |
michael@0 | 340 | | mips64vr4100-* | mips64vr4100el-* \ |
michael@0 | 341 | | mips64vr4300-* | mips64vr4300el-* \ |
michael@0 | 342 | | mips64vr5000-* | mips64vr5000el-* \ |
michael@0 | 343 | | mips64vr5900-* | mips64vr5900el-* \ |
michael@0 | 344 | | mipsisa32-* | mipsisa32el-* \ |
michael@0 | 345 | | mipsisa32r2-* | mipsisa32r2el-* \ |
michael@0 | 346 | | mipsisa64-* | mipsisa64el-* \ |
michael@0 | 347 | | mipsisa64r2-* | mipsisa64r2el-* \ |
michael@0 | 348 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
michael@0 | 349 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
michael@0 | 350 | | mipstx39-* | mipstx39el-* \ |
michael@0 | 351 | | mmix-* \ |
michael@0 | 352 | | mt-* \ |
michael@0 | 353 | | msp430-* \ |
michael@0 | 354 | | nios-* | nios2-* \ |
michael@0 | 355 | | none-* | np1-* | ns16k-* | ns32k-* \ |
michael@0 | 356 | | orion-* \ |
michael@0 | 357 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
michael@0 | 358 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
michael@0 | 359 | | pyramid-* \ |
michael@0 | 360 | | romp-* | rs6000-* \ |
michael@0 | 361 | | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
michael@0 | 362 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
michael@0 | 363 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
michael@0 | 364 | | sparclite-* \ |
michael@0 | 365 | | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ |
michael@0 | 366 | | tahoe-* | thumb-* \ |
michael@0 | 367 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
michael@0 | 368 | | tron-* \ |
michael@0 | 369 | | v850-* | v850e-* | vax-* \ |
michael@0 | 370 | | we32k-* \ |
michael@0 | 371 | | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ |
michael@0 | 372 | | xstormy16-* | xtensa-* \ |
michael@0 | 373 | | ymp-* \ |
michael@0 | 374 | | z8k-*) |
michael@0 | 375 | ;; |
michael@0 | 376 | # Recognize the various machine names and aliases which stand |
michael@0 | 377 | # for a CPU type and a company and sometimes even an OS. |
michael@0 | 378 | 386bsd) |
michael@0 | 379 | basic_machine=i386-unknown |
michael@0 | 380 | os=-bsd |
michael@0 | 381 | ;; |
michael@0 | 382 | 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) |
michael@0 | 383 | basic_machine=m68000-att |
michael@0 | 384 | ;; |
michael@0 | 385 | 3b*) |
michael@0 | 386 | basic_machine=we32k-att |
michael@0 | 387 | ;; |
michael@0 | 388 | a29khif) |
michael@0 | 389 | basic_machine=a29k-amd |
michael@0 | 390 | os=-udi |
michael@0 | 391 | ;; |
michael@0 | 392 | abacus) |
michael@0 | 393 | basic_machine=abacus-unknown |
michael@0 | 394 | ;; |
michael@0 | 395 | adobe68k) |
michael@0 | 396 | basic_machine=m68010-adobe |
michael@0 | 397 | os=-scout |
michael@0 | 398 | ;; |
michael@0 | 399 | alliant | fx80) |
michael@0 | 400 | basic_machine=fx80-alliant |
michael@0 | 401 | ;; |
michael@0 | 402 | altos | altos3068) |
michael@0 | 403 | basic_machine=m68k-altos |
michael@0 | 404 | ;; |
michael@0 | 405 | am29k) |
michael@0 | 406 | basic_machine=a29k-none |
michael@0 | 407 | os=-bsd |
michael@0 | 408 | ;; |
michael@0 | 409 | amd64) |
michael@0 | 410 | basic_machine=x86_64-pc |
michael@0 | 411 | ;; |
michael@0 | 412 | amd64-*) |
michael@0 | 413 | basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` |
michael@0 | 414 | ;; |
michael@0 | 415 | amdahl) |
michael@0 | 416 | basic_machine=580-amdahl |
michael@0 | 417 | os=-sysv |
michael@0 | 418 | ;; |
michael@0 | 419 | amiga | amiga-*) |
michael@0 | 420 | basic_machine=m68k-unknown |
michael@0 | 421 | ;; |
michael@0 | 422 | amigaos | amigados) |
michael@0 | 423 | basic_machine=m68k-unknown |
michael@0 | 424 | os=-amigaos |
michael@0 | 425 | ;; |
michael@0 | 426 | amigaunix | amix) |
michael@0 | 427 | basic_machine=m68k-unknown |
michael@0 | 428 | os=-sysv4 |
michael@0 | 429 | ;; |
michael@0 | 430 | apollo68) |
michael@0 | 431 | basic_machine=m68k-apollo |
michael@0 | 432 | os=-sysv |
michael@0 | 433 | ;; |
michael@0 | 434 | apollo68bsd) |
michael@0 | 435 | basic_machine=m68k-apollo |
michael@0 | 436 | os=-bsd |
michael@0 | 437 | ;; |
michael@0 | 438 | aux) |
michael@0 | 439 | basic_machine=m68k-apple |
michael@0 | 440 | os=-aux |
michael@0 | 441 | ;; |
michael@0 | 442 | balance) |
michael@0 | 443 | basic_machine=ns32k-sequent |
michael@0 | 444 | os=-dynix |
michael@0 | 445 | ;; |
michael@0 | 446 | c90) |
michael@0 | 447 | basic_machine=c90-cray |
michael@0 | 448 | os=-unicos |
michael@0 | 449 | ;; |
michael@0 | 450 | convex-c1) |
michael@0 | 451 | basic_machine=c1-convex |
michael@0 | 452 | os=-bsd |
michael@0 | 453 | ;; |
michael@0 | 454 | convex-c2) |
michael@0 | 455 | basic_machine=c2-convex |
michael@0 | 456 | os=-bsd |
michael@0 | 457 | ;; |
michael@0 | 458 | convex-c32) |
michael@0 | 459 | basic_machine=c32-convex |
michael@0 | 460 | os=-bsd |
michael@0 | 461 | ;; |
michael@0 | 462 | convex-c34) |
michael@0 | 463 | basic_machine=c34-convex |
michael@0 | 464 | os=-bsd |
michael@0 | 465 | ;; |
michael@0 | 466 | convex-c38) |
michael@0 | 467 | basic_machine=c38-convex |
michael@0 | 468 | os=-bsd |
michael@0 | 469 | ;; |
michael@0 | 470 | cray | j90) |
michael@0 | 471 | basic_machine=j90-cray |
michael@0 | 472 | os=-unicos |
michael@0 | 473 | ;; |
michael@0 | 474 | craynv) |
michael@0 | 475 | basic_machine=craynv-cray |
michael@0 | 476 | os=-unicosmp |
michael@0 | 477 | ;; |
michael@0 | 478 | cr16) |
michael@0 | 479 | basic_machine=cr16-unknown |
michael@0 | 480 | os=-elf |
michael@0 | 481 | ;; |
michael@0 | 482 | crds | unos) |
michael@0 | 483 | basic_machine=m68k-crds |
michael@0 | 484 | ;; |
michael@0 | 485 | crisv32 | crisv32-* | etraxfs*) |
michael@0 | 486 | basic_machine=crisv32-axis |
michael@0 | 487 | ;; |
michael@0 | 488 | cris | cris-* | etrax*) |
michael@0 | 489 | basic_machine=cris-axis |
michael@0 | 490 | ;; |
michael@0 | 491 | crx) |
michael@0 | 492 | basic_machine=crx-unknown |
michael@0 | 493 | os=-elf |
michael@0 | 494 | ;; |
michael@0 | 495 | da30 | da30-*) |
michael@0 | 496 | basic_machine=m68k-da30 |
michael@0 | 497 | ;; |
michael@0 | 498 | decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) |
michael@0 | 499 | basic_machine=mips-dec |
michael@0 | 500 | ;; |
michael@0 | 501 | decsystem10* | dec10*) |
michael@0 | 502 | basic_machine=pdp10-dec |
michael@0 | 503 | os=-tops10 |
michael@0 | 504 | ;; |
michael@0 | 505 | decsystem20* | dec20*) |
michael@0 | 506 | basic_machine=pdp10-dec |
michael@0 | 507 | os=-tops20 |
michael@0 | 508 | ;; |
michael@0 | 509 | delta | 3300 | motorola-3300 | motorola-delta \ |
michael@0 | 510 | | 3300-motorola | delta-motorola) |
michael@0 | 511 | basic_machine=m68k-motorola |
michael@0 | 512 | ;; |
michael@0 | 513 | delta88) |
michael@0 | 514 | basic_machine=m88k-motorola |
michael@0 | 515 | os=-sysv3 |
michael@0 | 516 | ;; |
michael@0 | 517 | djgpp) |
michael@0 | 518 | basic_machine=i586-pc |
michael@0 | 519 | os=-msdosdjgpp |
michael@0 | 520 | ;; |
michael@0 | 521 | dpx20 | dpx20-*) |
michael@0 | 522 | basic_machine=rs6000-bull |
michael@0 | 523 | os=-bosx |
michael@0 | 524 | ;; |
michael@0 | 525 | dpx2* | dpx2*-bull) |
michael@0 | 526 | basic_machine=m68k-bull |
michael@0 | 527 | os=-sysv3 |
michael@0 | 528 | ;; |
michael@0 | 529 | ebmon29k) |
michael@0 | 530 | basic_machine=a29k-amd |
michael@0 | 531 | os=-ebmon |
michael@0 | 532 | ;; |
michael@0 | 533 | elxsi) |
michael@0 | 534 | basic_machine=elxsi-elxsi |
michael@0 | 535 | os=-bsd |
michael@0 | 536 | ;; |
michael@0 | 537 | encore | umax | mmax) |
michael@0 | 538 | basic_machine=ns32k-encore |
michael@0 | 539 | ;; |
michael@0 | 540 | es1800 | OSE68k | ose68k | ose | OSE) |
michael@0 | 541 | basic_machine=m68k-ericsson |
michael@0 | 542 | os=-ose |
michael@0 | 543 | ;; |
michael@0 | 544 | fx2800) |
michael@0 | 545 | basic_machine=i860-alliant |
michael@0 | 546 | ;; |
michael@0 | 547 | genix) |
michael@0 | 548 | basic_machine=ns32k-ns |
michael@0 | 549 | ;; |
michael@0 | 550 | gmicro) |
michael@0 | 551 | basic_machine=tron-gmicro |
michael@0 | 552 | os=-sysv |
michael@0 | 553 | ;; |
michael@0 | 554 | go32) |
michael@0 | 555 | basic_machine=i386-pc |
michael@0 | 556 | os=-go32 |
michael@0 | 557 | ;; |
michael@0 | 558 | h3050r* | hiux*) |
michael@0 | 559 | basic_machine=hppa1.1-hitachi |
michael@0 | 560 | os=-hiuxwe2 |
michael@0 | 561 | ;; |
michael@0 | 562 | h8300hms) |
michael@0 | 563 | basic_machine=h8300-hitachi |
michael@0 | 564 | os=-hms |
michael@0 | 565 | ;; |
michael@0 | 566 | h8300xray) |
michael@0 | 567 | basic_machine=h8300-hitachi |
michael@0 | 568 | os=-xray |
michael@0 | 569 | ;; |
michael@0 | 570 | h8500hms) |
michael@0 | 571 | basic_machine=h8500-hitachi |
michael@0 | 572 | os=-hms |
michael@0 | 573 | ;; |
michael@0 | 574 | harris) |
michael@0 | 575 | basic_machine=m88k-harris |
michael@0 | 576 | os=-sysv3 |
michael@0 | 577 | ;; |
michael@0 | 578 | hp300-*) |
michael@0 | 579 | basic_machine=m68k-hp |
michael@0 | 580 | ;; |
michael@0 | 581 | hp300bsd) |
michael@0 | 582 | basic_machine=m68k-hp |
michael@0 | 583 | os=-bsd |
michael@0 | 584 | ;; |
michael@0 | 585 | hp300hpux) |
michael@0 | 586 | basic_machine=m68k-hp |
michael@0 | 587 | os=-hpux |
michael@0 | 588 | ;; |
michael@0 | 589 | hp3k9[0-9][0-9] | hp9[0-9][0-9]) |
michael@0 | 590 | basic_machine=hppa1.0-hp |
michael@0 | 591 | ;; |
michael@0 | 592 | hp9k2[0-9][0-9] | hp9k31[0-9]) |
michael@0 | 593 | basic_machine=m68000-hp |
michael@0 | 594 | ;; |
michael@0 | 595 | hp9k3[2-9][0-9]) |
michael@0 | 596 | basic_machine=m68k-hp |
michael@0 | 597 | ;; |
michael@0 | 598 | hp9k6[0-9][0-9] | hp6[0-9][0-9]) |
michael@0 | 599 | basic_machine=hppa1.0-hp |
michael@0 | 600 | ;; |
michael@0 | 601 | hp9k7[0-79][0-9] | hp7[0-79][0-9]) |
michael@0 | 602 | basic_machine=hppa1.1-hp |
michael@0 | 603 | ;; |
michael@0 | 604 | hp9k78[0-9] | hp78[0-9]) |
michael@0 | 605 | # FIXME: really hppa2.0-hp |
michael@0 | 606 | basic_machine=hppa1.1-hp |
michael@0 | 607 | ;; |
michael@0 | 608 | hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) |
michael@0 | 609 | # FIXME: really hppa2.0-hp |
michael@0 | 610 | basic_machine=hppa1.1-hp |
michael@0 | 611 | ;; |
michael@0 | 612 | hp9k8[0-9][13679] | hp8[0-9][13679]) |
michael@0 | 613 | basic_machine=hppa1.1-hp |
michael@0 | 614 | ;; |
michael@0 | 615 | hp9k8[0-9][0-9] | hp8[0-9][0-9]) |
michael@0 | 616 | basic_machine=hppa1.0-hp |
michael@0 | 617 | ;; |
michael@0 | 618 | hppa-next) |
michael@0 | 619 | os=-nextstep3 |
michael@0 | 620 | ;; |
michael@0 | 621 | hppaosf) |
michael@0 | 622 | basic_machine=hppa1.1-hp |
michael@0 | 623 | os=-osf |
michael@0 | 624 | ;; |
michael@0 | 625 | hppro) |
michael@0 | 626 | basic_machine=hppa1.1-hp |
michael@0 | 627 | os=-proelf |
michael@0 | 628 | ;; |
michael@0 | 629 | i370-ibm* | ibm*) |
michael@0 | 630 | basic_machine=i370-ibm |
michael@0 | 631 | ;; |
michael@0 | 632 | # I'm not sure what "Sysv32" means. Should this be sysv3.2? |
michael@0 | 633 | i*86v32) |
michael@0 | 634 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
michael@0 | 635 | os=-sysv32 |
michael@0 | 636 | ;; |
michael@0 | 637 | i*86v4*) |
michael@0 | 638 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
michael@0 | 639 | os=-sysv4 |
michael@0 | 640 | ;; |
michael@0 | 641 | i*86v) |
michael@0 | 642 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
michael@0 | 643 | os=-sysv |
michael@0 | 644 | ;; |
michael@0 | 645 | i*86sol2) |
michael@0 | 646 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
michael@0 | 647 | os=-solaris2 |
michael@0 | 648 | ;; |
michael@0 | 649 | i386mach) |
michael@0 | 650 | basic_machine=i386-mach |
michael@0 | 651 | os=-mach |
michael@0 | 652 | ;; |
michael@0 | 653 | i386-vsta | vsta) |
michael@0 | 654 | basic_machine=i386-unknown |
michael@0 | 655 | os=-vsta |
michael@0 | 656 | ;; |
michael@0 | 657 | iris | iris4d) |
michael@0 | 658 | basic_machine=mips-sgi |
michael@0 | 659 | case $os in |
michael@0 | 660 | -irix*) |
michael@0 | 661 | ;; |
michael@0 | 662 | *) |
michael@0 | 663 | os=-irix4 |
michael@0 | 664 | ;; |
michael@0 | 665 | esac |
michael@0 | 666 | ;; |
michael@0 | 667 | isi68 | isi) |
michael@0 | 668 | basic_machine=m68k-isi |
michael@0 | 669 | os=-sysv |
michael@0 | 670 | ;; |
michael@0 | 671 | m88k-omron*) |
michael@0 | 672 | basic_machine=m88k-omron |
michael@0 | 673 | ;; |
michael@0 | 674 | magnum | m3230) |
michael@0 | 675 | basic_machine=mips-mips |
michael@0 | 676 | os=-sysv |
michael@0 | 677 | ;; |
michael@0 | 678 | merlin) |
michael@0 | 679 | basic_machine=ns32k-utek |
michael@0 | 680 | os=-sysv |
michael@0 | 681 | ;; |
michael@0 | 682 | mingw32) |
michael@0 | 683 | basic_machine=i386-pc |
michael@0 | 684 | os=-mingw32 |
michael@0 | 685 | ;; |
michael@0 | 686 | mingw32ce) |
michael@0 | 687 | basic_machine=arm-unknown |
michael@0 | 688 | os=-mingw32ce |
michael@0 | 689 | ;; |
michael@0 | 690 | miniframe) |
michael@0 | 691 | basic_machine=m68000-convergent |
michael@0 | 692 | ;; |
michael@0 | 693 | *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) |
michael@0 | 694 | basic_machine=m68k-atari |
michael@0 | 695 | os=-mint |
michael@0 | 696 | ;; |
michael@0 | 697 | mips3*-*) |
michael@0 | 698 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` |
michael@0 | 699 | ;; |
michael@0 | 700 | mips3*) |
michael@0 | 701 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown |
michael@0 | 702 | ;; |
michael@0 | 703 | monitor) |
michael@0 | 704 | basic_machine=m68k-rom68k |
michael@0 | 705 | os=-coff |
michael@0 | 706 | ;; |
michael@0 | 707 | morphos) |
michael@0 | 708 | basic_machine=powerpc-unknown |
michael@0 | 709 | os=-morphos |
michael@0 | 710 | ;; |
michael@0 | 711 | msdos) |
michael@0 | 712 | basic_machine=i386-pc |
michael@0 | 713 | os=-msdos |
michael@0 | 714 | ;; |
michael@0 | 715 | ms1-*) |
michael@0 | 716 | basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` |
michael@0 | 717 | ;; |
michael@0 | 718 | mvs) |
michael@0 | 719 | basic_machine=i370-ibm |
michael@0 | 720 | os=-mvs |
michael@0 | 721 | ;; |
michael@0 | 722 | ncr3000) |
michael@0 | 723 | basic_machine=i486-ncr |
michael@0 | 724 | os=-sysv4 |
michael@0 | 725 | ;; |
michael@0 | 726 | netbsd386) |
michael@0 | 727 | basic_machine=i386-unknown |
michael@0 | 728 | os=-netbsd |
michael@0 | 729 | ;; |
michael@0 | 730 | netwinder) |
michael@0 | 731 | basic_machine=armv4l-rebel |
michael@0 | 732 | os=-linux |
michael@0 | 733 | ;; |
michael@0 | 734 | news | news700 | news800 | news900) |
michael@0 | 735 | basic_machine=m68k-sony |
michael@0 | 736 | os=-newsos |
michael@0 | 737 | ;; |
michael@0 | 738 | news1000) |
michael@0 | 739 | basic_machine=m68030-sony |
michael@0 | 740 | os=-newsos |
michael@0 | 741 | ;; |
michael@0 | 742 | news-3600 | risc-news) |
michael@0 | 743 | basic_machine=mips-sony |
michael@0 | 744 | os=-newsos |
michael@0 | 745 | ;; |
michael@0 | 746 | necv70) |
michael@0 | 747 | basic_machine=v70-nec |
michael@0 | 748 | os=-sysv |
michael@0 | 749 | ;; |
michael@0 | 750 | next | m*-next ) |
michael@0 | 751 | basic_machine=m68k-next |
michael@0 | 752 | case $os in |
michael@0 | 753 | -nextstep* ) |
michael@0 | 754 | ;; |
michael@0 | 755 | -ns2*) |
michael@0 | 756 | os=-nextstep2 |
michael@0 | 757 | ;; |
michael@0 | 758 | *) |
michael@0 | 759 | os=-nextstep3 |
michael@0 | 760 | ;; |
michael@0 | 761 | esac |
michael@0 | 762 | ;; |
michael@0 | 763 | nh3000) |
michael@0 | 764 | basic_machine=m68k-harris |
michael@0 | 765 | os=-cxux |
michael@0 | 766 | ;; |
michael@0 | 767 | nh[45]000) |
michael@0 | 768 | basic_machine=m88k-harris |
michael@0 | 769 | os=-cxux |
michael@0 | 770 | ;; |
michael@0 | 771 | nindy960) |
michael@0 | 772 | basic_machine=i960-intel |
michael@0 | 773 | os=-nindy |
michael@0 | 774 | ;; |
michael@0 | 775 | mon960) |
michael@0 | 776 | basic_machine=i960-intel |
michael@0 | 777 | os=-mon960 |
michael@0 | 778 | ;; |
michael@0 | 779 | nonstopux) |
michael@0 | 780 | basic_machine=mips-compaq |
michael@0 | 781 | os=-nonstopux |
michael@0 | 782 | ;; |
michael@0 | 783 | np1) |
michael@0 | 784 | basic_machine=np1-gould |
michael@0 | 785 | ;; |
michael@0 | 786 | nsr-tandem) |
michael@0 | 787 | basic_machine=nsr-tandem |
michael@0 | 788 | ;; |
michael@0 | 789 | op50n-* | op60c-*) |
michael@0 | 790 | basic_machine=hppa1.1-oki |
michael@0 | 791 | os=-proelf |
michael@0 | 792 | ;; |
michael@0 | 793 | openrisc | openrisc-*) |
michael@0 | 794 | basic_machine=or32-unknown |
michael@0 | 795 | ;; |
michael@0 | 796 | os400) |
michael@0 | 797 | basic_machine=powerpc-ibm |
michael@0 | 798 | os=-os400 |
michael@0 | 799 | ;; |
michael@0 | 800 | OSE68000 | ose68000) |
michael@0 | 801 | basic_machine=m68000-ericsson |
michael@0 | 802 | os=-ose |
michael@0 | 803 | ;; |
michael@0 | 804 | os68k) |
michael@0 | 805 | basic_machine=m68k-none |
michael@0 | 806 | os=-os68k |
michael@0 | 807 | ;; |
michael@0 | 808 | pa-hitachi) |
michael@0 | 809 | basic_machine=hppa1.1-hitachi |
michael@0 | 810 | os=-hiuxwe2 |
michael@0 | 811 | ;; |
michael@0 | 812 | paragon) |
michael@0 | 813 | basic_machine=i860-intel |
michael@0 | 814 | os=-osf |
michael@0 | 815 | ;; |
michael@0 | 816 | pbd) |
michael@0 | 817 | basic_machine=sparc-tti |
michael@0 | 818 | ;; |
michael@0 | 819 | pbb) |
michael@0 | 820 | basic_machine=m68k-tti |
michael@0 | 821 | ;; |
michael@0 | 822 | pc532 | pc532-*) |
michael@0 | 823 | basic_machine=ns32k-pc532 |
michael@0 | 824 | ;; |
michael@0 | 825 | pc98) |
michael@0 | 826 | basic_machine=i386-pc |
michael@0 | 827 | ;; |
michael@0 | 828 | pc98-*) |
michael@0 | 829 | basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` |
michael@0 | 830 | ;; |
michael@0 | 831 | pentium | p5 | k5 | k6 | nexgen | viac3) |
michael@0 | 832 | basic_machine=i586-pc |
michael@0 | 833 | ;; |
michael@0 | 834 | pentiumpro | p6 | 6x86 | athlon | athlon_*) |
michael@0 | 835 | basic_machine=i686-pc |
michael@0 | 836 | ;; |
michael@0 | 837 | pentiumii | pentium2 | pentiumiii | pentium3) |
michael@0 | 838 | basic_machine=i686-pc |
michael@0 | 839 | ;; |
michael@0 | 840 | pentium4) |
michael@0 | 841 | basic_machine=i786-pc |
michael@0 | 842 | ;; |
michael@0 | 843 | pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) |
michael@0 | 844 | basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
michael@0 | 845 | ;; |
michael@0 | 846 | pentiumpro-* | p6-* | 6x86-* | athlon-*) |
michael@0 | 847 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
michael@0 | 848 | ;; |
michael@0 | 849 | pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) |
michael@0 | 850 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
michael@0 | 851 | ;; |
michael@0 | 852 | pentium4-*) |
michael@0 | 853 | basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` |
michael@0 | 854 | ;; |
michael@0 | 855 | pn) |
michael@0 | 856 | basic_machine=pn-gould |
michael@0 | 857 | ;; |
michael@0 | 858 | power) basic_machine=power-ibm |
michael@0 | 859 | ;; |
michael@0 | 860 | ppc) basic_machine=powerpc-unknown |
michael@0 | 861 | ;; |
michael@0 | 862 | ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
michael@0 | 863 | ;; |
michael@0 | 864 | ppcle | powerpclittle | ppc-le | powerpc-little) |
michael@0 | 865 | basic_machine=powerpcle-unknown |
michael@0 | 866 | ;; |
michael@0 | 867 | ppcle-* | powerpclittle-*) |
michael@0 | 868 | basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` |
michael@0 | 869 | ;; |
michael@0 | 870 | ppc64) basic_machine=powerpc64-unknown |
michael@0 | 871 | ;; |
michael@0 | 872 | ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` |
michael@0 | 873 | ;; |
michael@0 | 874 | ppc64le | powerpc64little | ppc64-le | powerpc64-little) |
michael@0 | 875 | basic_machine=powerpc64le-unknown |
michael@0 | 876 | ;; |
michael@0 | 877 | ppc64le-* | powerpc64little-*) |
michael@0 | 878 | basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` |
michael@0 | 879 | ;; |
michael@0 | 880 | ps2) |
michael@0 | 881 | basic_machine=i386-ibm |
michael@0 | 882 | ;; |
michael@0 | 883 | pw32) |
michael@0 | 884 | basic_machine=i586-unknown |
michael@0 | 885 | os=-pw32 |
michael@0 | 886 | ;; |
michael@0 | 887 | rdos) |
michael@0 | 888 | basic_machine=i386-pc |
michael@0 | 889 | os=-rdos |
michael@0 | 890 | ;; |
michael@0 | 891 | rom68k) |
michael@0 | 892 | basic_machine=m68k-rom68k |
michael@0 | 893 | os=-coff |
michael@0 | 894 | ;; |
michael@0 | 895 | rm[46]00) |
michael@0 | 896 | basic_machine=mips-siemens |
michael@0 | 897 | ;; |
michael@0 | 898 | rtpc | rtpc-*) |
michael@0 | 899 | basic_machine=romp-ibm |
michael@0 | 900 | ;; |
michael@0 | 901 | s390 | s390-*) |
michael@0 | 902 | basic_machine=s390-ibm |
michael@0 | 903 | ;; |
michael@0 | 904 | s390x | s390x-*) |
michael@0 | 905 | basic_machine=s390x-ibm |
michael@0 | 906 | ;; |
michael@0 | 907 | sa29200) |
michael@0 | 908 | basic_machine=a29k-amd |
michael@0 | 909 | os=-udi |
michael@0 | 910 | ;; |
michael@0 | 911 | sb1) |
michael@0 | 912 | basic_machine=mipsisa64sb1-unknown |
michael@0 | 913 | ;; |
michael@0 | 914 | sb1el) |
michael@0 | 915 | basic_machine=mipsisa64sb1el-unknown |
michael@0 | 916 | ;; |
michael@0 | 917 | sde) |
michael@0 | 918 | basic_machine=mipsisa32-sde |
michael@0 | 919 | os=-elf |
michael@0 | 920 | ;; |
michael@0 | 921 | sei) |
michael@0 | 922 | basic_machine=mips-sei |
michael@0 | 923 | os=-seiux |
michael@0 | 924 | ;; |
michael@0 | 925 | sequent) |
michael@0 | 926 | basic_machine=i386-sequent |
michael@0 | 927 | ;; |
michael@0 | 928 | sh) |
michael@0 | 929 | basic_machine=sh-hitachi |
michael@0 | 930 | os=-hms |
michael@0 | 931 | ;; |
michael@0 | 932 | sh5el) |
michael@0 | 933 | basic_machine=sh5le-unknown |
michael@0 | 934 | ;; |
michael@0 | 935 | sh64) |
michael@0 | 936 | basic_machine=sh64-unknown |
michael@0 | 937 | ;; |
michael@0 | 938 | sparclite-wrs | simso-wrs) |
michael@0 | 939 | basic_machine=sparclite-wrs |
michael@0 | 940 | os=-vxworks |
michael@0 | 941 | ;; |
michael@0 | 942 | sps7) |
michael@0 | 943 | basic_machine=m68k-bull |
michael@0 | 944 | os=-sysv2 |
michael@0 | 945 | ;; |
michael@0 | 946 | spur) |
michael@0 | 947 | basic_machine=spur-unknown |
michael@0 | 948 | ;; |
michael@0 | 949 | st2000) |
michael@0 | 950 | basic_machine=m68k-tandem |
michael@0 | 951 | ;; |
michael@0 | 952 | stratus) |
michael@0 | 953 | basic_machine=i860-stratus |
michael@0 | 954 | os=-sysv4 |
michael@0 | 955 | ;; |
michael@0 | 956 | sun2) |
michael@0 | 957 | basic_machine=m68000-sun |
michael@0 | 958 | ;; |
michael@0 | 959 | sun2os3) |
michael@0 | 960 | basic_machine=m68000-sun |
michael@0 | 961 | os=-sunos3 |
michael@0 | 962 | ;; |
michael@0 | 963 | sun2os4) |
michael@0 | 964 | basic_machine=m68000-sun |
michael@0 | 965 | os=-sunos4 |
michael@0 | 966 | ;; |
michael@0 | 967 | sun3os3) |
michael@0 | 968 | basic_machine=m68k-sun |
michael@0 | 969 | os=-sunos3 |
michael@0 | 970 | ;; |
michael@0 | 971 | sun3os4) |
michael@0 | 972 | basic_machine=m68k-sun |
michael@0 | 973 | os=-sunos4 |
michael@0 | 974 | ;; |
michael@0 | 975 | sun4os3) |
michael@0 | 976 | basic_machine=sparc-sun |
michael@0 | 977 | os=-sunos3 |
michael@0 | 978 | ;; |
michael@0 | 979 | sun4os4) |
michael@0 | 980 | basic_machine=sparc-sun |
michael@0 | 981 | os=-sunos4 |
michael@0 | 982 | ;; |
michael@0 | 983 | sun4sol2) |
michael@0 | 984 | basic_machine=sparc-sun |
michael@0 | 985 | os=-solaris2 |
michael@0 | 986 | ;; |
michael@0 | 987 | sun3 | sun3-*) |
michael@0 | 988 | basic_machine=m68k-sun |
michael@0 | 989 | ;; |
michael@0 | 990 | sun4) |
michael@0 | 991 | basic_machine=sparc-sun |
michael@0 | 992 | ;; |
michael@0 | 993 | sun386 | sun386i | roadrunner) |
michael@0 | 994 | basic_machine=i386-sun |
michael@0 | 995 | ;; |
michael@0 | 996 | sv1) |
michael@0 | 997 | basic_machine=sv1-cray |
michael@0 | 998 | os=-unicos |
michael@0 | 999 | ;; |
michael@0 | 1000 | symmetry) |
michael@0 | 1001 | basic_machine=i386-sequent |
michael@0 | 1002 | os=-dynix |
michael@0 | 1003 | ;; |
michael@0 | 1004 | t3e) |
michael@0 | 1005 | basic_machine=alphaev5-cray |
michael@0 | 1006 | os=-unicos |
michael@0 | 1007 | ;; |
michael@0 | 1008 | t90) |
michael@0 | 1009 | basic_machine=t90-cray |
michael@0 | 1010 | os=-unicos |
michael@0 | 1011 | ;; |
michael@0 | 1012 | tic54x | c54x*) |
michael@0 | 1013 | basic_machine=tic54x-unknown |
michael@0 | 1014 | os=-coff |
michael@0 | 1015 | ;; |
michael@0 | 1016 | tic55x | c55x*) |
michael@0 | 1017 | basic_machine=tic55x-unknown |
michael@0 | 1018 | os=-coff |
michael@0 | 1019 | ;; |
michael@0 | 1020 | tic6x | c6x*) |
michael@0 | 1021 | basic_machine=tic6x-unknown |
michael@0 | 1022 | os=-coff |
michael@0 | 1023 | ;; |
michael@0 | 1024 | tx39) |
michael@0 | 1025 | basic_machine=mipstx39-unknown |
michael@0 | 1026 | ;; |
michael@0 | 1027 | tx39el) |
michael@0 | 1028 | basic_machine=mipstx39el-unknown |
michael@0 | 1029 | ;; |
michael@0 | 1030 | toad1) |
michael@0 | 1031 | basic_machine=pdp10-xkl |
michael@0 | 1032 | os=-tops20 |
michael@0 | 1033 | ;; |
michael@0 | 1034 | tower | tower-32) |
michael@0 | 1035 | basic_machine=m68k-ncr |
michael@0 | 1036 | ;; |
michael@0 | 1037 | tpf) |
michael@0 | 1038 | basic_machine=s390x-ibm |
michael@0 | 1039 | os=-tpf |
michael@0 | 1040 | ;; |
michael@0 | 1041 | udi29k) |
michael@0 | 1042 | basic_machine=a29k-amd |
michael@0 | 1043 | os=-udi |
michael@0 | 1044 | ;; |
michael@0 | 1045 | ultra3) |
michael@0 | 1046 | basic_machine=a29k-nyu |
michael@0 | 1047 | os=-sym1 |
michael@0 | 1048 | ;; |
michael@0 | 1049 | v810 | necv810) |
michael@0 | 1050 | basic_machine=v810-nec |
michael@0 | 1051 | os=-none |
michael@0 | 1052 | ;; |
michael@0 | 1053 | vaxv) |
michael@0 | 1054 | basic_machine=vax-dec |
michael@0 | 1055 | os=-sysv |
michael@0 | 1056 | ;; |
michael@0 | 1057 | vms) |
michael@0 | 1058 | basic_machine=vax-dec |
michael@0 | 1059 | os=-vms |
michael@0 | 1060 | ;; |
michael@0 | 1061 | vpp*|vx|vx-*) |
michael@0 | 1062 | basic_machine=f301-fujitsu |
michael@0 | 1063 | ;; |
michael@0 | 1064 | vxworks960) |
michael@0 | 1065 | basic_machine=i960-wrs |
michael@0 | 1066 | os=-vxworks |
michael@0 | 1067 | ;; |
michael@0 | 1068 | vxworks68) |
michael@0 | 1069 | basic_machine=m68k-wrs |
michael@0 | 1070 | os=-vxworks |
michael@0 | 1071 | ;; |
michael@0 | 1072 | vxworks29k) |
michael@0 | 1073 | basic_machine=a29k-wrs |
michael@0 | 1074 | os=-vxworks |
michael@0 | 1075 | ;; |
michael@0 | 1076 | w65*) |
michael@0 | 1077 | basic_machine=w65-wdc |
michael@0 | 1078 | os=-none |
michael@0 | 1079 | ;; |
michael@0 | 1080 | w89k-*) |
michael@0 | 1081 | basic_machine=hppa1.1-winbond |
michael@0 | 1082 | os=-proelf |
michael@0 | 1083 | ;; |
michael@0 | 1084 | xbox) |
michael@0 | 1085 | basic_machine=i686-pc |
michael@0 | 1086 | os=-mingw32 |
michael@0 | 1087 | ;; |
michael@0 | 1088 | xps | xps100) |
michael@0 | 1089 | basic_machine=xps100-honeywell |
michael@0 | 1090 | ;; |
michael@0 | 1091 | ymp) |
michael@0 | 1092 | basic_machine=ymp-cray |
michael@0 | 1093 | os=-unicos |
michael@0 | 1094 | ;; |
michael@0 | 1095 | z8k-*-coff) |
michael@0 | 1096 | basic_machine=z8k-unknown |
michael@0 | 1097 | os=-sim |
michael@0 | 1098 | ;; |
michael@0 | 1099 | none) |
michael@0 | 1100 | basic_machine=none-none |
michael@0 | 1101 | os=-none |
michael@0 | 1102 | ;; |
michael@0 | 1103 | |
michael@0 | 1104 | # Here we handle the default manufacturer of certain CPU types. It is in |
michael@0 | 1105 | # some cases the only manufacturer, in others, it is the most popular. |
michael@0 | 1106 | w89k) |
michael@0 | 1107 | basic_machine=hppa1.1-winbond |
michael@0 | 1108 | ;; |
michael@0 | 1109 | op50n) |
michael@0 | 1110 | basic_machine=hppa1.1-oki |
michael@0 | 1111 | ;; |
michael@0 | 1112 | op60c) |
michael@0 | 1113 | basic_machine=hppa1.1-oki |
michael@0 | 1114 | ;; |
michael@0 | 1115 | romp) |
michael@0 | 1116 | basic_machine=romp-ibm |
michael@0 | 1117 | ;; |
michael@0 | 1118 | mmix) |
michael@0 | 1119 | basic_machine=mmix-knuth |
michael@0 | 1120 | ;; |
michael@0 | 1121 | rs6000) |
michael@0 | 1122 | basic_machine=rs6000-ibm |
michael@0 | 1123 | ;; |
michael@0 | 1124 | vax) |
michael@0 | 1125 | basic_machine=vax-dec |
michael@0 | 1126 | ;; |
michael@0 | 1127 | pdp10) |
michael@0 | 1128 | # there are many clones, so DEC is not a safe bet |
michael@0 | 1129 | basic_machine=pdp10-unknown |
michael@0 | 1130 | ;; |
michael@0 | 1131 | pdp11) |
michael@0 | 1132 | basic_machine=pdp11-dec |
michael@0 | 1133 | ;; |
michael@0 | 1134 | we32k) |
michael@0 | 1135 | basic_machine=we32k-att |
michael@0 | 1136 | ;; |
michael@0 | 1137 | sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) |
michael@0 | 1138 | basic_machine=sh-unknown |
michael@0 | 1139 | ;; |
michael@0 | 1140 | sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) |
michael@0 | 1141 | basic_machine=sparc-sun |
michael@0 | 1142 | ;; |
michael@0 | 1143 | cydra) |
michael@0 | 1144 | basic_machine=cydra-cydrome |
michael@0 | 1145 | ;; |
michael@0 | 1146 | orion) |
michael@0 | 1147 | basic_machine=orion-highlevel |
michael@0 | 1148 | ;; |
michael@0 | 1149 | orion105) |
michael@0 | 1150 | basic_machine=clipper-highlevel |
michael@0 | 1151 | ;; |
michael@0 | 1152 | mac | mpw | mac-mpw) |
michael@0 | 1153 | basic_machine=m68k-apple |
michael@0 | 1154 | ;; |
michael@0 | 1155 | pmac | pmac-mpw) |
michael@0 | 1156 | basic_machine=powerpc-apple |
michael@0 | 1157 | ;; |
michael@0 | 1158 | *-unknown) |
michael@0 | 1159 | # Make sure to match an already-canonicalized machine name. |
michael@0 | 1160 | ;; |
michael@0 | 1161 | *) |
michael@0 | 1162 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
michael@0 | 1163 | exit 1 |
michael@0 | 1164 | ;; |
michael@0 | 1165 | esac |
michael@0 | 1166 | |
michael@0 | 1167 | # Here we canonicalize certain aliases for manufacturers. |
michael@0 | 1168 | case $basic_machine in |
michael@0 | 1169 | *-digital*) |
michael@0 | 1170 | basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` |
michael@0 | 1171 | ;; |
michael@0 | 1172 | *-commodore*) |
michael@0 | 1173 | basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` |
michael@0 | 1174 | ;; |
michael@0 | 1175 | *) |
michael@0 | 1176 | ;; |
michael@0 | 1177 | esac |
michael@0 | 1178 | |
michael@0 | 1179 | # Decode manufacturer-specific aliases for certain operating systems. |
michael@0 | 1180 | |
michael@0 | 1181 | if [ x"$os" != x"" ] |
michael@0 | 1182 | then |
michael@0 | 1183 | case $os in |
michael@0 | 1184 | # First match some system type aliases |
michael@0 | 1185 | # that might get confused with valid system types. |
michael@0 | 1186 | # -solaris* is a basic system type, with this one exception. |
michael@0 | 1187 | -solaris1 | -solaris1.*) |
michael@0 | 1188 | os=`echo $os | sed -e 's|solaris1|sunos4|'` |
michael@0 | 1189 | ;; |
michael@0 | 1190 | -solaris) |
michael@0 | 1191 | os=-solaris2 |
michael@0 | 1192 | ;; |
michael@0 | 1193 | -svr4*) |
michael@0 | 1194 | os=-sysv4 |
michael@0 | 1195 | ;; |
michael@0 | 1196 | -unixware*) |
michael@0 | 1197 | os=-sysv4.2uw |
michael@0 | 1198 | ;; |
michael@0 | 1199 | -gnu/linux*) |
michael@0 | 1200 | os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` |
michael@0 | 1201 | ;; |
michael@0 | 1202 | # First accept the basic system types. |
michael@0 | 1203 | # The portable systems comes first. |
michael@0 | 1204 | # Each alternative MUST END IN A *, to match a version number. |
michael@0 | 1205 | # -sysv* is not here because it comes later, after sysvr4. |
michael@0 | 1206 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
michael@0 | 1207 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ |
michael@0 | 1208 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
michael@0 | 1209 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
michael@0 | 1210 | | -aos* \ |
michael@0 | 1211 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
michael@0 | 1212 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
michael@0 | 1213 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
michael@0 | 1214 | | -openbsd* | -solidbsd* \ |
michael@0 | 1215 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
michael@0 | 1216 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
michael@0 | 1217 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
michael@0 | 1218 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
michael@0 | 1219 | | -chorusos* | -chorusrdb* \ |
michael@0 | 1220 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
michael@0 | 1221 | | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ |
michael@0 | 1222 | | -uxpv* | -beos* | -mpeix* | -udk* \ |
michael@0 | 1223 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
michael@0 | 1224 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
michael@0 | 1225 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
michael@0 | 1226 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
michael@0 | 1227 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
michael@0 | 1228 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
michael@0 | 1229 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) |
michael@0 | 1230 | # Remember, each alternative MUST END IN *, to match a version number. |
michael@0 | 1231 | ;; |
michael@0 | 1232 | -qnx*) |
michael@0 | 1233 | case $basic_machine in |
michael@0 | 1234 | x86-* | i*86-*) |
michael@0 | 1235 | ;; |
michael@0 | 1236 | *) |
michael@0 | 1237 | os=-nto$os |
michael@0 | 1238 | ;; |
michael@0 | 1239 | esac |
michael@0 | 1240 | ;; |
michael@0 | 1241 | -nto-qnx*) |
michael@0 | 1242 | ;; |
michael@0 | 1243 | -nto*) |
michael@0 | 1244 | os=`echo $os | sed -e 's|nto|nto-qnx|'` |
michael@0 | 1245 | ;; |
michael@0 | 1246 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
michael@0 | 1247 | | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ |
michael@0 | 1248 | | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
michael@0 | 1249 | ;; |
michael@0 | 1250 | -mac*) |
michael@0 | 1251 | os=`echo $os | sed -e 's|mac|macos|'` |
michael@0 | 1252 | ;; |
michael@0 | 1253 | -linux-dietlibc) |
michael@0 | 1254 | os=-linux-dietlibc |
michael@0 | 1255 | ;; |
michael@0 | 1256 | -linux*) |
michael@0 | 1257 | os=`echo $os | sed -e 's|linux|linux-gnu|'` |
michael@0 | 1258 | ;; |
michael@0 | 1259 | -sunos5*) |
michael@0 | 1260 | os=`echo $os | sed -e 's|sunos5|solaris2|'` |
michael@0 | 1261 | ;; |
michael@0 | 1262 | -sunos6*) |
michael@0 | 1263 | os=`echo $os | sed -e 's|sunos6|solaris3|'` |
michael@0 | 1264 | ;; |
michael@0 | 1265 | -opened*) |
michael@0 | 1266 | os=-openedition |
michael@0 | 1267 | ;; |
michael@0 | 1268 | -os400*) |
michael@0 | 1269 | os=-os400 |
michael@0 | 1270 | ;; |
michael@0 | 1271 | -wince*) |
michael@0 | 1272 | os=-wince |
michael@0 | 1273 | ;; |
michael@0 | 1274 | -osfrose*) |
michael@0 | 1275 | os=-osfrose |
michael@0 | 1276 | ;; |
michael@0 | 1277 | -osf*) |
michael@0 | 1278 | os=-osf |
michael@0 | 1279 | ;; |
michael@0 | 1280 | -utek*) |
michael@0 | 1281 | os=-bsd |
michael@0 | 1282 | ;; |
michael@0 | 1283 | -dynix*) |
michael@0 | 1284 | os=-bsd |
michael@0 | 1285 | ;; |
michael@0 | 1286 | -acis*) |
michael@0 | 1287 | os=-aos |
michael@0 | 1288 | ;; |
michael@0 | 1289 | -atheos*) |
michael@0 | 1290 | os=-atheos |
michael@0 | 1291 | ;; |
michael@0 | 1292 | -syllable*) |
michael@0 | 1293 | os=-syllable |
michael@0 | 1294 | ;; |
michael@0 | 1295 | -386bsd) |
michael@0 | 1296 | os=-bsd |
michael@0 | 1297 | ;; |
michael@0 | 1298 | -ctix* | -uts*) |
michael@0 | 1299 | os=-sysv |
michael@0 | 1300 | ;; |
michael@0 | 1301 | -nova*) |
michael@0 | 1302 | os=-rtmk-nova |
michael@0 | 1303 | ;; |
michael@0 | 1304 | -ns2 ) |
michael@0 | 1305 | os=-nextstep2 |
michael@0 | 1306 | ;; |
michael@0 | 1307 | -nsk*) |
michael@0 | 1308 | os=-nsk |
michael@0 | 1309 | ;; |
michael@0 | 1310 | # Preserve the version number of sinix5. |
michael@0 | 1311 | -sinix5.*) |
michael@0 | 1312 | os=`echo $os | sed -e 's|sinix|sysv|'` |
michael@0 | 1313 | ;; |
michael@0 | 1314 | -sinix*) |
michael@0 | 1315 | os=-sysv4 |
michael@0 | 1316 | ;; |
michael@0 | 1317 | -tpf*) |
michael@0 | 1318 | os=-tpf |
michael@0 | 1319 | ;; |
michael@0 | 1320 | -triton*) |
michael@0 | 1321 | os=-sysv3 |
michael@0 | 1322 | ;; |
michael@0 | 1323 | -oss*) |
michael@0 | 1324 | os=-sysv3 |
michael@0 | 1325 | ;; |
michael@0 | 1326 | -svr4) |
michael@0 | 1327 | os=-sysv4 |
michael@0 | 1328 | ;; |
michael@0 | 1329 | -svr3) |
michael@0 | 1330 | os=-sysv3 |
michael@0 | 1331 | ;; |
michael@0 | 1332 | -sysvr4) |
michael@0 | 1333 | os=-sysv4 |
michael@0 | 1334 | ;; |
michael@0 | 1335 | # This must come after -sysvr4. |
michael@0 | 1336 | -sysv*) |
michael@0 | 1337 | ;; |
michael@0 | 1338 | -ose*) |
michael@0 | 1339 | os=-ose |
michael@0 | 1340 | ;; |
michael@0 | 1341 | -es1800*) |
michael@0 | 1342 | os=-ose |
michael@0 | 1343 | ;; |
michael@0 | 1344 | -xenix) |
michael@0 | 1345 | os=-xenix |
michael@0 | 1346 | ;; |
michael@0 | 1347 | -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
michael@0 | 1348 | os=-mint |
michael@0 | 1349 | ;; |
michael@0 | 1350 | -aros*) |
michael@0 | 1351 | os=-aros |
michael@0 | 1352 | ;; |
michael@0 | 1353 | -kaos*) |
michael@0 | 1354 | os=-kaos |
michael@0 | 1355 | ;; |
michael@0 | 1356 | -zvmoe) |
michael@0 | 1357 | os=-zvmoe |
michael@0 | 1358 | ;; |
michael@0 | 1359 | -none) |
michael@0 | 1360 | ;; |
michael@0 | 1361 | *) |
michael@0 | 1362 | # Get rid of the `-' at the beginning of $os. |
michael@0 | 1363 | os=`echo $os | sed 's/[^-]*-//'` |
michael@0 | 1364 | echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 |
michael@0 | 1365 | exit 1 |
michael@0 | 1366 | ;; |
michael@0 | 1367 | esac |
michael@0 | 1368 | else |
michael@0 | 1369 | |
michael@0 | 1370 | # Here we handle the default operating systems that come with various machines. |
michael@0 | 1371 | # The value should be what the vendor currently ships out the door with their |
michael@0 | 1372 | # machine or put another way, the most popular os provided with the machine. |
michael@0 | 1373 | |
michael@0 | 1374 | # Note that if you're going to try to match "-MANUFACTURER" here (say, |
michael@0 | 1375 | # "-sun"), then you have to tell the case statement up towards the top |
michael@0 | 1376 | # that MANUFACTURER isn't an operating system. Otherwise, code above |
michael@0 | 1377 | # will signal an error saying that MANUFACTURER isn't an operating |
michael@0 | 1378 | # system, and we'll never get to this point. |
michael@0 | 1379 | |
michael@0 | 1380 | case $basic_machine in |
michael@0 | 1381 | score-*) |
michael@0 | 1382 | os=-elf |
michael@0 | 1383 | ;; |
michael@0 | 1384 | spu-*) |
michael@0 | 1385 | os=-elf |
michael@0 | 1386 | ;; |
michael@0 | 1387 | *-acorn) |
michael@0 | 1388 | os=-riscix1.2 |
michael@0 | 1389 | ;; |
michael@0 | 1390 | arm*-rebel) |
michael@0 | 1391 | os=-linux |
michael@0 | 1392 | ;; |
michael@0 | 1393 | arm*-semi) |
michael@0 | 1394 | os=-aout |
michael@0 | 1395 | ;; |
michael@0 | 1396 | c4x-* | tic4x-*) |
michael@0 | 1397 | os=-coff |
michael@0 | 1398 | ;; |
michael@0 | 1399 | # This must come before the *-dec entry. |
michael@0 | 1400 | pdp10-*) |
michael@0 | 1401 | os=-tops20 |
michael@0 | 1402 | ;; |
michael@0 | 1403 | pdp11-*) |
michael@0 | 1404 | os=-none |
michael@0 | 1405 | ;; |
michael@0 | 1406 | *-dec | vax-*) |
michael@0 | 1407 | os=-ultrix4.2 |
michael@0 | 1408 | ;; |
michael@0 | 1409 | m68*-apollo) |
michael@0 | 1410 | os=-domain |
michael@0 | 1411 | ;; |
michael@0 | 1412 | i386-sun) |
michael@0 | 1413 | os=-sunos4.0.2 |
michael@0 | 1414 | ;; |
michael@0 | 1415 | m68000-sun) |
michael@0 | 1416 | os=-sunos3 |
michael@0 | 1417 | # This also exists in the configure program, but was not the |
michael@0 | 1418 | # default. |
michael@0 | 1419 | # os=-sunos4 |
michael@0 | 1420 | ;; |
michael@0 | 1421 | m68*-cisco) |
michael@0 | 1422 | os=-aout |
michael@0 | 1423 | ;; |
michael@0 | 1424 | mep-*) |
michael@0 | 1425 | os=-elf |
michael@0 | 1426 | ;; |
michael@0 | 1427 | mips*-cisco) |
michael@0 | 1428 | os=-elf |
michael@0 | 1429 | ;; |
michael@0 | 1430 | mips*-*) |
michael@0 | 1431 | os=-elf |
michael@0 | 1432 | ;; |
michael@0 | 1433 | or32-*) |
michael@0 | 1434 | os=-coff |
michael@0 | 1435 | ;; |
michael@0 | 1436 | *-tti) # must be before sparc entry or we get the wrong os. |
michael@0 | 1437 | os=-sysv3 |
michael@0 | 1438 | ;; |
michael@0 | 1439 | sparc-* | *-sun) |
michael@0 | 1440 | os=-sunos4.1.1 |
michael@0 | 1441 | ;; |
michael@0 | 1442 | *-be) |
michael@0 | 1443 | os=-beos |
michael@0 | 1444 | ;; |
michael@0 | 1445 | *-haiku) |
michael@0 | 1446 | os=-haiku |
michael@0 | 1447 | ;; |
michael@0 | 1448 | *-ibm) |
michael@0 | 1449 | os=-aix |
michael@0 | 1450 | ;; |
michael@0 | 1451 | *-knuth) |
michael@0 | 1452 | os=-mmixware |
michael@0 | 1453 | ;; |
michael@0 | 1454 | *-wec) |
michael@0 | 1455 | os=-proelf |
michael@0 | 1456 | ;; |
michael@0 | 1457 | *-winbond) |
michael@0 | 1458 | os=-proelf |
michael@0 | 1459 | ;; |
michael@0 | 1460 | *-oki) |
michael@0 | 1461 | os=-proelf |
michael@0 | 1462 | ;; |
michael@0 | 1463 | *-hp) |
michael@0 | 1464 | os=-hpux |
michael@0 | 1465 | ;; |
michael@0 | 1466 | *-hitachi) |
michael@0 | 1467 | os=-hiux |
michael@0 | 1468 | ;; |
michael@0 | 1469 | i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) |
michael@0 | 1470 | os=-sysv |
michael@0 | 1471 | ;; |
michael@0 | 1472 | *-cbm) |
michael@0 | 1473 | os=-amigaos |
michael@0 | 1474 | ;; |
michael@0 | 1475 | *-dg) |
michael@0 | 1476 | os=-dgux |
michael@0 | 1477 | ;; |
michael@0 | 1478 | *-dolphin) |
michael@0 | 1479 | os=-sysv3 |
michael@0 | 1480 | ;; |
michael@0 | 1481 | m68k-ccur) |
michael@0 | 1482 | os=-rtu |
michael@0 | 1483 | ;; |
michael@0 | 1484 | m88k-omron*) |
michael@0 | 1485 | os=-luna |
michael@0 | 1486 | ;; |
michael@0 | 1487 | *-next ) |
michael@0 | 1488 | os=-nextstep |
michael@0 | 1489 | ;; |
michael@0 | 1490 | *-sequent) |
michael@0 | 1491 | os=-ptx |
michael@0 | 1492 | ;; |
michael@0 | 1493 | *-crds) |
michael@0 | 1494 | os=-unos |
michael@0 | 1495 | ;; |
michael@0 | 1496 | *-ns) |
michael@0 | 1497 | os=-genix |
michael@0 | 1498 | ;; |
michael@0 | 1499 | i370-*) |
michael@0 | 1500 | os=-mvs |
michael@0 | 1501 | ;; |
michael@0 | 1502 | *-next) |
michael@0 | 1503 | os=-nextstep3 |
michael@0 | 1504 | ;; |
michael@0 | 1505 | *-gould) |
michael@0 | 1506 | os=-sysv |
michael@0 | 1507 | ;; |
michael@0 | 1508 | *-highlevel) |
michael@0 | 1509 | os=-bsd |
michael@0 | 1510 | ;; |
michael@0 | 1511 | *-encore) |
michael@0 | 1512 | os=-bsd |
michael@0 | 1513 | ;; |
michael@0 | 1514 | *-sgi) |
michael@0 | 1515 | os=-irix |
michael@0 | 1516 | ;; |
michael@0 | 1517 | *-siemens) |
michael@0 | 1518 | os=-sysv4 |
michael@0 | 1519 | ;; |
michael@0 | 1520 | *-masscomp) |
michael@0 | 1521 | os=-rtu |
michael@0 | 1522 | ;; |
michael@0 | 1523 | f30[01]-fujitsu | f700-fujitsu) |
michael@0 | 1524 | os=-uxpv |
michael@0 | 1525 | ;; |
michael@0 | 1526 | *-rom68k) |
michael@0 | 1527 | os=-coff |
michael@0 | 1528 | ;; |
michael@0 | 1529 | *-*bug) |
michael@0 | 1530 | os=-coff |
michael@0 | 1531 | ;; |
michael@0 | 1532 | *-apple) |
michael@0 | 1533 | os=-macos |
michael@0 | 1534 | ;; |
michael@0 | 1535 | *-atari*) |
michael@0 | 1536 | os=-mint |
michael@0 | 1537 | ;; |
michael@0 | 1538 | *) |
michael@0 | 1539 | os=-none |
michael@0 | 1540 | ;; |
michael@0 | 1541 | esac |
michael@0 | 1542 | fi |
michael@0 | 1543 | |
michael@0 | 1544 | # Here we handle the case where we know the os, and the CPU type, but not the |
michael@0 | 1545 | # manufacturer. We pick the logical manufacturer. |
michael@0 | 1546 | vendor=unknown |
michael@0 | 1547 | case $basic_machine in |
michael@0 | 1548 | *-unknown) |
michael@0 | 1549 | case $os in |
michael@0 | 1550 | -riscix*) |
michael@0 | 1551 | vendor=acorn |
michael@0 | 1552 | ;; |
michael@0 | 1553 | -sunos*) |
michael@0 | 1554 | vendor=sun |
michael@0 | 1555 | ;; |
michael@0 | 1556 | -aix*) |
michael@0 | 1557 | vendor=ibm |
michael@0 | 1558 | ;; |
michael@0 | 1559 | -beos*) |
michael@0 | 1560 | vendor=be |
michael@0 | 1561 | ;; |
michael@0 | 1562 | -hpux*) |
michael@0 | 1563 | vendor=hp |
michael@0 | 1564 | ;; |
michael@0 | 1565 | -mpeix*) |
michael@0 | 1566 | vendor=hp |
michael@0 | 1567 | ;; |
michael@0 | 1568 | -hiux*) |
michael@0 | 1569 | vendor=hitachi |
michael@0 | 1570 | ;; |
michael@0 | 1571 | -unos*) |
michael@0 | 1572 | vendor=crds |
michael@0 | 1573 | ;; |
michael@0 | 1574 | -dgux*) |
michael@0 | 1575 | vendor=dg |
michael@0 | 1576 | ;; |
michael@0 | 1577 | -luna*) |
michael@0 | 1578 | vendor=omron |
michael@0 | 1579 | ;; |
michael@0 | 1580 | -genix*) |
michael@0 | 1581 | vendor=ns |
michael@0 | 1582 | ;; |
michael@0 | 1583 | -mvs* | -opened*) |
michael@0 | 1584 | vendor=ibm |
michael@0 | 1585 | ;; |
michael@0 | 1586 | -os400*) |
michael@0 | 1587 | vendor=ibm |
michael@0 | 1588 | ;; |
michael@0 | 1589 | -ptx*) |
michael@0 | 1590 | vendor=sequent |
michael@0 | 1591 | ;; |
michael@0 | 1592 | -tpf*) |
michael@0 | 1593 | vendor=ibm |
michael@0 | 1594 | ;; |
michael@0 | 1595 | -vxsim* | -vxworks* | -windiss*) |
michael@0 | 1596 | vendor=wrs |
michael@0 | 1597 | ;; |
michael@0 | 1598 | -aux*) |
michael@0 | 1599 | vendor=apple |
michael@0 | 1600 | ;; |
michael@0 | 1601 | -hms*) |
michael@0 | 1602 | vendor=hitachi |
michael@0 | 1603 | ;; |
michael@0 | 1604 | -mpw* | -macos*) |
michael@0 | 1605 | vendor=apple |
michael@0 | 1606 | ;; |
michael@0 | 1607 | -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
michael@0 | 1608 | vendor=atari |
michael@0 | 1609 | ;; |
michael@0 | 1610 | -vos*) |
michael@0 | 1611 | vendor=stratus |
michael@0 | 1612 | ;; |
michael@0 | 1613 | esac |
michael@0 | 1614 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` |
michael@0 | 1615 | ;; |
michael@0 | 1616 | esac |
michael@0 | 1617 | |
michael@0 | 1618 | echo $basic_machine$os |
michael@0 | 1619 | exit |
michael@0 | 1620 | |
michael@0 | 1621 | # Local variables: |
michael@0 | 1622 | # eval: (add-hook 'write-file-hooks 'time-stamp) |
michael@0 | 1623 | # time-stamp-start: "timestamp='" |
michael@0 | 1624 | # time-stamp-format: "%:y-%02m-%02d" |
michael@0 | 1625 | # time-stamp-end: "'" |
michael@0 | 1626 | # End: |