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