config.sub 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413
  1. #! /bin/sh
  2. # Configuration validation subroutine script.
  3. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
  4. # Free Software Foundation, Inc.
  5. timestamp='2001-10-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* | storm-chaos* | os2-emx* | windows32-*)
  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. | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
  209. | c4x | clipper \
  210. | d10v | d30v | dsp16xx \
  211. | fr30 \
  212. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  213. | i370 | i860 | i960 | ia64 \
  214. | m32r | m68000 | m68k | m88k | mcore \
  215. | mips16 | mips64 | mips64el | mips64orion | mips64orionel \
  216. | mips64vr4100 | mips64vr4100el | mips64vr4300 \
  217. | mips64vr4300el | mips64vr5000 | mips64vr5000el \
  218. | mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
  219. | mipsisa32 \
  220. | mn10200 | mn10300 \
  221. | ns16k | ns32k \
  222. | openrisc \
  223. | pdp10 | pdp11 | pj | pjl \
  224. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  225. | pyramid \
  226. | s390 | s390x \
  227. | sh | sh[34] | sh[34]eb | shbe | shle \
  228. | sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
  229. | stormy16 | strongarm \
  230. | tahoe | thumb | tic80 | tron \
  231. | v850 \
  232. | we32k \
  233. | x86 | xscale \
  234. | z8k)
  235. basic_machine=$basic_machine-unknown
  236. ;;
  237. m6811 | m68hc11 | m6812 | m68hc12)
  238. # Motorola 68HC11/12.
  239. basic_machine=$basic_machine-unknown
  240. os=-none
  241. ;;
  242. m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
  243. ;;
  244. # We use `pc' rather than `unknown'
  245. # because (1) that's what they normally are, and
  246. # (2) the word "unknown" tends to confuse beginning users.
  247. i*86 | x86_64)
  248. basic_machine=$basic_machine-pc
  249. ;;
  250. # Object if more than one company name word.
  251. *-*-*)
  252. echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  253. exit 1
  254. ;;
  255. # Recognize the basic CPU types with company name.
  256. 580-* \
  257. | a29k-* \
  258. | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
  259. | alphapca5[67]-* | arc-* \
  260. | arm-* | armbe-* | armle-* | armv*-* \
  261. | avr-* \
  262. | bs2000-* \
  263. | c[123]* | c30-* | [cjt]90-* | c54x-* \
  264. | clipper-* | cray2-* | cydra-* \
  265. | d10v-* | d30v-* \
  266. | elxsi-* \
  267. | f30[01]-* | f700-* | fr30-* | fx80-* \
  268. | h8300-* | h8500-* \
  269. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  270. | i*86-* | i860-* | i960-* | ia64-* \
  271. | m32r-* \
  272. | m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \
  273. | m88110-* | m88k-* | mcore-* \
  274. | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
  275. | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
  276. | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
  277. | mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
  278. | none-* | np1-* | ns16k-* | ns32k-* \
  279. | orion-* \
  280. | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  281. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  282. | pyramid-* \
  283. | romp-* | rs6000-* \
  284. | s390-* | s390x-* \
  285. | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* \
  286. | sparc-* | sparc64-* | sparc86x-* | sparclite-* \
  287. | sparcv9-* | sparcv9b-* | stormy16-* | strongarm-* | sv1-* \
  288. | t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
  289. | v850-* | vax-* \
  290. | we32k-* \
  291. | x86-* | x86_64-* | xmp-* | xps100-* | xscale-* \
  292. | ymp-* \
  293. | z8k-*)
  294. ;;
  295. # Recognize the various machine names and aliases which stand
  296. # for a CPU type and a company and sometimes even an OS.
  297. 386bsd)
  298. basic_machine=i386-unknown
  299. os=-bsd
  300. ;;
  301. 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
  302. basic_machine=m68000-att
  303. ;;
  304. 3b*)
  305. basic_machine=we32k-att
  306. ;;
  307. a29khif)
  308. basic_machine=a29k-amd
  309. os=-udi
  310. ;;
  311. adobe68k)
  312. basic_machine=m68010-adobe
  313. os=-scout
  314. ;;
  315. alliant | fx80)
  316. basic_machine=fx80-alliant
  317. ;;
  318. altos | altos3068)
  319. basic_machine=m68k-altos
  320. ;;
  321. am29k)
  322. basic_machine=a29k-none
  323. os=-bsd
  324. ;;
  325. amdahl)
  326. basic_machine=580-amdahl
  327. os=-sysv
  328. ;;
  329. amiga | amiga-*)
  330. basic_machine=m68k-unknown
  331. ;;
  332. amigaos | amigados)
  333. basic_machine=m68k-unknown
  334. os=-amigaos
  335. ;;
  336. amigaunix | amix)
  337. basic_machine=m68k-unknown
  338. os=-sysv4
  339. ;;
  340. apollo68)
  341. basic_machine=m68k-apollo
  342. os=-sysv
  343. ;;
  344. apollo68bsd)
  345. basic_machine=m68k-apollo
  346. os=-bsd
  347. ;;
  348. aux)
  349. basic_machine=m68k-apple
  350. os=-aux
  351. ;;
  352. balance)
  353. basic_machine=ns32k-sequent
  354. os=-dynix
  355. ;;
  356. convex-c1)
  357. basic_machine=c1-convex
  358. os=-bsd
  359. ;;
  360. convex-c2)
  361. basic_machine=c2-convex
  362. os=-bsd
  363. ;;
  364. convex-c32)
  365. basic_machine=c32-convex
  366. os=-bsd
  367. ;;
  368. convex-c34)
  369. basic_machine=c34-convex
  370. os=-bsd
  371. ;;
  372. convex-c38)
  373. basic_machine=c38-convex
  374. os=-bsd
  375. ;;
  376. cray | ymp)
  377. basic_machine=ymp-cray
  378. os=-unicos
  379. ;;
  380. cray2)
  381. basic_machine=cray2-cray
  382. os=-unicos
  383. ;;
  384. [cjt]90)
  385. basic_machine=${basic_machine}-cray
  386. os=-unicos
  387. ;;
  388. crds | unos)
  389. basic_machine=m68k-crds
  390. ;;
  391. cris | cris-* | etrax*)
  392. basic_machine=cris-axis
  393. ;;
  394. da30 | da30-*)
  395. basic_machine=m68k-da30
  396. ;;
  397. decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
  398. basic_machine=mips-dec
  399. ;;
  400. delta | 3300 | motorola-3300 | motorola-delta \
  401. | 3300-motorola | delta-motorola)
  402. basic_machine=m68k-motorola
  403. ;;
  404. delta88)
  405. basic_machine=m88k-motorola
  406. os=-sysv3
  407. ;;
  408. dpx20 | dpx20-*)
  409. basic_machine=rs6000-bull
  410. os=-bosx
  411. ;;
  412. dpx2* | dpx2*-bull)
  413. basic_machine=m68k-bull
  414. os=-sysv3
  415. ;;
  416. ebmon29k)
  417. basic_machine=a29k-amd
  418. os=-ebmon
  419. ;;
  420. elxsi)
  421. basic_machine=elxsi-elxsi
  422. os=-bsd
  423. ;;
  424. encore | umax | mmax)
  425. basic_machine=ns32k-encore
  426. ;;
  427. es1800 | OSE68k | ose68k | ose | OSE)
  428. basic_machine=m68k-ericsson
  429. os=-ose
  430. ;;
  431. fx2800)
  432. basic_machine=i860-alliant
  433. ;;
  434. genix)
  435. basic_machine=ns32k-ns
  436. ;;
  437. gmicro)
  438. basic_machine=tron-gmicro
  439. os=-sysv
  440. ;;
  441. go32)
  442. basic_machine=i386-pc
  443. os=-go32
  444. ;;
  445. h3050r* | hiux*)
  446. basic_machine=hppa1.1-hitachi
  447. os=-hiuxwe2
  448. ;;
  449. h8300hms)
  450. basic_machine=h8300-hitachi
  451. os=-hms
  452. ;;
  453. h8300xray)
  454. basic_machine=h8300-hitachi
  455. os=-xray
  456. ;;
  457. h8500hms)
  458. basic_machine=h8500-hitachi
  459. os=-hms
  460. ;;
  461. harris)
  462. basic_machine=m88k-harris
  463. os=-sysv3
  464. ;;
  465. hp300-*)
  466. basic_machine=m68k-hp
  467. ;;
  468. hp300bsd)
  469. basic_machine=m68k-hp
  470. os=-bsd
  471. ;;
  472. hp300hpux)
  473. basic_machine=m68k-hp
  474. os=-hpux
  475. ;;
  476. hp3k9[0-9][0-9] | hp9[0-9][0-9])
  477. basic_machine=hppa1.0-hp
  478. ;;
  479. hp9k2[0-9][0-9] | hp9k31[0-9])
  480. basic_machine=m68000-hp
  481. ;;
  482. hp9k3[2-9][0-9])
  483. basic_machine=m68k-hp
  484. ;;
  485. hp9k6[0-9][0-9] | hp6[0-9][0-9])
  486. basic_machine=hppa1.0-hp
  487. ;;
  488. hp9k7[0-79][0-9] | hp7[0-79][0-9])
  489. basic_machine=hppa1.1-hp
  490. ;;
  491. hp9k78[0-9] | hp78[0-9])
  492. # FIXME: really hppa2.0-hp
  493. basic_machine=hppa1.1-hp
  494. ;;
  495. hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
  496. # FIXME: really hppa2.0-hp
  497. basic_machine=hppa1.1-hp
  498. ;;
  499. hp9k8[0-9][13679] | hp8[0-9][13679])
  500. basic_machine=hppa1.1-hp
  501. ;;
  502. hp9k8[0-9][0-9] | hp8[0-9][0-9])
  503. basic_machine=hppa1.0-hp
  504. ;;
  505. hppa-next)
  506. os=-nextstep3
  507. ;;
  508. hppaosf)
  509. basic_machine=hppa1.1-hp
  510. os=-osf
  511. ;;
  512. hppro)
  513. basic_machine=hppa1.1-hp
  514. os=-proelf
  515. ;;
  516. i370-ibm* | ibm*)
  517. basic_machine=i370-ibm
  518. ;;
  519. # I'm not sure what "Sysv32" means. Should this be sysv3.2?
  520. i*86v32)
  521. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  522. os=-sysv32
  523. ;;
  524. i*86v4*)
  525. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  526. os=-sysv4
  527. ;;
  528. i*86v)
  529. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  530. os=-sysv
  531. ;;
  532. i*86sol2)
  533. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  534. os=-solaris2
  535. ;;
  536. i386mach)
  537. basic_machine=i386-mach
  538. os=-mach
  539. ;;
  540. i386-vsta | vsta)
  541. basic_machine=i386-unknown
  542. os=-vsta
  543. ;;
  544. iris | iris4d)
  545. basic_machine=mips-sgi
  546. case $os in
  547. -irix*)
  548. ;;
  549. *)
  550. os=-irix4
  551. ;;
  552. esac
  553. ;;
  554. isi68 | isi)
  555. basic_machine=m68k-isi
  556. os=-sysv
  557. ;;
  558. m88k-omron*)
  559. basic_machine=m88k-omron
  560. ;;
  561. magnum | m3230)
  562. basic_machine=mips-mips
  563. os=-sysv
  564. ;;
  565. merlin)
  566. basic_machine=ns32k-utek
  567. os=-sysv
  568. ;;
  569. mingw32)
  570. basic_machine=i386-pc
  571. os=-mingw32
  572. ;;
  573. miniframe)
  574. basic_machine=m68000-convergent
  575. ;;
  576. *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
  577. basic_machine=m68k-atari
  578. os=-mint
  579. ;;
  580. mipsel*-linux*)
  581. basic_machine=mipsel-unknown
  582. os=-linux-gnu
  583. ;;
  584. mips*-linux*)
  585. basic_machine=mips-unknown
  586. os=-linux-gnu
  587. ;;
  588. mips3*-*)
  589. basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
  590. ;;
  591. mips3*)
  592. basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
  593. ;;
  594. mmix*)
  595. basic_machine=mmix-knuth
  596. os=-mmixware
  597. ;;
  598. monitor)
  599. basic_machine=m68k-rom68k
  600. os=-coff
  601. ;;
  602. msdos)
  603. basic_machine=i386-pc
  604. os=-msdos
  605. ;;
  606. mvs)
  607. basic_machine=i370-ibm
  608. os=-mvs
  609. ;;
  610. ncr3000)
  611. basic_machine=i486-ncr
  612. os=-sysv4
  613. ;;
  614. netbsd386)
  615. basic_machine=i386-unknown
  616. os=-netbsd
  617. ;;
  618. netwinder)
  619. basic_machine=armv4l-rebel
  620. os=-linux
  621. ;;
  622. news | news700 | news800 | news900)
  623. basic_machine=m68k-sony
  624. os=-newsos
  625. ;;
  626. news1000)
  627. basic_machine=m68030-sony
  628. os=-newsos
  629. ;;
  630. news-3600 | risc-news)
  631. basic_machine=mips-sony
  632. os=-newsos
  633. ;;
  634. necv70)
  635. basic_machine=v70-nec
  636. os=-sysv
  637. ;;
  638. next | m*-next )
  639. basic_machine=m68k-next
  640. case $os in
  641. -nextstep* )
  642. ;;
  643. -ns2*)
  644. os=-nextstep2
  645. ;;
  646. *)
  647. os=-nextstep3
  648. ;;
  649. esac
  650. ;;
  651. nh3000)
  652. basic_machine=m68k-harris
  653. os=-cxux
  654. ;;
  655. nh[45]000)
  656. basic_machine=m88k-harris
  657. os=-cxux
  658. ;;
  659. nindy960)
  660. basic_machine=i960-intel
  661. os=-nindy
  662. ;;
  663. mon960)
  664. basic_machine=i960-intel
  665. os=-mon960
  666. ;;
  667. nonstopux)
  668. basic_machine=mips-compaq
  669. os=-nonstopux
  670. ;;
  671. np1)
  672. basic_machine=np1-gould
  673. ;;
  674. nsr-tandem)
  675. basic_machine=nsr-tandem
  676. ;;
  677. op50n-* | op60c-*)
  678. basic_machine=hppa1.1-oki
  679. os=-proelf
  680. ;;
  681. OSE68000 | ose68000)
  682. basic_machine=m68000-ericsson
  683. os=-ose
  684. ;;
  685. os68k)
  686. basic_machine=m68k-none
  687. os=-os68k
  688. ;;
  689. pa-hitachi)
  690. basic_machine=hppa1.1-hitachi
  691. os=-hiuxwe2
  692. ;;
  693. paragon)
  694. basic_machine=i860-intel
  695. os=-osf
  696. ;;
  697. pbd)
  698. basic_machine=sparc-tti
  699. ;;
  700. pbb)
  701. basic_machine=m68k-tti
  702. ;;
  703. pc532 | pc532-*)
  704. basic_machine=ns32k-pc532
  705. ;;
  706. pentium | p5 | k5 | k6 | nexgen | viac3)
  707. basic_machine=i586-pc
  708. ;;
  709. pentiumpro | p6 | 6x86 | athlon)
  710. basic_machine=i686-pc
  711. ;;
  712. pentiumii | pentium2)
  713. basic_machine=i686-pc
  714. ;;
  715. pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
  716. basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
  717. ;;
  718. pentiumpro-* | p6-* | 6x86-* | athlon-*)
  719. basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  720. ;;
  721. pentiumii-* | pentium2-*)
  722. basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  723. ;;
  724. pn)
  725. basic_machine=pn-gould
  726. ;;
  727. power) basic_machine=power-ibm
  728. ;;
  729. ppc) basic_machine=powerpc-unknown
  730. ;;
  731. ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
  732. ;;
  733. ppcle | powerpclittle | ppc-le | powerpc-little)
  734. basic_machine=powerpcle-unknown
  735. ;;
  736. ppcle-* | powerpclittle-*)
  737. basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
  738. ;;
  739. ppc64) basic_machine=powerpc64-unknown
  740. ;;
  741. ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
  742. ;;
  743. ppc64le | powerpc64little | ppc64-le | powerpc64-little)
  744. basic_machine=powerpc64le-unknown
  745. ;;
  746. ppc64le-* | powerpc64little-*)
  747. basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
  748. ;;
  749. ps2)
  750. basic_machine=i386-ibm
  751. ;;
  752. pw32)
  753. basic_machine=i586-unknown
  754. os=-pw32
  755. ;;
  756. rom68k)
  757. basic_machine=m68k-rom68k
  758. os=-coff
  759. ;;
  760. rm[46]00)
  761. basic_machine=mips-siemens
  762. ;;
  763. rtpc | rtpc-*)
  764. basic_machine=romp-ibm
  765. ;;
  766. sa29200)
  767. basic_machine=a29k-amd
  768. os=-udi
  769. ;;
  770. sequent)
  771. basic_machine=i386-sequent
  772. ;;
  773. sh)
  774. basic_machine=sh-hitachi
  775. os=-hms
  776. ;;
  777. sparclite-wrs | simso-wrs)
  778. basic_machine=sparclite-wrs
  779. os=-vxworks
  780. ;;
  781. sps7)
  782. basic_machine=m68k-bull
  783. os=-sysv2
  784. ;;
  785. spur)
  786. basic_machine=spur-unknown
  787. ;;
  788. st2000)
  789. basic_machine=m68k-tandem
  790. ;;
  791. stratus)
  792. basic_machine=i860-stratus
  793. os=-sysv4
  794. ;;
  795. sun2)
  796. basic_machine=m68000-sun
  797. ;;
  798. sun2os3)
  799. basic_machine=m68000-sun
  800. os=-sunos3
  801. ;;
  802. sun2os4)
  803. basic_machine=m68000-sun
  804. os=-sunos4
  805. ;;
  806. sun3os3)
  807. basic_machine=m68k-sun
  808. os=-sunos3
  809. ;;
  810. sun3os4)
  811. basic_machine=m68k-sun
  812. os=-sunos4
  813. ;;
  814. sun4os3)
  815. basic_machine=sparc-sun
  816. os=-sunos3
  817. ;;
  818. sun4os4)
  819. basic_machine=sparc-sun
  820. os=-sunos4
  821. ;;
  822. sun4sol2)
  823. basic_machine=sparc-sun
  824. os=-solaris2
  825. ;;
  826. sun3 | sun3-*)
  827. basic_machine=m68k-sun
  828. ;;
  829. sun4)
  830. basic_machine=sparc-sun
  831. ;;
  832. sun386 | sun386i | roadrunner)
  833. basic_machine=i386-sun
  834. ;;
  835. sv1)
  836. basic_machine=sv1-cray
  837. os=-unicos
  838. ;;
  839. symmetry)
  840. basic_machine=i386-sequent
  841. os=-dynix
  842. ;;
  843. t3e)
  844. basic_machine=t3e-cray
  845. os=-unicos
  846. ;;
  847. tic54x | c54x*)
  848. basic_machine=tic54x-unknown
  849. os=-coff
  850. ;;
  851. tx39)
  852. basic_machine=mipstx39-unknown
  853. ;;
  854. tx39el)
  855. basic_machine=mipstx39el-unknown
  856. ;;
  857. tower | tower-32)
  858. basic_machine=m68k-ncr
  859. ;;
  860. udi29k)
  861. basic_machine=a29k-amd
  862. os=-udi
  863. ;;
  864. ultra3)
  865. basic_machine=a29k-nyu
  866. os=-sym1
  867. ;;
  868. v810 | necv810)
  869. basic_machine=v810-nec
  870. os=-none
  871. ;;
  872. vaxv)
  873. basic_machine=vax-dec
  874. os=-sysv
  875. ;;
  876. vms)
  877. basic_machine=vax-dec
  878. os=-vms
  879. ;;
  880. vpp*|vx|vx-*)
  881. basic_machine=f301-fujitsu
  882. ;;
  883. vxworks960)
  884. basic_machine=i960-wrs
  885. os=-vxworks
  886. ;;
  887. vxworks68)
  888. basic_machine=m68k-wrs
  889. os=-vxworks
  890. ;;
  891. vxworks29k)
  892. basic_machine=a29k-wrs
  893. os=-vxworks
  894. ;;
  895. w65*)
  896. basic_machine=w65-wdc
  897. os=-none
  898. ;;
  899. w89k-*)
  900. basic_machine=hppa1.1-winbond
  901. os=-proelf
  902. ;;
  903. windows32)
  904. basic_machine=i386-pc
  905. os=-windows32-msvcrt
  906. ;;
  907. xmp)
  908. basic_machine=xmp-cray
  909. os=-unicos
  910. ;;
  911. xps | xps100)
  912. basic_machine=xps100-honeywell
  913. ;;
  914. z8k-*-coff)
  915. basic_machine=z8k-unknown
  916. os=-sim
  917. ;;
  918. none)
  919. basic_machine=none-none
  920. os=-none
  921. ;;
  922. # Here we handle the default manufacturer of certain CPU types. It is in
  923. # some cases the only manufacturer, in others, it is the most popular.
  924. w89k)
  925. basic_machine=hppa1.1-winbond
  926. ;;
  927. op50n)
  928. basic_machine=hppa1.1-oki
  929. ;;
  930. op60c)
  931. basic_machine=hppa1.1-oki
  932. ;;
  933. mips)
  934. if [ x$os = x-linux-gnu ]; then
  935. basic_machine=mips-unknown
  936. else
  937. basic_machine=mips-mips
  938. fi
  939. ;;
  940. romp)
  941. basic_machine=romp-ibm
  942. ;;
  943. rs6000)
  944. basic_machine=rs6000-ibm
  945. ;;
  946. vax)
  947. basic_machine=vax-dec
  948. ;;
  949. pdp10)
  950. # there are many clones, so DEC is not a safe bet
  951. basic_machine=pdp10-unknown
  952. ;;
  953. pdp11)
  954. basic_machine=pdp11-dec
  955. ;;
  956. we32k)
  957. basic_machine=we32k-att
  958. ;;
  959. sh3 | sh4 | sh3eb | sh4eb)
  960. basic_machine=sh-unknown
  961. ;;
  962. sparc | sparcv9 | sparcv9b)
  963. basic_machine=sparc-sun
  964. ;;
  965. cydra)
  966. basic_machine=cydra-cydrome
  967. ;;
  968. orion)
  969. basic_machine=orion-highlevel
  970. ;;
  971. orion105)
  972. basic_machine=clipper-highlevel
  973. ;;
  974. mac | mpw | mac-mpw)
  975. basic_machine=m68k-apple
  976. ;;
  977. pmac | pmac-mpw)
  978. basic_machine=powerpc-apple
  979. ;;
  980. c4x*)
  981. basic_machine=c4x-none
  982. os=-coff
  983. ;;
  984. *-unknown)
  985. # Make sure to match an already-canonicalized machine name.
  986. ;;
  987. *)
  988. echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  989. exit 1
  990. ;;
  991. esac
  992. # Here we canonicalize certain aliases for manufacturers.
  993. case $basic_machine in
  994. *-digital*)
  995. basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
  996. ;;
  997. *-commodore*)
  998. basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
  999. ;;
  1000. *)
  1001. ;;
  1002. esac
  1003. # Decode manufacturer-specific aliases for certain operating systems.
  1004. if [ x"$os" != x"" ]
  1005. then
  1006. case $os in
  1007. # First match some system type aliases
  1008. # that might get confused with valid system types.
  1009. # -solaris* is a basic system type, with this one exception.
  1010. -solaris1 | -solaris1.*)
  1011. os=`echo $os | sed -e 's|solaris1|sunos4|'`
  1012. ;;
  1013. -solaris)
  1014. os=-solaris2
  1015. ;;
  1016. -svr4*)
  1017. os=-sysv4
  1018. ;;
  1019. -unixware*)
  1020. os=-sysv4.2uw
  1021. ;;
  1022. -gnu/linux*)
  1023. os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
  1024. ;;
  1025. # First accept the basic system types.
  1026. # The portable systems comes first.
  1027. # Each alternative MUST END IN A *, to match a version number.
  1028. # -sysv* is not here because it comes later, after sysvr4.
  1029. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  1030. | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  1031. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  1032. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  1033. | -aos* \
  1034. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  1035. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  1036. | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
  1037. | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  1038. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  1039. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  1040. | -chorusos* | -chorusrdb* \
  1041. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  1042. | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
  1043. | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
  1044. | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  1045. | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  1046. | -os2* | -vos*)
  1047. # Remember, each alternative MUST END IN *, to match a version number.
  1048. ;;
  1049. -qnx*)
  1050. case $basic_machine in
  1051. x86-* | i*86-*)
  1052. ;;
  1053. *)
  1054. os=-nto$os
  1055. ;;
  1056. esac
  1057. ;;
  1058. -nto*)
  1059. os=-nto-qnx
  1060. ;;
  1061. -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  1062. | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
  1063. | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
  1064. ;;
  1065. -mac*)
  1066. os=`echo $os | sed -e 's|mac|macos|'`
  1067. ;;
  1068. -linux*)
  1069. os=`echo $os | sed -e 's|linux|linux-gnu|'`
  1070. ;;
  1071. -sunos5*)
  1072. os=`echo $os | sed -e 's|sunos5|solaris2|'`
  1073. ;;
  1074. -sunos6*)
  1075. os=`echo $os | sed -e 's|sunos6|solaris3|'`
  1076. ;;
  1077. -opened*)
  1078. os=-openedition
  1079. ;;
  1080. -wince*)
  1081. os=-wince
  1082. ;;
  1083. -osfrose*)
  1084. os=-osfrose
  1085. ;;
  1086. -osf*)
  1087. os=-osf
  1088. ;;
  1089. -utek*)
  1090. os=-bsd
  1091. ;;
  1092. -dynix*)
  1093. os=-bsd
  1094. ;;
  1095. -acis*)
  1096. os=-aos
  1097. ;;
  1098. -386bsd)
  1099. os=-bsd
  1100. ;;
  1101. -ctix* | -uts*)
  1102. os=-sysv
  1103. ;;
  1104. -ns2 )
  1105. os=-nextstep2
  1106. ;;
  1107. -nsk*)
  1108. os=-nsk
  1109. ;;
  1110. # Preserve the version number of sinix5.
  1111. -sinix5.*)
  1112. os=`echo $os | sed -e 's|sinix|sysv|'`
  1113. ;;
  1114. -sinix*)
  1115. os=-sysv4
  1116. ;;
  1117. -triton*)
  1118. os=-sysv3
  1119. ;;
  1120. -oss*)
  1121. os=-sysv3
  1122. ;;
  1123. -svr4)
  1124. os=-sysv4
  1125. ;;
  1126. -svr3)
  1127. os=-sysv3
  1128. ;;
  1129. -sysvr4)
  1130. os=-sysv4
  1131. ;;
  1132. # This must come after -sysvr4.
  1133. -sysv*)
  1134. ;;
  1135. -ose*)
  1136. os=-ose
  1137. ;;
  1138. -es1800*)
  1139. os=-ose
  1140. ;;
  1141. -xenix)
  1142. os=-xenix
  1143. ;;
  1144. -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  1145. os=-mint
  1146. ;;
  1147. -none)
  1148. ;;
  1149. *)
  1150. # Get rid of the `-' at the beginning of $os.
  1151. os=`echo $os | sed 's/[^-]*-//'`
  1152. echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
  1153. exit 1
  1154. ;;
  1155. esac
  1156. else
  1157. # Here we handle the default operating systems that come with various machines.
  1158. # The value should be what the vendor currently ships out the door with their
  1159. # machine or put another way, the most popular os provided with the machine.
  1160. # Note that if you're going to try to match "-MANUFACTURER" here (say,
  1161. # "-sun"), then you have to tell the case statement up towards the top
  1162. # that MANUFACTURER isn't an operating system. Otherwise, code above
  1163. # will signal an error saying that MANUFACTURER isn't an operating
  1164. # system, and we'll never get to this point.
  1165. case $basic_machine in
  1166. *-acorn)
  1167. os=-riscix1.2
  1168. ;;
  1169. arm*-rebel)
  1170. os=-linux
  1171. ;;
  1172. arm*-semi)
  1173. os=-aout
  1174. ;;
  1175. pdp10-*)
  1176. os=-tops20
  1177. ;;
  1178. pdp11-*)
  1179. os=-none
  1180. ;;
  1181. *-dec | vax-*)
  1182. os=-ultrix4.2
  1183. ;;
  1184. m68*-apollo)
  1185. os=-domain
  1186. ;;
  1187. i386-sun)
  1188. os=-sunos4.0.2
  1189. ;;
  1190. m68000-sun)
  1191. os=-sunos3
  1192. # This also exists in the configure program, but was not the
  1193. # default.
  1194. # os=-sunos4
  1195. ;;
  1196. m68*-cisco)
  1197. os=-aout
  1198. ;;
  1199. mips*-cisco)
  1200. os=-elf
  1201. ;;
  1202. mips*-*)
  1203. os=-elf
  1204. ;;
  1205. *-tti) # must be before sparc entry or we get the wrong os.
  1206. os=-sysv3
  1207. ;;
  1208. sparc-* | *-sun)
  1209. os=-sunos4.1.1
  1210. ;;
  1211. *-be)
  1212. os=-beos
  1213. ;;
  1214. *-ibm)
  1215. os=-aix
  1216. ;;
  1217. *-wec)
  1218. os=-proelf
  1219. ;;
  1220. *-winbond)
  1221. os=-proelf
  1222. ;;
  1223. *-oki)
  1224. os=-proelf
  1225. ;;
  1226. *-hp)
  1227. os=-hpux
  1228. ;;
  1229. *-hitachi)
  1230. os=-hiux
  1231. ;;
  1232. i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
  1233. os=-sysv
  1234. ;;
  1235. *-cbm)
  1236. os=-amigaos
  1237. ;;
  1238. *-dg)
  1239. os=-dgux
  1240. ;;
  1241. *-dolphin)
  1242. os=-sysv3
  1243. ;;
  1244. m68k-ccur)
  1245. os=-rtu
  1246. ;;
  1247. m88k-omron*)
  1248. os=-luna
  1249. ;;
  1250. *-next )
  1251. os=-nextstep
  1252. ;;
  1253. *-sequent)
  1254. os=-ptx
  1255. ;;
  1256. *-crds)
  1257. os=-unos
  1258. ;;
  1259. *-ns)
  1260. os=-genix
  1261. ;;
  1262. i370-*)
  1263. os=-mvs
  1264. ;;
  1265. *-next)
  1266. os=-nextstep3
  1267. ;;
  1268. *-gould)
  1269. os=-sysv
  1270. ;;
  1271. *-highlevel)
  1272. os=-bsd
  1273. ;;
  1274. *-encore)
  1275. os=-bsd
  1276. ;;
  1277. *-sgi)
  1278. os=-irix
  1279. ;;
  1280. *-siemens)
  1281. os=-sysv4
  1282. ;;
  1283. *-masscomp)
  1284. os=-rtu
  1285. ;;
  1286. f30[01]-fujitsu | f700-fujitsu)
  1287. os=-uxpv
  1288. ;;
  1289. *-rom68k)
  1290. os=-coff
  1291. ;;
  1292. *-*bug)
  1293. os=-coff
  1294. ;;
  1295. *-apple)
  1296. os=-macos
  1297. ;;
  1298. *-atari*)
  1299. os=-mint
  1300. ;;
  1301. *)
  1302. os=-none
  1303. ;;
  1304. esac
  1305. fi
  1306. # Here we handle the case where we know the os, and the CPU type, but not the
  1307. # manufacturer. We pick the logical manufacturer.
  1308. vendor=unknown
  1309. case $basic_machine in
  1310. *-unknown)
  1311. case $os in
  1312. -riscix*)
  1313. vendor=acorn
  1314. ;;
  1315. -sunos*)
  1316. vendor=sun
  1317. ;;
  1318. -aix*)
  1319. vendor=ibm
  1320. ;;
  1321. -beos*)
  1322. vendor=be
  1323. ;;
  1324. -hpux*)
  1325. vendor=hp
  1326. ;;
  1327. -mpeix*)
  1328. vendor=hp
  1329. ;;
  1330. -hiux*)
  1331. vendor=hitachi
  1332. ;;
  1333. -unos*)
  1334. vendor=crds
  1335. ;;
  1336. -dgux*)
  1337. vendor=dg
  1338. ;;
  1339. -luna*)
  1340. vendor=omron
  1341. ;;
  1342. -genix*)
  1343. vendor=ns
  1344. ;;
  1345. -mvs* | -opened*)
  1346. vendor=ibm
  1347. ;;
  1348. -ptx*)
  1349. vendor=sequent
  1350. ;;
  1351. -vxsim* | -vxworks*)
  1352. vendor=wrs
  1353. ;;
  1354. -aux*)
  1355. vendor=apple
  1356. ;;
  1357. -hms*)
  1358. vendor=hitachi
  1359. ;;
  1360. -mpw* | -macos*)
  1361. vendor=apple
  1362. ;;
  1363. -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  1364. vendor=atari
  1365. ;;
  1366. -vos*)
  1367. vendor=stratus
  1368. ;;
  1369. esac
  1370. basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
  1371. ;;
  1372. esac
  1373. echo $basic_machine$os
  1374. exit 0
  1375. # Local variables:
  1376. # eval: (add-hook 'write-file-hooks 'time-stamp)
  1377. # time-stamp-start: "timestamp='"
  1378. # time-stamp-format: "%:y-%02m-%02d"
  1379. # time-stamp-end: "'"
  1380. # End:
粤ICP备19079148号