PageRenderTime 58ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/TeXmacs-1.0.7.11-src/misc/autotroll/config.sub

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