/vendor/pcre/config.sub

http://github.com/feyeleanor/RubyGoLightly · Shell · 1676 lines · 1543 code · 27 blank · 106 comment · 4 complexity · 08c9ffdbc0ee941ec2d0dc3c904191e6 MD5 · raw file

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