Shared admin folder
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.

config.guess 42KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464
  1. #! /bin/sh
  2. # Attempt to guess a canonical system name.
  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-06-30'
  6. # This file is free software; you can redistribute it and/or modify it
  7. # under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. # General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  19. # 02110-1301, USA.
  20. #
  21. # As a special exception to the GNU General Public License, if you
  22. # distribute this file as part of a program that contains a
  23. # configuration script generated by Autoconf, you may include it under
  24. # the same distribution terms that you use for the rest of that program.
  25. # Originally written by Per Bothner <per@bothner.com>.
  26. # Please send patches to <config-patches@gnu.org>. Submit a context
  27. # diff and a properly formatted ChangeLog entry.
  28. #
  29. # This script attempts to guess a canonical system name similar to
  30. # config.sub. If it succeeds, it prints the system name on stdout, and
  31. # exits with 0. Otherwise, it exits with 1.
  32. #
  33. # The plan is that this can be called by configure scripts if you
  34. # don't specify an explicit build system type.
  35. me=`echo "$0" | sed -e 's,.*/,,'`
  36. usage="\
  37. Usage: $0 [OPTION]
  38. Output the configuration name of the system \`$me' is run on.
  39. Operation modes:
  40. -h, --help print this help, then exit
  41. -t, --time-stamp print date of last modification, then exit
  42. -v, --version print version number, then exit
  43. Report bugs and patches to <config-patches@gnu.org>."
  44. version="\
  45. GNU config.guess ($timestamp)
  46. Originally written by Per Bothner.
  47. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  48. Free Software Foundation, Inc.
  49. This is free software; see the source for copying conditions. There is NO
  50. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  51. help="
  52. Try \`$me --help' for more information."
  53. # Parse command line
  54. while test $# -gt 0 ; do
  55. case $1 in
  56. --time-stamp | --time* | -t )
  57. echo "$timestamp" ; exit ;;
  58. --version | -v )
  59. echo "$version" ; exit ;;
  60. --help | --h* | -h )
  61. echo "$usage"; exit ;;
  62. -- ) # Stop option processing
  63. shift; break ;;
  64. - ) # Use stdin as input.
  65. break ;;
  66. -* )
  67. echo "$me: invalid option $1$help" >&2
  68. exit 1 ;;
  69. * )
  70. break ;;
  71. esac
  72. done
  73. if test $# != 0; then
  74. echo "$me: too many arguments$help" >&2
  75. exit 1
  76. fi
  77. trap 'exit 1' 1 2 15
  78. # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
  79. # compiler to aid in system detection is discouraged as it requires
  80. # temporary files to be created and, as you can see below, it is a
  81. # headache to deal with in a portable fashion.
  82. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
  83. # use `HOST_CC' if defined, but it is deprecated.
  84. # Portable tmp directory creation inspired by the Autoconf team.
  85. set_cc_for_build='
  86. trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  87. trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  88. : ${TMPDIR=/tmp} ;
  89. { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  90. { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  91. { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
  92. { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  93. dummy=$tmp/dummy ;
  94. tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
  95. case $CC_FOR_BUILD,$HOST_CC,$CC in
  96. ,,) echo "int x;" > $dummy.c ;
  97. for c in cc gcc c89 c99 ; do
  98. if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
  99. CC_FOR_BUILD="$c"; break ;
  100. fi ;
  101. done ;
  102. if test x"$CC_FOR_BUILD" = x ; then
  103. CC_FOR_BUILD=no_compiler_found ;
  104. fi
  105. ;;
  106. ,,*) CC_FOR_BUILD=$CC ;;
  107. ,*,*) CC_FOR_BUILD=$HOST_CC ;;
  108. esac ;'
  109. # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  110. # (ghazi@noc.rutgers.edu 1994-08-24)
  111. if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
  112. PATH=$PATH:/.attbin ; export PATH
  113. fi
  114. UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
  115. UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
  116. UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  117. UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
  118. # Note: order is significant - the case branches are not exclusive.
  119. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  120. *:NetBSD:*:*)
  121. # NetBSD (nbsd) targets should (where applicable) match one or
  122. # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
  123. # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
  124. # switched to ELF, *-*-netbsd* would select the old
  125. # object file format. This provides both forward
  126. # compatibility and a consistent mechanism for selecting the
  127. # object file format.
  128. #
  129. # Note: NetBSD doesn't particularly care about the vendor
  130. # portion of the name. We always set it to "unknown".
  131. sysctl="sysctl -n hw.machine_arch"
  132. UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
  133. /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
  134. case "${UNAME_MACHINE_ARCH}" in
  135. armeb) machine=armeb-unknown ;;
  136. arm*) machine=arm-unknown ;;
  137. sh3el) machine=shl-unknown ;;
  138. sh3eb) machine=sh-unknown ;;
  139. *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  140. esac
  141. # The Operating System including object format, if it has switched
  142. # to ELF recently, or will in the future.
  143. case "${UNAME_MACHINE_ARCH}" in
  144. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  145. eval $set_cc_for_build
  146. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  147. | grep __ELF__ >/dev/null
  148. then
  149. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  150. # Return netbsd for either. FIX?
  151. os=netbsd
  152. else
  153. os=netbsdelf
  154. fi
  155. ;;
  156. *)
  157. os=netbsd
  158. ;;
  159. esac
  160. # The OS release
  161. # Debian GNU/NetBSD machines have a different userland, and
  162. # thus, need a distinct triplet. However, they do not need
  163. # kernel version information, so it can be replaced with a
  164. # suitable tag, in the style of linux-gnu.
  165. case "${UNAME_VERSION}" in
  166. Debian*)
  167. release='-gnu'
  168. ;;
  169. *)
  170. release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  171. ;;
  172. esac
  173. # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
  174. # contains redundant information, the shorter form:
  175. # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  176. echo "${machine}-${os}${release}"
  177. exit ;;
  178. *:OpenBSD:*:*)
  179. UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
  180. echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
  181. exit ;;
  182. *:ekkoBSD:*:*)
  183. echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
  184. exit ;;
  185. macppc:MirBSD:*:*)
  186. echo powerppc-unknown-mirbsd${UNAME_RELEASE}
  187. exit ;;
  188. *:MirBSD:*:*)
  189. echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
  190. exit ;;
  191. alpha:OSF1:*:*)
  192. case $UNAME_RELEASE in
  193. *4.0)
  194. UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
  195. ;;
  196. *5.*)
  197. UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
  198. ;;
  199. esac
  200. # According to Compaq, /usr/sbin/psrinfo has been available on
  201. # OSF/1 and Tru64 systems produced since 1995. I hope that
  202. # covers most systems running today. This code pipes the CPU
  203. # types through head -n 1, so we only detect the type of CPU 0.
  204. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
  205. case "$ALPHA_CPU_TYPE" in
  206. "EV4 (21064)")
  207. UNAME_MACHINE="alpha" ;;
  208. "EV4.5 (21064)")
  209. UNAME_MACHINE="alpha" ;;
  210. "LCA4 (21066/21068)")
  211. UNAME_MACHINE="alpha" ;;
  212. "EV5 (21164)")
  213. UNAME_MACHINE="alphaev5" ;;
  214. "EV5.6 (21164A)")
  215. UNAME_MACHINE="alphaev56" ;;
  216. "EV5.6 (21164PC)")
  217. UNAME_MACHINE="alphapca56" ;;
  218. "EV5.7 (21164PC)")
  219. UNAME_MACHINE="alphapca57" ;;
  220. "EV6 (21264)")
  221. UNAME_MACHINE="alphaev6" ;;
  222. "EV6.7 (21264A)")
  223. UNAME_MACHINE="alphaev67" ;;
  224. "EV6.8CB (21264C)")
  225. UNAME_MACHINE="alphaev68" ;;
  226. "EV6.8AL (21264B)")
  227. UNAME_MACHINE="alphaev68" ;;
  228. "EV6.8CX (21264D)")
  229. UNAME_MACHINE="alphaev68" ;;
  230. "EV6.9A (21264/EV69A)")
  231. UNAME_MACHINE="alphaev69" ;;
  232. "EV7 (21364)")
  233. UNAME_MACHINE="alphaev7" ;;
  234. "EV7.9 (21364A)")
  235. UNAME_MACHINE="alphaev79" ;;
  236. esac
  237. # A Pn.n version is a patched version.
  238. # A Vn.n version is a released version.
  239. # A Tn.n version is a released field test version.
  240. # A Xn.n version is an unreleased experimental baselevel.
  241. # 1.2 uses "1.2" for uname -r.
  242. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  243. exit ;;
  244. Alpha\ *:Windows_NT*:*)
  245. # How do we know it's Interix rather than the generic POSIX subsystem?
  246. # Should we change UNAME_MACHINE based on the output of uname instead
  247. # of the specific Alpha model?
  248. echo alpha-pc-interix
  249. exit ;;
  250. 21064:Windows_NT:50:3)
  251. echo alpha-dec-winnt3.5
  252. exit ;;
  253. Amiga*:UNIX_System_V:4.0:*)
  254. echo m68k-unknown-sysv4
  255. exit ;;
  256. *:[Aa]miga[Oo][Ss]:*:*)
  257. echo ${UNAME_MACHINE}-unknown-amigaos
  258. exit ;;
  259. *:[Mm]orph[Oo][Ss]:*:*)
  260. echo ${UNAME_MACHINE}-unknown-morphos
  261. exit ;;
  262. *:OS/390:*:*)
  263. echo i370-ibm-openedition
  264. exit ;;
  265. *:z/VM:*:*)
  266. echo s390-ibm-zvmoe
  267. exit ;;
  268. *:OS400:*:*)
  269. echo powerpc-ibm-os400
  270. exit ;;
  271. arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  272. echo arm-acorn-riscix${UNAME_RELEASE}
  273. exit ;;
  274. arm:riscos:*:*|arm:RISCOS:*:*)
  275. echo arm-unknown-riscos
  276. exit ;;
  277. SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
  278. echo hppa1.1-hitachi-hiuxmpp
  279. exit ;;
  280. Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
  281. # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
  282. if test "`(/bin/universe) 2>/dev/null`" = att ; then
  283. echo pyramid-pyramid-sysv3
  284. else
  285. echo pyramid-pyramid-bsd
  286. fi
  287. exit ;;
  288. NILE*:*:*:dcosx)
  289. echo pyramid-pyramid-svr4
  290. exit ;;
  291. DRS?6000:unix:4.0:6*)
  292. echo sparc-icl-nx6
  293. exit ;;
  294. DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
  295. case `/usr/bin/uname -p` in
  296. sparc) echo sparc-icl-nx7; exit ;;
  297. esac ;;
  298. sun4H:SunOS:5.*:*)
  299. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  300. exit ;;
  301. sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  302. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  303. exit ;;
  304. i86pc:SunOS:5.*:*)
  305. echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  306. exit ;;
  307. sun4*:SunOS:6*:*)
  308. # According to config.sub, this is the proper way to canonicalize
  309. # SunOS6. Hard to guess exactly what SunOS6 will be like, but
  310. # it's likely to be more like Solaris than SunOS4.
  311. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  312. exit ;;
  313. sun4*:SunOS:*:*)
  314. case "`/usr/bin/arch -k`" in
  315. Series*|S4*)
  316. UNAME_RELEASE=`uname -v`
  317. ;;
  318. esac
  319. # Japanese Language versions have a version number like `4.1.3-JL'.
  320. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
  321. exit ;;
  322. sun3*:SunOS:*:*)
  323. echo m68k-sun-sunos${UNAME_RELEASE}
  324. exit ;;
  325. sun*:*:4.2BSD:*)
  326. UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  327. test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  328. case "`/bin/arch`" in
  329. sun3)
  330. echo m68k-sun-sunos${UNAME_RELEASE}
  331. ;;
  332. sun4)
  333. echo sparc-sun-sunos${UNAME_RELEASE}
  334. ;;
  335. esac
  336. exit ;;
  337. aushp:SunOS:*:*)
  338. echo sparc-auspex-sunos${UNAME_RELEASE}
  339. exit ;;
  340. # The situation for MiNT is a little confusing. The machine name
  341. # can be virtually everything (everything which is not
  342. # "atarist" or "atariste" at least should have a processor
  343. # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
  344. # to the lowercase version "mint" (or "freemint"). Finally
  345. # the system name "TOS" denotes a system which is actually not
  346. # MiNT. But MiNT is downward compatible to TOS, so this should
  347. # be no problem.
  348. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
  349. echo m68k-atari-mint${UNAME_RELEASE}
  350. exit ;;
  351. atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
  352. echo m68k-atari-mint${UNAME_RELEASE}
  353. exit ;;
  354. *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
  355. echo m68k-atari-mint${UNAME_RELEASE}
  356. exit ;;
  357. milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
  358. echo m68k-milan-mint${UNAME_RELEASE}
  359. exit ;;
  360. hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
  361. echo m68k-hades-mint${UNAME_RELEASE}
  362. exit ;;
  363. *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  364. echo m68k-unknown-mint${UNAME_RELEASE}
  365. exit ;;
  366. m68k:machten:*:*)
  367. echo m68k-apple-machten${UNAME_RELEASE}
  368. exit ;;
  369. powerpc:machten:*:*)
  370. echo powerpc-apple-machten${UNAME_RELEASE}
  371. exit ;;
  372. RISC*:Mach:*:*)
  373. echo mips-dec-mach_bsd4.3
  374. exit ;;
  375. RISC*:ULTRIX:*:*)
  376. echo mips-dec-ultrix${UNAME_RELEASE}
  377. exit ;;
  378. VAX*:ULTRIX*:*:*)
  379. echo vax-dec-ultrix${UNAME_RELEASE}
  380. exit ;;
  381. 2020:CLIX:*:* | 2430:CLIX:*:*)
  382. echo clipper-intergraph-clix${UNAME_RELEASE}
  383. exit ;;
  384. mips:*:*:UMIPS | mips:*:*:RISCos)
  385. eval $set_cc_for_build
  386. sed 's/^ //' << EOF >$dummy.c
  387. #ifdef __cplusplus
  388. #include <stdio.h> /* for printf() prototype */
  389. int main (int argc, char *argv[]) {
  390. #else
  391. int main (argc, argv) int argc; char *argv[]; {
  392. #endif
  393. #if defined (host_mips) && defined (MIPSEB)
  394. #if defined (SYSTYPE_SYSV)
  395. printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
  396. #endif
  397. #if defined (SYSTYPE_SVR4)
  398. printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
  399. #endif
  400. #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
  401. printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
  402. #endif
  403. #endif
  404. exit (-1);
  405. }
  406. EOF
  407. $CC_FOR_BUILD -o $dummy $dummy.c &&
  408. dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
  409. SYSTEM_NAME=`$dummy $dummyarg` &&
  410. { echo "$SYSTEM_NAME"; exit; }
  411. echo mips-mips-riscos${UNAME_RELEASE}
  412. exit ;;
  413. Motorola:PowerMAX_OS:*:*)
  414. echo powerpc-motorola-powermax
  415. exit ;;
  416. Motorola:*:4.3:PL8-*)
  417. echo powerpc-harris-powermax
  418. exit ;;
  419. Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
  420. echo powerpc-harris-powermax
  421. exit ;;
  422. Night_Hawk:Power_UNIX:*:*)
  423. echo powerpc-harris-powerunix
  424. exit ;;
  425. m88k:CX/UX:7*:*)
  426. echo m88k-harris-cxux7
  427. exit ;;
  428. m88k:*:4*:R4*)
  429. echo m88k-motorola-sysv4
  430. exit ;;
  431. m88k:*:3*:R3*)
  432. echo m88k-motorola-sysv3
  433. exit ;;
  434. AViiON:dgux:*:*)
  435. # DG/UX returns AViiON for all architectures
  436. UNAME_PROCESSOR=`/usr/bin/uname -p`
  437. if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
  438. then
  439. if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
  440. [ ${TARGET_BINARY_INTERFACE}x = x ]
  441. then
  442. echo m88k-dg-dgux${UNAME_RELEASE}
  443. else
  444. echo m88k-dg-dguxbcs${UNAME_RELEASE}
  445. fi
  446. else
  447. echo i586-dg-dgux${UNAME_RELEASE}
  448. fi
  449. exit ;;
  450. M88*:DolphinOS:*:*) # DolphinOS (SVR3)
  451. echo m88k-dolphin-sysv3
  452. exit ;;
  453. M88*:*:R3*:*)
  454. # Delta 88k system running SVR3
  455. echo m88k-motorola-sysv3
  456. exit ;;
  457. XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
  458. echo m88k-tektronix-sysv3
  459. exit ;;
  460. Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
  461. echo m68k-tektronix-bsd
  462. exit ;;
  463. *:IRIX*:*:*)
  464. echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
  465. exit ;;
  466. ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
  467. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  468. exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  469. i*86:AIX:*:*)
  470. echo i386-ibm-aix
  471. exit ;;
  472. ia64:AIX:*:*)
  473. if [ -x /usr/bin/oslevel ] ; then
  474. IBM_REV=`/usr/bin/oslevel`
  475. else
  476. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  477. fi
  478. echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
  479. exit ;;
  480. *:AIX:2:3)
  481. if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
  482. eval $set_cc_for_build
  483. sed 's/^ //' << EOF >$dummy.c
  484. #include <sys/systemcfg.h>
  485. main()
  486. {
  487. if (!__power_pc())
  488. exit(1);
  489. puts("powerpc-ibm-aix3.2.5");
  490. exit(0);
  491. }
  492. EOF
  493. if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
  494. then
  495. echo "$SYSTEM_NAME"
  496. else
  497. echo rs6000-ibm-aix3.2.5
  498. fi
  499. elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  500. echo rs6000-ibm-aix3.2.4
  501. else
  502. echo rs6000-ibm-aix3.2
  503. fi
  504. exit ;;
  505. *:AIX:*:[45])
  506. IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  507. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  508. IBM_ARCH=rs6000
  509. else
  510. IBM_ARCH=powerpc
  511. fi
  512. if [ -x /usr/bin/oslevel ] ; then
  513. IBM_REV=`/usr/bin/oslevel`
  514. else
  515. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  516. fi
  517. echo ${IBM_ARCH}-ibm-aix${IBM_REV}
  518. exit ;;
  519. *:AIX:*:*)
  520. echo rs6000-ibm-aix
  521. exit ;;
  522. ibmrt:4.4BSD:*|romp-ibm:BSD:*)
  523. echo romp-ibm-bsd4.4
  524. exit ;;
  525. ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
  526. echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
  527. exit ;; # report: romp-ibm BSD 4.3
  528. *:BOSX:*:*)
  529. echo rs6000-bull-bosx
  530. exit ;;
  531. DPX/2?00:B.O.S.:*:*)
  532. echo m68k-bull-sysv3
  533. exit ;;
  534. 9000/[34]??:4.3bsd:1.*:*)
  535. echo m68k-hp-bsd
  536. exit ;;
  537. hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
  538. echo m68k-hp-bsd4.4
  539. exit ;;
  540. 9000/[34678]??:HP-UX:*:*)
  541. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  542. case "${UNAME_MACHINE}" in
  543. 9000/31? ) HP_ARCH=m68000 ;;
  544. 9000/[34]?? ) HP_ARCH=m68k ;;
  545. 9000/[678][0-9][0-9])
  546. if [ -x /usr/bin/getconf ]; then
  547. sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
  548. sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
  549. case "${sc_cpu_version}" in
  550. 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
  551. 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
  552. 532) # CPU_PA_RISC2_0
  553. case "${sc_kernel_bits}" in
  554. 32) HP_ARCH="hppa2.0n" ;;
  555. 64) HP_ARCH="hppa2.0w" ;;
  556. '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
  557. esac ;;
  558. esac
  559. fi
  560. if [ "${HP_ARCH}" = "" ]; then
  561. eval $set_cc_for_build
  562. sed 's/^ //' << EOF >$dummy.c
  563. #define _HPUX_SOURCE
  564. #include <stdlib.h>
  565. #include <unistd.h>
  566. int main ()
  567. {
  568. #if defined(_SC_KERNEL_BITS)
  569. long bits = sysconf(_SC_KERNEL_BITS);
  570. #endif
  571. long cpu = sysconf (_SC_CPU_VERSION);
  572. switch (cpu)
  573. {
  574. case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
  575. case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
  576. case CPU_PA_RISC2_0:
  577. #if defined(_SC_KERNEL_BITS)
  578. switch (bits)
  579. {
  580. case 64: puts ("hppa2.0w"); break;
  581. case 32: puts ("hppa2.0n"); break;
  582. default: puts ("hppa2.0"); break;
  583. } break;
  584. #else /* !defined(_SC_KERNEL_BITS) */
  585. puts ("hppa2.0"); break;
  586. #endif
  587. default: puts ("hppa1.0"); break;
  588. }
  589. exit (0);
  590. }
  591. EOF
  592. (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
  593. test -z "$HP_ARCH" && HP_ARCH=hppa
  594. fi ;;
  595. esac
  596. if [ ${HP_ARCH} = "hppa2.0w" ]
  597. then
  598. # avoid double evaluation of $set_cc_for_build
  599. test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
  600. # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
  601. # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
  602. # generating 64-bit code. GNU and HP use different nomenclature:
  603. #
  604. # $ CC_FOR_BUILD=cc ./config.guess
  605. # => hppa2.0w-hp-hpux11.23
  606. # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
  607. # => hppa64-hp-hpux11.23
  608. if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  609. grep __LP64__ >/dev/null
  610. then
  611. HP_ARCH="hppa2.0w"
  612. else
  613. HP_ARCH="hppa64"
  614. fi
  615. fi
  616. echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  617. exit ;;
  618. ia64:HP-UX:*:*)
  619. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  620. echo ia64-hp-hpux${HPUX_REV}
  621. exit ;;
  622. 3050*:HI-UX:*:*)
  623. eval $set_cc_for_build
  624. sed 's/^ //' << EOF >$dummy.c
  625. #include <unistd.h>
  626. int
  627. main ()
  628. {
  629. long cpu = sysconf (_SC_CPU_VERSION);
  630. /* The order matters, because CPU_IS_HP_MC68K erroneously returns
  631. true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
  632. results, however. */
  633. if (CPU_IS_PA_RISC (cpu))
  634. {
  635. switch (cpu)
  636. {
  637. case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
  638. case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
  639. case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
  640. default: puts ("hppa-hitachi-hiuxwe2"); break;
  641. }
  642. }
  643. else if (CPU_IS_HP_MC68K (cpu))
  644. puts ("m68k-hitachi-hiuxwe2");
  645. else puts ("unknown-hitachi-hiuxwe2");
  646. exit (0);
  647. }
  648. EOF
  649. $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
  650. { echo "$SYSTEM_NAME"; exit; }
  651. echo unknown-hitachi-hiuxwe2
  652. exit ;;
  653. 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  654. echo hppa1.1-hp-bsd
  655. exit ;;
  656. 9000/8??:4.3bsd:*:*)
  657. echo hppa1.0-hp-bsd
  658. exit ;;
  659. *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
  660. echo hppa1.0-hp-mpeix
  661. exit ;;
  662. hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  663. echo hppa1.1-hp-osf
  664. exit ;;
  665. hp8??:OSF1:*:*)
  666. echo hppa1.0-hp-osf
  667. exit ;;
  668. i*86:OSF1:*:*)
  669. if [ -x /usr/sbin/sysversion ] ; then
  670. echo ${UNAME_MACHINE}-unknown-osf1mk
  671. else
  672. echo ${UNAME_MACHINE}-unknown-osf1
  673. fi
  674. exit ;;
  675. parisc*:Lites*:*:*)
  676. echo hppa1.1-hp-lites
  677. exit ;;
  678. C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  679. echo c1-convex-bsd
  680. exit ;;
  681. C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
  682. if getsysinfo -f scalar_acc
  683. then echo c32-convex-bsd
  684. else echo c2-convex-bsd
  685. fi
  686. exit ;;
  687. C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
  688. echo c34-convex-bsd
  689. exit ;;
  690. C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
  691. echo c38-convex-bsd
  692. exit ;;
  693. C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  694. echo c4-convex-bsd
  695. exit ;;
  696. CRAY*Y-MP:*:*:*)
  697. echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  698. exit ;;
  699. CRAY*[A-Z]90:*:*:*)
  700. echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
  701. | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
  702. -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
  703. -e 's/\.[^.]*$/.X/'
  704. exit ;;
  705. CRAY*TS:*:*:*)
  706. echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  707. exit ;;
  708. CRAY*T3E:*:*:*)
  709. echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  710. exit ;;
  711. CRAY*SV1:*:*:*)
  712. echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  713. exit ;;
  714. *:UNICOS/mp:*:*)
  715. echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  716. exit ;;
  717. F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  718. FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  719. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  720. FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  721. echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  722. exit ;;
  723. 5000:UNIX_System_V:4.*:*)
  724. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  725. FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  726. echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  727. exit ;;
  728. i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  729. echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  730. exit ;;
  731. sparc*:BSD/OS:*:*)
  732. echo sparc-unknown-bsdi${UNAME_RELEASE}
  733. exit ;;
  734. *:BSD/OS:*:*)
  735. echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  736. exit ;;
  737. *:FreeBSD:*:*)
  738. echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  739. exit ;;
  740. i*:CYGWIN*:*)
  741. echo ${UNAME_MACHINE}-pc-cygwin
  742. exit ;;
  743. i*:MINGW*:*)
  744. echo ${UNAME_MACHINE}-pc-mingw32
  745. exit ;;
  746. i*:windows32*:*)
  747. # uname -m includes "-pc" on this system.
  748. echo ${UNAME_MACHINE}-mingw32
  749. exit ;;
  750. i*:PW*:*)
  751. echo ${UNAME_MACHINE}-pc-pw32
  752. exit ;;
  753. x86:Interix*:[34]*)
  754. echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
  755. exit ;;
  756. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  757. echo i${UNAME_MACHINE}-pc-mks
  758. exit ;;
  759. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  760. # How do we know it's Interix rather than the generic POSIX subsystem?
  761. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  762. # UNAME_MACHINE based on the output of uname instead of i386?
  763. echo i586-pc-interix
  764. exit ;;
  765. i*:UWIN*:*)
  766. echo ${UNAME_MACHINE}-pc-uwin
  767. exit ;;
  768. amd64:CYGWIN*:*:*)
  769. echo x86_64-unknown-cygwin
  770. exit ;;
  771. p*:CYGWIN*:*)
  772. echo powerpcle-unknown-cygwin
  773. exit ;;
  774. prep*:SunOS:5.*:*)
  775. echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  776. exit ;;
  777. *:GNU:*:*)
  778. # the GNU system
  779. echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  780. exit ;;
  781. *:GNU/*:*:*)
  782. # other systems with GNU libc and userland
  783. echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
  784. exit ;;
  785. i*86:Minix:*:*)
  786. echo ${UNAME_MACHINE}-pc-minix
  787. exit ;;
  788. arm*:Linux:*:*)
  789. echo ${UNAME_MACHINE}-unknown-linux-gnu
  790. exit ;;
  791. cris:Linux:*:*)
  792. echo cris-axis-linux-gnu
  793. exit ;;
  794. crisv32:Linux:*:*)
  795. echo crisv32-axis-linux-gnu
  796. exit ;;
  797. frv:Linux:*:*)
  798. echo frv-unknown-linux-gnu
  799. exit ;;
  800. ia64:Linux:*:*)
  801. echo ${UNAME_MACHINE}-unknown-linux-gnu
  802. exit ;;
  803. m32r*:Linux:*:*)
  804. echo ${UNAME_MACHINE}-unknown-linux-gnu
  805. exit ;;
  806. m68*:Linux:*:*)
  807. echo ${UNAME_MACHINE}-unknown-linux-gnu
  808. exit ;;
  809. mips:Linux:*:*)
  810. eval $set_cc_for_build
  811. sed 's/^ //' << EOF >$dummy.c
  812. #undef CPU
  813. #undef mips
  814. #undef mipsel
  815. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  816. CPU=mipsel
  817. #else
  818. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  819. CPU=mips
  820. #else
  821. CPU=
  822. #endif
  823. #endif
  824. EOF
  825. eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  826. test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  827. ;;
  828. mips64:Linux:*:*)
  829. eval $set_cc_for_build
  830. sed 's/^ //' << EOF >$dummy.c
  831. #undef CPU
  832. #undef mips64
  833. #undef mips64el
  834. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  835. CPU=mips64el
  836. #else
  837. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  838. CPU=mips64
  839. #else
  840. CPU=
  841. #endif
  842. #endif
  843. EOF
  844. eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  845. test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  846. ;;
  847. ppc:Linux:*:*)
  848. echo powerpc-unknown-linux-gnu
  849. exit ;;
  850. ppc64:Linux:*:*)
  851. echo powerpc64-unknown-linux-gnu
  852. exit ;;
  853. alpha:Linux:*:*)
  854. case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  855. EV5) UNAME_MACHINE=alphaev5 ;;
  856. EV56) UNAME_MACHINE=alphaev56 ;;
  857. PCA56) UNAME_MACHINE=alphapca56 ;;
  858. PCA57) UNAME_MACHINE=alphapca56 ;;
  859. EV6) UNAME_MACHINE=alphaev6 ;;
  860. EV67) UNAME_MACHINE=alphaev67 ;;
  861. EV68*) UNAME_MACHINE=alphaev68 ;;
  862. esac
  863. objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  864. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  865. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  866. exit ;;
  867. parisc:Linux:*:* | hppa:Linux:*:*)
  868. # Look for CPU level
  869. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  870. PA7*) echo hppa1.1-unknown-linux-gnu ;;
  871. PA8*) echo hppa2.0-unknown-linux-gnu ;;
  872. *) echo hppa-unknown-linux-gnu ;;
  873. esac
  874. exit ;;
  875. parisc64:Linux:*:* | hppa64:Linux:*:*)
  876. echo hppa64-unknown-linux-gnu
  877. exit ;;
  878. s390:Linux:*:* | s390x:Linux:*:*)
  879. echo ${UNAME_MACHINE}-ibm-linux
  880. exit ;;
  881. sh64*:Linux:*:*)
  882. echo ${UNAME_MACHINE}-unknown-linux-gnu
  883. exit ;;
  884. sh*:Linux:*:*)
  885. echo ${UNAME_MACHINE}-unknown-linux-gnu
  886. exit ;;
  887. sparc:Linux:*:* | sparc64:Linux:*:*)
  888. echo ${UNAME_MACHINE}-unknown-linux-gnu
  889. exit ;;
  890. x86_64:Linux:*:*)
  891. echo x86_64-unknown-linux-gnu
  892. exit ;;
  893. i*86:Linux:*:*)
  894. # The BFD linker knows what the default object file format is, so
  895. # first see if it will tell us. cd to the root directory to prevent
  896. # problems with other programs or directories called `ld' in the path.
  897. # Set LC_ALL=C to ensure ld outputs messages in English.
  898. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
  899. | sed -ne '/supported targets:/!d
  900. s/[ ][ ]*/ /g
  901. s/.*supported targets: *//
  902. s/ .*//
  903. p'`
  904. case "$ld_supported_targets" in
  905. elf32-i386)
  906. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  907. ;;
  908. a.out-i386-linux)
  909. echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  910. exit ;;
  911. coff-i386)
  912. echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  913. exit ;;
  914. "")
  915. # Either a pre-BFD a.out linker (linux-gnuoldld) or
  916. # one that does not give us useful --help.
  917. echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  918. exit ;;
  919. esac
  920. # Determine whether the default compiler is a.out or elf
  921. eval $set_cc_for_build
  922. sed 's/^ //' << EOF >$dummy.c
  923. #include <features.h>
  924. #ifdef __ELF__
  925. # ifdef __GLIBC__
  926. # if __GLIBC__ >= 2
  927. LIBC=gnu
  928. # else
  929. LIBC=gnulibc1
  930. # endif
  931. # else
  932. LIBC=gnulibc1
  933. # endif
  934. #else
  935. #ifdef __INTEL_COMPILER
  936. LIBC=gnu
  937. #else
  938. LIBC=gnuaout
  939. #endif
  940. #endif
  941. #ifdef __dietlibc__
  942. LIBC=dietlibc
  943. #endif
  944. EOF
  945. eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  946. test x"${LIBC}" != x && {
  947. echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  948. exit
  949. }
  950. test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
  951. ;;
  952. i*86:DYNIX/ptx:4*:*)
  953. # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  954. # earlier versions are messed up and put the nodename in both
  955. # sysname and nodename.
  956. echo i386-sequent-sysv4
  957. exit ;;
  958. i*86:UNIX_SV:4.2MP:2.*)
  959. # Unixware is an offshoot of SVR4, but it has its own version
  960. # number series starting with 2...
  961. # I am not positive that other SVR4 systems won't match this,
  962. # I just have to hope. -- rms.
  963. # Use sysv4.2uw... so that sysv4* matches it.
  964. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  965. exit ;;
  966. i*86:OS/2:*:*)
  967. # If we were able to find `uname', then EMX Unix compatibility
  968. # is probably installed.
  969. echo ${UNAME_MACHINE}-pc-os2-emx
  970. exit ;;
  971. i*86:XTS-300:*:STOP)
  972. echo ${UNAME_MACHINE}-unknown-stop
  973. exit ;;
  974. i*86:atheos:*:*)
  975. echo ${UNAME_MACHINE}-unknown-atheos
  976. exit ;;
  977. i*86:syllable:*:*)
  978. echo ${UNAME_MACHINE}-pc-syllable
  979. exit ;;
  980. i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  981. echo i386-unknown-lynxos${UNAME_RELEASE}
  982. exit ;;
  983. i*86:*DOS:*:*)
  984. echo ${UNAME_MACHINE}-pc-msdosdjgpp
  985. exit ;;
  986. i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
  987. UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  988. if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  989. echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
  990. else
  991. echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  992. fi
  993. exit ;;
  994. i*86:*:5:[678]*)
  995. # UnixWare 7.x, OpenUNIX and OpenServer 6.
  996. case `/bin/uname -X | grep "^Machine"` in
  997. *486*) UNAME_MACHINE=i486 ;;
  998. *Pentium) UNAME_MACHINE=i586 ;;
  999. *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  1000. esac
  1001. echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  1002. exit ;;
  1003. i*86:*:3.2:*)
  1004. if test -f /usr/options/cb.name; then
  1005. UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  1006. echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
  1007. elif /bin/uname -X 2>/dev/null >/dev/null ; then
  1008. UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
  1009. (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
  1010. (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
  1011. && UNAME_MACHINE=i586
  1012. (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
  1013. && UNAME_MACHINE=i686
  1014. (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
  1015. && UNAME_MACHINE=i686
  1016. echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
  1017. else
  1018. echo ${UNAME_MACHINE}-pc-sysv32
  1019. fi
  1020. exit ;;
  1021. pc:*:*:*)
  1022. # Left here for compatibility:
  1023. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  1024. # the processor, so we play safe by assuming i386.
  1025. echo i386-pc-msdosdjgpp
  1026. exit ;;
  1027. Intel:Mach:3*:*)
  1028. echo i386-pc-mach3
  1029. exit ;;
  1030. paragon:*:*:*)
  1031. echo i860-intel-osf1
  1032. exit ;;
  1033. i860:*:4.*:*) # i860-SVR4
  1034. if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  1035. echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  1036. else # Add other i860-SVR4 vendors below as they are discovered.
  1037. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
  1038. fi
  1039. exit ;;
  1040. mini*:CTIX:SYS*5:*)
  1041. # "miniframe"
  1042. echo m68010-convergent-sysv
  1043. exit ;;
  1044. mc68k:UNIX:SYSTEM5:3.51m)
  1045. echo m68k-convergent-sysv
  1046. exit ;;
  1047. M680?0:D-NIX:5.3:*)
  1048. echo m68k-diab-dnix
  1049. exit ;;
  1050. M68*:*:R3V[5678]*:*)
  1051. test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
  1052. 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
  1053. OS_REL=''
  1054. test -r /etc/.relid \
  1055. && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  1056. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  1057. && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  1058. /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  1059. && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  1060. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  1061. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  1062. && { echo i486-ncr-sysv4; exit; } ;;
  1063. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  1064. echo m68k-unknown-lynxos${UNAME_RELEASE}
  1065. exit ;;
  1066. mc68030:UNIX_System_V:4.*:*)
  1067. echo m68k-atari-sysv4
  1068. exit ;;
  1069. TSUNAMI:LynxOS:2.*:*)
  1070. echo sparc-unknown-lynxos${UNAME_RELEASE}
  1071. exit ;;
  1072. rs6000:LynxOS:2.*:*)
  1073. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  1074. exit ;;
  1075. PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  1076. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  1077. exit ;;
  1078. SM[BE]S:UNIX_SV:*:*)
  1079. echo mips-dde-sysv${UNAME_RELEASE}
  1080. exit ;;
  1081. RM*:ReliantUNIX-*:*:*)
  1082. echo mips-sni-sysv4
  1083. exit ;;
  1084. RM*:SINIX-*:*:*)
  1085. echo mips-sni-sysv4
  1086. exit ;;
  1087. *:SINIX-*:*:*)
  1088. if uname -p 2>/dev/null >/dev/null ; then
  1089. UNAME_MACHINE=`(uname -p) 2>/dev/null`
  1090. echo ${UNAME_MACHINE}-sni-sysv4
  1091. else
  1092. echo ns32k-sni-sysv
  1093. fi
  1094. exit ;;
  1095. PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  1096. # says <Richard.M.Bartel@ccMail.Census.GOV>
  1097. echo i586-unisys-sysv4
  1098. exit ;;
  1099. *:UNIX_System_V:4*:FTX*)
  1100. # From Gerald Hewes <hewes@openmarket.com>.
  1101. # How about differentiating between stratus architectures? -djm
  1102. echo hppa1.1-stratus-sysv4
  1103. exit ;;
  1104. *:*:*:FTX*)
  1105. # From seanf@swdc.stratus.com.
  1106. echo i860-stratus-sysv4
  1107. exit ;;
  1108. i*86:VOS:*:*)
  1109. # From Paul.Green@stratus.com.
  1110. echo ${UNAME_MACHINE}-stratus-vos
  1111. exit ;;
  1112. *:VOS:*:*)
  1113. # From Paul.Green@stratus.com.
  1114. echo hppa1.1-stratus-vos
  1115. exit ;;
  1116. mc68*:A/UX:*:*)
  1117. echo m68k-apple-aux${UNAME_RELEASE}
  1118. exit ;;
  1119. news*:NEWS-OS:6*:*)
  1120. echo mips-sony-newsos6
  1121. exit ;;
  1122. R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  1123. if [ -d /usr/nec ]; then
  1124. echo mips-nec-sysv${UNAME_RELEASE}
  1125. else
  1126. echo mips-unknown-sysv${UNAME_RELEASE}
  1127. fi
  1128. exit ;;
  1129. BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
  1130. echo powerpc-be-beos
  1131. exit ;;
  1132. BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
  1133. echo powerpc-apple-beos
  1134. exit ;;
  1135. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  1136. echo i586-pc-beos
  1137. exit ;;
  1138. SX-4:SUPER-UX:*:*)
  1139. echo sx4-nec-superux${UNAME_RELEASE}
  1140. exit ;;
  1141. SX-5:SUPER-UX:*:*)
  1142. echo sx5-nec-superux${UNAME_RELEASE}
  1143. exit ;;
  1144. SX-6:SUPER-UX:*:*)
  1145. echo sx6-nec-superux${UNAME_RELEASE}
  1146. exit ;;
  1147. Power*:Rhapsody:*:*)
  1148. echo powerpc-apple-rhapsody${UNAME_RELEASE}
  1149. exit ;;
  1150. *:Rhapsody:*:*)
  1151. echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  1152. exit ;;
  1153. *:Darwin:*:*)
  1154. UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  1155. case $UNAME_PROCESSOR in
  1156. *86) UNAME_PROCESSOR=i686 ;;
  1157. unknown) UNAME_PROCESSOR=powerpc ;;
  1158. esac
  1159. echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  1160. exit ;;
  1161. *:procnto*:*:* | *:QNX:[0123456789]*:*)
  1162. UNAME_PROCESSOR=`uname -p`
  1163. if test "$UNAME_PROCESSOR" = "x86"; then
  1164. UNAME_PROCESSOR=i386
  1165. UNAME_MACHINE=pc
  1166. fi
  1167. echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  1168. exit ;;
  1169. *:QNX:*:4*)
  1170. echo i386-pc-qnx
  1171. exit ;;
  1172. NSE-?:NONSTOP_KERNEL:*:*)
  1173. echo nse-tandem-nsk${UNAME_RELEASE}
  1174. exit ;;
  1175. NSR-?:NONSTOP_KERNEL:*:*)
  1176. echo nsr-tandem-nsk${UNAME_RELEASE}
  1177. exit ;;
  1178. *:NonStop-UX:*:*)
  1179. echo mips-compaq-nonstopux
  1180. exit ;;
  1181. BS2000:POSIX*:*:*)
  1182. echo bs2000-siemens-sysv
  1183. exit ;;
  1184. DS/*:UNIX_System_V:*:*)
  1185. echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  1186. exit ;;
  1187. *:Plan9:*:*)
  1188. # "uname -m" is not consistent, so use $cputype instead. 386
  1189. # is converted to i386 for consistency with other x86
  1190. # operating systems.
  1191. if test "$cputype" = "386"; then
  1192. UNAME_MACHINE=i386
  1193. else
  1194. UNAME_MACHINE="$cputype"
  1195. fi
  1196. echo ${UNAME_MACHINE}-unknown-plan9
  1197. exit ;;
  1198. *:TOPS-10:*:*)
  1199. echo pdp10-unknown-tops10
  1200. exit ;;
  1201. *:TENEX:*:*)
  1202. echo pdp10-unknown-tenex
  1203. exit ;;
  1204. KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  1205. echo pdp10-dec-tops20
  1206. exit ;;
  1207. XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  1208. echo pdp10-xkl-tops20
  1209. exit ;;
  1210. *:TOPS-20:*:*)
  1211. echo pdp10-unknown-tops20
  1212. exit ;;
  1213. *:ITS:*:*)
  1214. echo pdp10-unknown-its
  1215. exit ;;
  1216. SEI:*:*:SEIUX)
  1217. echo mips-sei-seiux${UNAME_RELEASE}
  1218. exit ;;
  1219. *:DragonFly:*:*)
  1220. echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  1221. exit ;;
  1222. *:*VMS:*:*)
  1223. UNAME_MACHINE=`(uname -p) 2>/dev/null`
  1224. case "${UNAME_MACHINE}" in
  1225. A*) echo alpha-dec-vms ; exit ;;
  1226. I*) echo ia64-dec-vms ; exit ;;
  1227. V*) echo vax-dec-vms ; exit ;;
  1228. esac ;;
  1229. *:XENIX:*:SysV)
  1230. echo i386-pc-xenix
  1231. exit ;;
  1232. i*86:skyos:*:*)
  1233. echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
  1234. exit ;;
  1235. esac
  1236. #echo '(No uname command or uname output not recognized.)' 1>&2
  1237. #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  1238. eval $set_cc_for_build
  1239. cat >$dummy.c <<EOF
  1240. #ifdef _SEQUENT_
  1241. # include <sys/types.h>
  1242. # include <sys/utsname.h>
  1243. #endif
  1244. main ()
  1245. {
  1246. #if defined (sony)
  1247. #if defined (MIPSEB)
  1248. /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
  1249. I don't know.... */
  1250. printf ("mips-sony-bsd\n"); exit (0);
  1251. #else
  1252. #include <sys/param.h>
  1253. printf ("m68k-sony-newsos%s\n",
  1254. #ifdef NEWSOS4
  1255. "4"
  1256. #else
  1257. ""
  1258. #endif
  1259. ); exit (0);
  1260. #endif
  1261. #endif
  1262. #if defined (__arm) && defined (__acorn) && defined (__unix)
  1263. printf ("arm-acorn-riscix\n"); exit (0);
  1264. #endif
  1265. #if defined (hp300) && !defined (hpux)
  1266. printf ("m68k-hp-bsd\n"); exit (0);
  1267. #endif
  1268. #if defined (NeXT)
  1269. #if !defined (__ARCHITECTURE__)
  1270. #define __ARCHITECTURE__ "m68k"
  1271. #endif
  1272. int version;
  1273. version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  1274. if (version < 4)
  1275. printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  1276. else
  1277. printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  1278. exit (0);
  1279. #endif
  1280. #if defined (MULTIMAX) || defined (n16)
  1281. #if defined (UMAXV)
  1282. printf ("ns32k-encore-sysv\n"); exit (0);
  1283. #else
  1284. #if defined (CMU)
  1285. printf ("ns32k-encore-mach\n"); exit (0);
  1286. #else
  1287. printf ("ns32k-encore-bsd\n"); exit (0);
  1288. #endif
  1289. #endif
  1290. #endif
  1291. #if defined (__386BSD__)
  1292. printf ("i386-pc-bsd\n"); exit (0);
  1293. #endif
  1294. #if defined (sequent)
  1295. #if defined (i386)
  1296. printf ("i386-sequent-dynix\n"); exit (0);
  1297. #endif
  1298. #if defined (ns32000)
  1299. printf ("ns32k-sequent-dynix\n"); exit (0);
  1300. #endif
  1301. #endif
  1302. #if defined (_SEQUENT_)
  1303. struct utsname un;
  1304. uname(&un);
  1305. if (strncmp(un.version, "V2", 2) == 0) {
  1306. printf ("i386-sequent-ptx2\n"); exit (0);
  1307. }
  1308. if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
  1309. printf ("i386-sequent-ptx1\n"); exit (0);
  1310. }
  1311. printf ("i386-sequent-ptx\n"); exit (0);
  1312. #endif
  1313. #if defined (vax)
  1314. # if !defined (ultrix)
  1315. # include <sys/param.h>
  1316. # if defined (BSD)
  1317. # if BSD == 43
  1318. printf ("vax-dec-bsd4.3\n"); exit (0);
  1319. # else
  1320. # if BSD == 199006
  1321. printf ("vax-dec-bsd4.3reno\n"); exit (0);
  1322. # else
  1323. printf ("vax-dec-bsd\n"); exit (0);
  1324. # endif
  1325. # endif
  1326. # else
  1327. printf ("vax-dec-bsd\n"); exit (0);
  1328. # endif
  1329. # else
  1330. printf ("vax-dec-ultrix\n"); exit (0);
  1331. # endif
  1332. #endif
  1333. #if defined (alliant) && defined (i860)
  1334. printf ("i860-alliant-bsd\n"); exit (0);
  1335. #endif
  1336. exit (1);
  1337. }
  1338. EOF
  1339. $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
  1340. { echo "$SYSTEM_NAME"; exit; }
  1341. # Apollos put the system type in the environment.
  1342. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
  1343. # Convex versions that predate uname can use getsysinfo(1)
  1344. if [ -x /usr/convex/getsysinfo ]
  1345. then
  1346. case `getsysinfo -f cpu_type` in
  1347. c1*)
  1348. echo c1-convex-bsd
  1349. exit ;;
  1350. c2*)
  1351. if getsysinfo -f scalar_acc
  1352. then echo c32-convex-bsd
  1353. else echo c2-convex-bsd
  1354. fi
  1355. exit ;;
  1356. c34*)
  1357. echo c34-convex-bsd
  1358. exit ;;
  1359. c38*)
  1360. echo c38-convex-bsd
  1361. exit ;;
  1362. c4*)
  1363. echo c4-convex-bsd
  1364. exit ;;
  1365. esac
  1366. fi
  1367. cat >&2 <<EOF
  1368. $0: unable to guess system type
  1369. This script, last modified $timestamp, has failed to recognize
  1370. the operating system you are using. It is advised that you
  1371. download the most up to date version of the config scripts from
  1372. http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
  1373. and
  1374. http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
  1375. If the version you run ($0) is already up to date, please
  1376. send the following data and any information you think might be
  1377. pertinent to <config-patches@gnu.org> in order to provide the needed
  1378. information to handle your system.
  1379. config.guess timestamp = $timestamp
  1380. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1381. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1382. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1383. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1384. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
  1385. /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
  1386. hostinfo = `(hostinfo) 2>/dev/null`
  1387. /bin/universe = `(/bin/universe) 2>/dev/null`
  1388. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
  1389. /bin/arch = `(/bin/arch) 2>/dev/null`
  1390. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
  1391. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
  1392. UNAME_MACHINE = ${UNAME_MACHINE}
  1393. UNAME_RELEASE = ${UNAME_RELEASE}
  1394. UNAME_SYSTEM = ${UNAME_SYSTEM}
  1395. UNAME_VERSION = ${UNAME_VERSION}
  1396. EOF
  1397. exit 1
  1398. # Local variables:
  1399. # eval: (add-hook 'write-file-hooks 'time-stamp)
  1400. # time-stamp-start: "timestamp='"
  1401. # time-stamp-format: "%:y-%02m-%02d"
  1402. # time-stamp-end: "'"
  1403. # End: