config.guess 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476
  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-12-23'
  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 ; set_cc_for_build= ;'
  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. eval $set_cc_for_build
  599. # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
  600. # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
  601. # generating 64-bit code. GNU and HP use different nomenclature:
  602. #
  603. # $ CC_FOR_BUILD=cc ./config.guess
  604. # => hppa2.0w-hp-hpux11.23
  605. # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
  606. # => hppa64-hp-hpux11.23
  607. if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  608. grep __LP64__ >/dev/null
  609. then
  610. HP_ARCH="hppa2.0w"
  611. else
  612. HP_ARCH="hppa64"
  613. fi
  614. fi
  615. echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  616. exit ;;
  617. ia64:HP-UX:*:*)
  618. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  619. echo ia64-hp-hpux${HPUX_REV}
  620. exit ;;
  621. 3050*:HI-UX:*:*)
  622. eval $set_cc_for_build
  623. sed 's/^ //' << EOF >$dummy.c
  624. #include <unistd.h>
  625. int
  626. main ()
  627. {
  628. long cpu = sysconf (_SC_CPU_VERSION);
  629. /* The order matters, because CPU_IS_HP_MC68K erroneously returns
  630. true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
  631. results, however. */
  632. if (CPU_IS_PA_RISC (cpu))
  633. {
  634. switch (cpu)
  635. {
  636. case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
  637. case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
  638. case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
  639. default: puts ("hppa-hitachi-hiuxwe2"); break;
  640. }
  641. }
  642. else if (CPU_IS_HP_MC68K (cpu))
  643. puts ("m68k-hitachi-hiuxwe2");
  644. else puts ("unknown-hitachi-hiuxwe2");
  645. exit (0);
  646. }
  647. EOF
  648. $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
  649. { echo "$SYSTEM_NAME"; exit; }
  650. echo unknown-hitachi-hiuxwe2
  651. exit ;;
  652. 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  653. echo hppa1.1-hp-bsd
  654. exit ;;
  655. 9000/8??:4.3bsd:*:*)
  656. echo hppa1.0-hp-bsd
  657. exit ;;
  658. *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
  659. echo hppa1.0-hp-mpeix
  660. exit ;;
  661. hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  662. echo hppa1.1-hp-osf
  663. exit ;;
  664. hp8??:OSF1:*:*)
  665. echo hppa1.0-hp-osf
  666. exit ;;
  667. i*86:OSF1:*:*)
  668. if [ -x /usr/sbin/sysversion ] ; then
  669. echo ${UNAME_MACHINE}-unknown-osf1mk
  670. else
  671. echo ${UNAME_MACHINE}-unknown-osf1
  672. fi
  673. exit ;;
  674. parisc*:Lites*:*:*)
  675. echo hppa1.1-hp-lites
  676. exit ;;
  677. C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  678. echo c1-convex-bsd
  679. exit ;;
  680. C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
  681. if getsysinfo -f scalar_acc
  682. then echo c32-convex-bsd
  683. else echo c2-convex-bsd
  684. fi
  685. exit ;;
  686. C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
  687. echo c34-convex-bsd
  688. exit ;;
  689. C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
  690. echo c38-convex-bsd
  691. exit ;;
  692. C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  693. echo c4-convex-bsd
  694. exit ;;
  695. CRAY*Y-MP:*:*:*)
  696. echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  697. exit ;;
  698. CRAY*[A-Z]90:*:*:*)
  699. echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
  700. | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
  701. -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
  702. -e 's/\.[^.]*$/.X/'
  703. exit ;;
  704. CRAY*TS:*:*:*)
  705. echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  706. exit ;;
  707. CRAY*T3E:*:*:*)
  708. echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  709. exit ;;
  710. CRAY*SV1:*:*:*)
  711. echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  712. exit ;;
  713. *:UNICOS/mp:*:*)
  714. echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  715. exit ;;
  716. F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  717. FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  718. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  719. FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  720. echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  721. exit ;;
  722. 5000:UNIX_System_V:4.*:*)
  723. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  724. FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  725. echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  726. exit ;;
  727. i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  728. echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  729. exit ;;
  730. sparc*:BSD/OS:*:*)
  731. echo sparc-unknown-bsdi${UNAME_RELEASE}
  732. exit ;;
  733. *:BSD/OS:*:*)
  734. echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  735. exit ;;
  736. *:FreeBSD:*:*)
  737. case ${UNAME_MACHINE} in
  738. pc98)
  739. echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  740. *)
  741. echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  742. esac
  743. exit ;;
  744. i*:CYGWIN*:*)
  745. echo ${UNAME_MACHINE}-pc-cygwin
  746. exit ;;
  747. i*:MINGW*:*)
  748. echo ${UNAME_MACHINE}-pc-mingw32
  749. exit ;;
  750. i*:windows32*:*)
  751. # uname -m includes "-pc" on this system.
  752. echo ${UNAME_MACHINE}-mingw32
  753. exit ;;
  754. i*:PW*:*)
  755. echo ${UNAME_MACHINE}-pc-pw32
  756. exit ;;
  757. x86:Interix*:[345]*)
  758. echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
  759. exit ;;
  760. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  761. echo i${UNAME_MACHINE}-pc-mks
  762. exit ;;
  763. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  764. # How do we know it's Interix rather than the generic POSIX subsystem?
  765. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  766. # UNAME_MACHINE based on the output of uname instead of i386?
  767. echo i586-pc-interix
  768. exit ;;
  769. i*:UWIN*:*)
  770. echo ${UNAME_MACHINE}-pc-uwin
  771. exit ;;
  772. amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
  773. echo x86_64-unknown-cygwin
  774. exit ;;
  775. p*:CYGWIN*:*)
  776. echo powerpcle-unknown-cygwin
  777. exit ;;
  778. prep*:SunOS:5.*:*)
  779. echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  780. exit ;;
  781. *:GNU:*:*)
  782. # the GNU system
  783. echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  784. exit ;;
  785. *:GNU/*:*:*)
  786. # other systems with GNU libc and userland
  787. echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
  788. exit ;;
  789. i*86:Minix:*:*)
  790. echo ${UNAME_MACHINE}-pc-minix
  791. exit ;;
  792. arm*:Linux:*:*)
  793. echo ${UNAME_MACHINE}-unknown-linux-gnu
  794. exit ;;
  795. cris:Linux:*:*)
  796. echo cris-axis-linux-gnu
  797. exit ;;
  798. crisv32:Linux:*:*)
  799. echo crisv32-axis-linux-gnu
  800. exit ;;
  801. frv:Linux:*:*)
  802. echo frv-unknown-linux-gnu
  803. exit ;;
  804. ia64:Linux:*:*)
  805. echo ${UNAME_MACHINE}-unknown-linux-gnu
  806. exit ;;
  807. m32r*:Linux:*:*)
  808. echo ${UNAME_MACHINE}-unknown-linux-gnu
  809. exit ;;
  810. m68*:Linux:*:*)
  811. echo ${UNAME_MACHINE}-unknown-linux-gnu
  812. exit ;;
  813. mips:Linux:*:*)
  814. eval $set_cc_for_build
  815. sed 's/^ //' << EOF >$dummy.c
  816. #undef CPU
  817. #undef mips
  818. #undef mipsel
  819. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  820. CPU=mipsel
  821. #else
  822. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  823. CPU=mips
  824. #else
  825. CPU=
  826. #endif
  827. #endif
  828. EOF
  829. eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`"
  830. test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  831. ;;
  832. mips64:Linux:*:*)
  833. eval $set_cc_for_build
  834. sed 's/^ //' << EOF >$dummy.c
  835. #undef CPU
  836. #undef mips64
  837. #undef mips64el
  838. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  839. CPU=mips64el
  840. #else
  841. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  842. CPU=mips64
  843. #else
  844. CPU=
  845. #endif
  846. #endif
  847. EOF
  848. eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`"
  849. test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  850. ;;
  851. or32:Linux:*:*)
  852. echo or32-unknown-linux-gnu
  853. exit ;;
  854. ppc:Linux:*:*)
  855. echo powerpc-unknown-linux-gnu
  856. exit ;;
  857. ppc64:Linux:*:*)
  858. echo powerpc64-unknown-linux-gnu
  859. exit ;;
  860. alpha:Linux:*:*)
  861. case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  862. EV5) UNAME_MACHINE=alphaev5 ;;
  863. EV56) UNAME_MACHINE=alphaev56 ;;
  864. PCA56) UNAME_MACHINE=alphapca56 ;;
  865. PCA57) UNAME_MACHINE=alphapca56 ;;
  866. EV6) UNAME_MACHINE=alphaev6 ;;
  867. EV67) UNAME_MACHINE=alphaev67 ;;
  868. EV68*) UNAME_MACHINE=alphaev68 ;;
  869. esac
  870. objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  871. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  872. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  873. exit ;;
  874. parisc:Linux:*:* | hppa:Linux:*:*)
  875. # Look for CPU level
  876. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  877. PA7*) echo hppa1.1-unknown-linux-gnu ;;
  878. PA8*) echo hppa2.0-unknown-linux-gnu ;;
  879. *) echo hppa-unknown-linux-gnu ;;
  880. esac
  881. exit ;;
  882. parisc64:Linux:*:* | hppa64:Linux:*:*)
  883. echo hppa64-unknown-linux-gnu
  884. exit ;;
  885. s390:Linux:*:* | s390x:Linux:*:*)
  886. echo ${UNAME_MACHINE}-ibm-linux
  887. exit ;;
  888. sh64*:Linux:*:*)
  889. echo ${UNAME_MACHINE}-unknown-linux-gnu
  890. exit ;;
  891. sh*:Linux:*:*)
  892. echo ${UNAME_MACHINE}-unknown-linux-gnu
  893. exit ;;
  894. sparc:Linux:*:* | sparc64:Linux:*:*)
  895. echo ${UNAME_MACHINE}-unknown-linux-gnu
  896. exit ;;
  897. vax:Linux:*:*)
  898. echo ${UNAME_MACHINE}-dec-linux-gnu
  899. exit ;;
  900. x86_64:Linux:*:*)
  901. echo x86_64-unknown-linux-gnu
  902. exit ;;
  903. i*86:Linux:*:*)
  904. # The BFD linker knows what the default object file format is, so
  905. # first see if it will tell us. cd to the root directory to prevent
  906. # problems with other programs or directories called `ld' in the path.
  907. # Set LC_ALL=C to ensure ld outputs messages in English.
  908. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
  909. | sed -ne '/supported targets:/!d
  910. s/[ ][ ]*/ /g
  911. s/.*supported targets: *//
  912. s/ .*//
  913. p'`
  914. case "$ld_supported_targets" in
  915. elf32-i386)
  916. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  917. ;;
  918. a.out-i386-linux)
  919. echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  920. exit ;;
  921. coff-i386)
  922. echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  923. exit ;;
  924. "")
  925. # Either a pre-BFD a.out linker (linux-gnuoldld) or
  926. # one that does not give us useful --help.
  927. echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  928. exit ;;
  929. esac
  930. # Determine whether the default compiler is a.out or elf
  931. eval $set_cc_for_build
  932. sed 's/^ //' << EOF >$dummy.c
  933. #include <features.h>
  934. #ifdef __ELF__
  935. # ifdef __GLIBC__
  936. # if __GLIBC__ >= 2
  937. LIBC=gnu
  938. # else
  939. LIBC=gnulibc1
  940. # endif
  941. # else
  942. LIBC=gnulibc1
  943. # endif
  944. #else
  945. #if defined(__INTEL_COMPILER) || defined(__PGI)
  946. LIBC=gnu
  947. #else
  948. LIBC=gnuaout
  949. #endif
  950. #endif
  951. #ifdef __dietlibc__
  952. LIBC=dietlibc
  953. #endif
  954. EOF
  955. eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^LIBC/{s: ::g;p;}'`"
  956. test x"${LIBC}" != x && {
  957. echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  958. exit
  959. }
  960. test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
  961. ;;
  962. i*86:DYNIX/ptx:4*:*)
  963. # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  964. # earlier versions are messed up and put the nodename in both
  965. # sysname and nodename.
  966. echo i386-sequent-sysv4
  967. exit ;;
  968. i*86:UNIX_SV:4.2MP:2.*)
  969. # Unixware is an offshoot of SVR4, but it has its own version
  970. # number series starting with 2...
  971. # I am not positive that other SVR4 systems won't match this,
  972. # I just have to hope. -- rms.
  973. # Use sysv4.2uw... so that sysv4* matches it.
  974. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  975. exit ;;
  976. i*86:OS/2:*:*)
  977. # If we were able to find `uname', then EMX Unix compatibility
  978. # is probably installed.
  979. echo ${UNAME_MACHINE}-pc-os2-emx
  980. exit ;;
  981. i*86:XTS-300:*:STOP)
  982. echo ${UNAME_MACHINE}-unknown-stop
  983. exit ;;
  984. i*86:atheos:*:*)
  985. echo ${UNAME_MACHINE}-unknown-atheos
  986. exit ;;
  987. i*86:syllable:*:*)
  988. echo ${UNAME_MACHINE}-pc-syllable
  989. exit ;;
  990. i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  991. echo i386-unknown-lynxos${UNAME_RELEASE}
  992. exit ;;
  993. i*86:*DOS:*:*)
  994. echo ${UNAME_MACHINE}-pc-msdosdjgpp
  995. exit ;;
  996. i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
  997. UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  998. if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  999. echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
  1000. else
  1001. echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  1002. fi
  1003. exit ;;
  1004. i*86:*:5:[678]*)
  1005. # UnixWare 7.x, OpenUNIX and OpenServer 6.
  1006. case `/bin/uname -X | grep "^Machine"` in
  1007. *486*) UNAME_MACHINE=i486 ;;
  1008. *Pentium) UNAME_MACHINE=i586 ;;
  1009. *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  1010. esac
  1011. echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  1012. exit ;;
  1013. i*86:*:3.2:*)
  1014. if test -f /usr/options/cb.name; then
  1015. UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  1016. echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
  1017. elif /bin/uname -X 2>/dev/null >/dev/null ; then
  1018. UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
  1019. (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
  1020. (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
  1021. && UNAME_MACHINE=i586
  1022. (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
  1023. && UNAME_MACHINE=i686
  1024. (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
  1025. && UNAME_MACHINE=i686
  1026. echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
  1027. else
  1028. echo ${UNAME_MACHINE}-pc-sysv32
  1029. fi
  1030. exit ;;
  1031. pc:*:*:*)
  1032. # Left here for compatibility:
  1033. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  1034. # the processor, so we play safe by assuming i386.
  1035. echo i386-pc-msdosdjgpp
  1036. exit ;;
  1037. Intel:Mach:3*:*)
  1038. echo i386-pc-mach3
  1039. exit ;;
  1040. paragon:*:*:*)
  1041. echo i860-intel-osf1
  1042. exit ;;
  1043. i860:*:4.*:*) # i860-SVR4
  1044. if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  1045. echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  1046. else # Add other i860-SVR4 vendors below as they are discovered.
  1047. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
  1048. fi
  1049. exit ;;
  1050. mini*:CTIX:SYS*5:*)
  1051. # "miniframe"
  1052. echo m68010-convergent-sysv
  1053. exit ;;
  1054. mc68k:UNIX:SYSTEM5:3.51m)
  1055. echo m68k-convergent-sysv
  1056. exit ;;
  1057. M680?0:D-NIX:5.3:*)
  1058. echo m68k-diab-dnix
  1059. exit ;;
  1060. M68*:*:R3V[5678]*:*)
  1061. test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
  1062. 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)
  1063. OS_REL=''
  1064. test -r /etc/.relid \
  1065. && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  1066. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  1067. && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  1068. /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  1069. && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  1070. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  1071. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  1072. && { echo i486-ncr-sysv4; exit; } ;;
  1073. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  1074. echo m68k-unknown-lynxos${UNAME_RELEASE}
  1075. exit ;;
  1076. mc68030:UNIX_System_V:4.*:*)
  1077. echo m68k-atari-sysv4
  1078. exit ;;
  1079. TSUNAMI:LynxOS:2.*:*)
  1080. echo sparc-unknown-lynxos${UNAME_RELEASE}
  1081. exit ;;
  1082. rs6000:LynxOS:2.*:*)
  1083. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  1084. exit ;;
  1085. PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  1086. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  1087. exit ;;
  1088. SM[BE]S:UNIX_SV:*:*)
  1089. echo mips-dde-sysv${UNAME_RELEASE}
  1090. exit ;;
  1091. RM*:ReliantUNIX-*:*:*)
  1092. echo mips-sni-sysv4
  1093. exit ;;
  1094. RM*:SINIX-*:*:*)
  1095. echo mips-sni-sysv4
  1096. exit ;;
  1097. *:SINIX-*:*:*)
  1098. if uname -p 2>/dev/null >/dev/null ; then
  1099. UNAME_MACHINE=`(uname -p) 2>/dev/null`
  1100. echo ${UNAME_MACHINE}-sni-sysv4
  1101. else
  1102. echo ns32k-sni-sysv
  1103. fi
  1104. exit ;;
  1105. PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  1106. # says <Richard.M.Bartel@ccMail.Census.GOV>
  1107. echo i586-unisys-sysv4
  1108. exit ;;
  1109. *:UNIX_System_V:4*:FTX*)
  1110. # From Gerald Hewes <hewes@openmarket.com>.
  1111. # How about differentiating between stratus architectures? -djm
  1112. echo hppa1.1-stratus-sysv4
  1113. exit ;;
  1114. *:*:*:FTX*)
  1115. # From seanf@swdc.stratus.com.
  1116. echo i860-stratus-sysv4
  1117. exit ;;
  1118. i*86:VOS:*:*)
  1119. # From Paul.Green@stratus.com.
  1120. echo ${UNAME_MACHINE}-stratus-vos
  1121. exit ;;
  1122. *:VOS:*:*)
  1123. # From Paul.Green@stratus.com.
  1124. echo hppa1.1-stratus-vos
  1125. exit ;;
  1126. mc68*:A/UX:*:*)
  1127. echo m68k-apple-aux${UNAME_RELEASE}
  1128. exit ;;
  1129. news*:NEWS-OS:6*:*)
  1130. echo mips-sony-newsos6
  1131. exit ;;
  1132. R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  1133. if [ -d /usr/nec ]; then
  1134. echo mips-nec-sysv${UNAME_RELEASE}
  1135. else
  1136. echo mips-unknown-sysv${UNAME_RELEASE}
  1137. fi
  1138. exit ;;
  1139. BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
  1140. echo powerpc-be-beos
  1141. exit ;;
  1142. BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
  1143. echo powerpc-apple-beos
  1144. exit ;;
  1145. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  1146. echo i586-pc-beos
  1147. exit ;;
  1148. SX-4:SUPER-UX:*:*)
  1149. echo sx4-nec-superux${UNAME_RELEASE}
  1150. exit ;;
  1151. SX-5:SUPER-UX:*:*)
  1152. echo sx5-nec-superux${UNAME_RELEASE}
  1153. exit ;;
  1154. SX-6:SUPER-UX:*:*)
  1155. echo sx6-nec-superux${UNAME_RELEASE}
  1156. exit ;;
  1157. Power*:Rhapsody:*:*)
  1158. echo powerpc-apple-rhapsody${UNAME_RELEASE}
  1159. exit ;;
  1160. *:Rhapsody:*:*)
  1161. echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  1162. exit ;;
  1163. *:Darwin:*:*)
  1164. UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  1165. case $UNAME_PROCESSOR in
  1166. unknown) UNAME_PROCESSOR=powerpc ;;
  1167. esac
  1168. echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  1169. exit ;;
  1170. *:procnto*:*:* | *:QNX:[0123456789]*:*)
  1171. UNAME_PROCESSOR=`uname -p`
  1172. if test "$UNAME_PROCESSOR" = "x86"; then
  1173. UNAME_PROCESSOR=i386
  1174. UNAME_MACHINE=pc
  1175. fi
  1176. echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  1177. exit ;;
  1178. *:QNX:*:4*)
  1179. echo i386-pc-qnx
  1180. exit ;;
  1181. NSE-?:NONSTOP_KERNEL:*:*)
  1182. echo nse-tandem-nsk${UNAME_RELEASE}
  1183. exit ;;
  1184. NSR-?:NONSTOP_KERNEL:*:*)
  1185. echo nsr-tandem-nsk${UNAME_RELEASE}
  1186. exit ;;
  1187. *:NonStop-UX:*:*)
  1188. echo mips-compaq-nonstopux
  1189. exit ;;
  1190. BS2000:POSIX*:*:*)
  1191. echo bs2000-siemens-sysv
  1192. exit ;;
  1193. DS/*:UNIX_System_V:*:*)
  1194. echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  1195. exit ;;
  1196. *:Plan9:*:*)
  1197. # "uname -m" is not consistent, so use $cputype instead. 386
  1198. # is converted to i386 for consistency with other x86
  1199. # operating systems.
  1200. if test "$cputype" = "386"; then
  1201. UNAME_MACHINE=i386
  1202. else
  1203. UNAME_MACHINE="$cputype"
  1204. fi
  1205. echo ${UNAME_MACHINE}-unknown-plan9
  1206. exit ;;
  1207. *:TOPS-10:*:*)
  1208. echo pdp10-unknown-tops10
  1209. exit ;;
  1210. *:TENEX:*:*)
  1211. echo pdp10-unknown-tenex
  1212. exit ;;
  1213. KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  1214. echo pdp10-dec-tops20
  1215. exit ;;
  1216. XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  1217. echo pdp10-xkl-tops20
  1218. exit ;;
  1219. *:TOPS-20:*:*)
  1220. echo pdp10-unknown-tops20
  1221. exit ;;
  1222. *:ITS:*:*)
  1223. echo pdp10-unknown-its
  1224. exit ;;
  1225. SEI:*:*:SEIUX)
  1226. echo mips-sei-seiux${UNAME_RELEASE}
  1227. exit ;;
  1228. *:DragonFly:*:*)
  1229. echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  1230. exit ;;
  1231. *:*VMS:*:*)
  1232. UNAME_MACHINE=`(uname -p) 2>/dev/null`
  1233. case "${UNAME_MACHINE}" in
  1234. A*) echo alpha-dec-vms ; exit ;;
  1235. I*) echo ia64-dec-vms ; exit ;;
  1236. V*) echo vax-dec-vms ; exit ;;
  1237. esac ;;
  1238. *:XENIX:*:SysV)
  1239. echo i386-pc-xenix
  1240. exit ;;
  1241. i*86:skyos:*:*)
  1242. echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
  1243. exit ;;
  1244. i*86:rdos:*:*)
  1245. echo ${UNAME_MACHINE}-pc-rdos
  1246. exit ;;
  1247. esac
  1248. #echo '(No uname command or uname output not recognized.)' 1>&2
  1249. #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  1250. eval $set_cc_for_build
  1251. cat >$dummy.c <<EOF
  1252. #ifdef _SEQUENT_
  1253. # include <sys/types.h>
  1254. # include <sys/utsname.h>
  1255. #endif
  1256. main ()
  1257. {
  1258. #if defined (sony)
  1259. #if defined (MIPSEB)
  1260. /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
  1261. I don't know.... */
  1262. printf ("mips-sony-bsd\n"); exit (0);
  1263. #else
  1264. #include <sys/param.h>
  1265. printf ("m68k-sony-newsos%s\n",
  1266. #ifdef NEWSOS4
  1267. "4"
  1268. #else
  1269. ""
  1270. #endif
  1271. ); exit (0);
  1272. #endif
  1273. #endif
  1274. #if defined (__arm) && defined (__acorn) && defined (__unix)
  1275. printf ("arm-acorn-riscix\n"); exit (0);
  1276. #endif
  1277. #if defined (hp300) && !defined (hpux)
  1278. printf ("m68k-hp-bsd\n"); exit (0);
  1279. #endif
  1280. #if defined (NeXT)
  1281. #if !defined (__ARCHITECTURE__)
  1282. #define __ARCHITECTURE__ "m68k"
  1283. #endif
  1284. int version;
  1285. version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  1286. if (version < 4)
  1287. printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  1288. else
  1289. printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  1290. exit (0);
  1291. #endif
  1292. #if defined (MULTIMAX) || defined (n16)
  1293. #if defined (UMAXV)
  1294. printf ("ns32k-encore-sysv\n"); exit (0);
  1295. #else
  1296. #if defined (CMU)
  1297. printf ("ns32k-encore-mach\n"); exit (0);
  1298. #else
  1299. printf ("ns32k-encore-bsd\n"); exit (0);
  1300. #endif
  1301. #endif
  1302. #endif
  1303. #if defined (__386BSD__)
  1304. printf ("i386-pc-bsd\n"); exit (0);
  1305. #endif
  1306. #if defined (sequent)
  1307. #if defined (i386)
  1308. printf ("i386-sequent-dynix\n"); exit (0);
  1309. #endif
  1310. #if defined (ns32000)
  1311. printf ("ns32k-sequent-dynix\n"); exit (0);
  1312. #endif
  1313. #endif
  1314. #if defined (_SEQUENT_)
  1315. struct utsname un;
  1316. uname(&un);
  1317. if (strncmp(un.version, "V2", 2) == 0) {
  1318. printf ("i386-sequent-ptx2\n"); exit (0);
  1319. }
  1320. if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
  1321. printf ("i386-sequent-ptx1\n"); exit (0);
  1322. }
  1323. printf ("i386-sequent-ptx\n"); exit (0);
  1324. #endif
  1325. #if defined (vax)
  1326. # if !defined (ultrix)
  1327. # include <sys/param.h>
  1328. # if defined (BSD)
  1329. # if BSD == 43
  1330. printf ("vax-dec-bsd4.3\n"); exit (0);
  1331. # else
  1332. # if BSD == 199006
  1333. printf ("vax-dec-bsd4.3reno\n"); exit (0);
  1334. # else
  1335. printf ("vax-dec-bsd\n"); exit (0);
  1336. # endif
  1337. # endif
  1338. # else
  1339. printf ("vax-dec-bsd\n"); exit (0);
  1340. # endif
  1341. # else
  1342. printf ("vax-dec-ultrix\n"); exit (0);
  1343. # endif
  1344. #endif
  1345. #if defined (alliant) && defined (i860)
  1346. printf ("i860-alliant-bsd\n"); exit (0);
  1347. #endif
  1348. exit (1);
  1349. }
  1350. EOF
  1351. $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
  1352. { echo "$SYSTEM_NAME"; exit; }
  1353. # Apollos put the system type in the environment.
  1354. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
  1355. # Convex versions that predate uname can use getsysinfo(1)
  1356. if [ -x /usr/convex/getsysinfo ]
  1357. then
  1358. case `getsysinfo -f cpu_type` in
  1359. c1*)
  1360. echo c1-convex-bsd
  1361. exit ;;
  1362. c2*)
  1363. if getsysinfo -f scalar_acc
  1364. then echo c32-convex-bsd
  1365. else echo c2-convex-bsd
  1366. fi
  1367. exit ;;
  1368. c34*)
  1369. echo c34-convex-bsd
  1370. exit ;;
  1371. c38*)
  1372. echo c38-convex-bsd
  1373. exit ;;
  1374. c4*)
  1375. echo c4-convex-bsd
  1376. exit ;;
  1377. esac
  1378. fi
  1379. cat >&2 <<EOF
  1380. $0: unable to guess system type
  1381. This script, last modified $timestamp, has failed to recognize
  1382. the operating system you are using. It is advised that you
  1383. download the most up to date version of the config scripts from
  1384. http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
  1385. and
  1386. http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
  1387. If the version you run ($0) is already up to date, please
  1388. send the following data and any information you think might be
  1389. pertinent to <config-patches@gnu.org> in order to provide the needed
  1390. information to handle your system.
  1391. config.guess timestamp = $timestamp
  1392. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1393. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1394. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1395. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1396. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
  1397. /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
  1398. hostinfo = `(hostinfo) 2>/dev/null`
  1399. /bin/universe = `(/bin/universe) 2>/dev/null`
  1400. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
  1401. /bin/arch = `(/bin/arch) 2>/dev/null`
  1402. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
  1403. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
  1404. UNAME_MACHINE = ${UNAME_MACHINE}
  1405. UNAME_RELEASE = ${UNAME_RELEASE}
  1406. UNAME_SYSTEM = ${UNAME_SYSTEM}
  1407. UNAME_VERSION = ${UNAME_VERSION}
  1408. EOF
  1409. exit 1
  1410. # Local variables:
  1411. # eval: (add-hook 'write-file-hooks 'time-stamp)
  1412. # time-stamp-start: "timestamp='"
  1413. # time-stamp-format: "%:y-%02m-%02d"
  1414. # time-stamp-end: "'"
  1415. # End: