config.sub 29 KB

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