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.

1440 lines
28 KiB

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