Testing out the PPD42 Air Quality Sensor, with an MSP430 Launchpad and graphing the data with GNUplot.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1570 lines
32 KiB

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