Clone of mesa.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

config.sub 33KB

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