GCC with OpenMP stream-computing extension and BatchQueue algorithm
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.sub 34KB

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