config.guess 42 KB

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-08-03'
  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 3 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, see <http://www.gnu.org/licenses/>.
  18. #
  19. # As a special exception to the GNU General Public License, if you
  20. # distribute this file as part of a program that contains a
  21. # configuration script generated by Autoconf, you may include it under
  22. # the same distribution terms that you use for the rest of that program.
  23. # Originally written by Per Bothner <per@bothner.com>.
  24. # Please send patches to <config-patches@gnu.org>. Submit a context
  25. # diff and a properly formatted ChangeLog entry.
  26. #
  27. # This script attempts to guess a canonical system name similar to
  28. # config.sub. If it succeeds, it prints the system name on stdout, and
  29. # exits with 0. Otherwise, it exits with 1.
  30. #
  31. # The plan is that this can be called by configure scripts if you
  32. # don't specify an explicit build system type.
  33. me=`echo "$0" | sed -e 's,.*/,,'`
  34. usage="\
  35. Usage: $0 [OPTION]
  36. Output the configuration name of the system \`$me' is run on.
  37. Operation modes:
  38. -h, --help print this help, then exit
  39. -t, --time-stamp print date of last modification, then exit
  40. -v, --version print version number, then exit
  41. Report bugs and patches to <config-patches@gnu.org>."
  42. version="\
  43. GNU config.guess ($timestamp)
  44. Originally written by Per Bothner.
  45. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  46. Free Software Foundation, Inc.
  47. This is free software; see the source for copying conditions. There is NO
  48. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  49. help="
  50. Try \`$me --help' for more information."
  51. # Parse command line
  52. while test $# -gt 0 ; do
  53. case $1 in
  54. --time-stamp | --time* | -t )
  55. echo "$timestamp" ; exit ;;
  56. --version | -v )
  57. echo "$version" ; exit ;;
  58. --help | --h* | -h )
  59. echo "$usage"; exit ;;
  60. -- ) # Stop option processing
  61. shift; break ;;
  62. - ) # Use stdin as input.
  63. break ;;
  64. -* )
  65. echo "$me: invalid option $1$help" >&2
  66. exit 1 ;;
  67. * )
  68. break ;;
  69. esac
  70. done
  71. if test $# != 0; then
  72. echo "$me: too many arguments$help" >&2
  73. exit 1
  74. fi
  75. trap 'exit 1' 1 2 15
  76. # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
  77. # compiler to aid in system detection is discouraged as it requires
  78. # temporary files to be created and, as you can see below, it is a
  79. # headache to deal with in a portable fashion.
  80. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
  81. # use `HOST_CC' if defined, but it is deprecated.
  82. # Portable tmp directory creation inspired by the Autoconf team.
  83. set_cc_for_build='
  84. trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  85. trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  86. : ${TMPDIR=/tmp} ;
  87. { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  88. { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  89. { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
  90. { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  91. dummy=$tmp/dummy ;
  92. tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
  93. case $CC_FOR_BUILD,$HOST_CC,$CC in
  94. ,,) echo "int x;" > $dummy.c ;
  95. for c in cc gcc c89 c99 ; do
  96. if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
  97. CC_FOR_BUILD="$c"; break ;
  98. fi ;
  99. done ;
  100. if test x"$CC_FOR_BUILD" = x ; then
  101. CC_FOR_BUILD=no_compiler_found ;
  102. fi
  103. ;;
  104. ,,*) CC_FOR_BUILD=$CC ;;
  105. ,*,*) CC_FOR_BUILD=$HOST_CC ;;
  106. esac ; set_cc_for_build= ;'
  107. # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  108. # (ghazi@noc.rutgers.edu 1994-08-24)
  109. if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
  110. PATH=$PATH:/.attbin ; export PATH
  111. fi
  112. UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
  113. UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
  114. UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  115. UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
  116. # Note: order is significant - the case branches are not exclusive.
  117. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  118. *:NetBSD:*:*)
  119. # NetBSD (nbsd) targets should (where applicable) match one or
  120. # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
  121. # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
  122. # switched to ELF, *-*-netbsd* would select the old
  123. # object file format. This provides both forward
  124. # compatibility and a consistent mechanism for selecting the
  125. # object file format.
  126. #
  127. # Note: NetBSD doesn't particularly care about the vendor
  128. # portion of the name. We always set it to "unknown".
  129. sysctl="sysctl -n hw.machine_arch"
  130. UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
  131. /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
  132. case "${UNAME_MACHINE_ARCH}" in
  133. armeb) machine=armeb-unknown ;;
  134. arm*) machine=arm-unknown ;;
  135. sh3el) machine=shl-unknown ;;
  136. sh3eb) machine=sh-unknown ;;
  137. *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  138. esac
  139. # The Operating System including object format, if it has switched
  140. # to ELF recently, or will in the future.
  141. case "${UNAME_MACHINE_ARCH}" in
  142. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  143. eval $set_cc_for_build
  144. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  145. | grep __ELF__ >/dev/null
  146. then
  147. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  148. # Return netbsd for either. FIX?
  149. os=netbsd
  150. else
  151. os=netbsdelf
  152. fi
  153. ;;
  154. *)
  155. os=netbsd
  156. ;;
  157. esac
  158. # The OS release
  159. # Debian GNU/NetBSD machines have a different userland, and
  160. # thus, need a distinct triplet. However, they do not need
  161. # kernel version information, so it can be replaced with a
  162. # suitable tag, in the style of linux-gnu.
  163. case "${UNAME_VERSION}" in
  164. Debian*)
  165. release='-gnu'
  166. ;;
  167. *)
  168. release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  169. ;;
  170. esac
  171. # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
  172. # contains redundant information, the shorter form:
  173. # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  174. echo "${machine}-${os}${release}"
  175. exit ;;
  176. *:OpenBSD:*:*)
  177. UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
  178. echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
  179. exit ;;
  180. *:ekkoBSD:*:*)
  181. echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
  182. exit ;;
  183. macppc:MirBSD:*:*)
  184. echo powerppc-unknown-mirbsd${UNAME_RELEASE}
  185. exit ;;
  186. *:MirBSD:*:*)
  187. echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
  188. exit ;;
  189. alpha:OSF1:*:*)
  190. case $UNAME_RELEASE in
  191. *4.0)
  192. UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
  193. ;;
  194. *5.*)
  195. UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
  196. ;;
  197. esac
  198. # According to Compaq, /usr/sbin/psrinfo has been available on
  199. # OSF/1 and Tru64 systems produced since 1995. I hope that
  200. # covers most systems running today. This code pipes the CPU
  201. # types through head -n 1, so we only detect the type of CPU 0.
  202. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
  203. case "$ALPHA_CPU_TYPE" in
  204. "EV4 (21064)")
  205. UNAME_MACHINE="alpha" ;;
  206. "EV4.5 (21064)")
  207. UNAME_MACHINE="alpha" ;;
  208. "LCA4 (21066/21068)")
  209. UNAME_MACHINE="alpha" ;;
  210. "EV5 (21164)")
  211. UNAME_MACHINE="alphaev5" ;;
  212. "EV5.6 (21164A)")
  213. UNAME_MACHINE="alphaev56" ;;
  214. "EV5.6 (21164PC)")
  215. UNAME_MACHINE="alphapca56" ;;
  216. "EV5.7 (21164PC)")
  217. UNAME_MACHINE="alphapca57" ;;
  218. "EV6 (21264)")
  219. UNAME_MACHINE="alphaev6" ;;
  220. "EV6.7 (21264A)")
  221. UNAME_MACHINE="alphaev67" ;;
  222. "EV6.8CB (21264C)")
  223. UNAME_MACHINE="alphaev68" ;;
  224. "EV6.8AL (21264B)")
  225. UNAME_MACHINE="alphaev68" ;;
  226. "EV6.8CX (21264D)")
  227. UNAME_MACHINE="alphaev68" ;;
  228. "EV6.9A (21264/EV69A)")
  229. UNAME_MACHINE="alphaev69" ;;
  230. "EV7 (21364)")
  231. UNAME_MACHINE="alphaev7" ;;
  232. "EV7.9 (21364A)")
  233. UNAME_MACHINE="alphaev79" ;;
  234. esac
  235. # A Pn.n version is a patched version.
  236. # A Vn.n version is a released version.
  237. # A Tn.n version is a released field test version.
  238. # A Xn.n version is an unreleased experimental baselevel.
  239. # 1.2 uses "1.2" for uname -r.
  240. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  241. exit ;;
  242. Alpha\ *:Windows_NT*:*)
  243. # How do we know it's Interix rather than the generic POSIX subsystem?
  244. # Should we change UNAME_MACHINE based on the output of uname instead
  245. # of the specific Alpha model?
  246. echo alpha-pc-interix
  247. exit ;;
  248. 21064:Windows_NT:50:3)
  249. echo alpha-dec-winnt3.5
  250. exit ;;
  251. Amiga*:UNIX_System_V:4.0:*)
  252. echo m68k-unknown-sysv4
  253. exit ;;
  254. *:[Aa]miga[Oo][Ss]:*:*)
  255. echo ${UNAME_MACHINE}-unknown-amigaos
  256. exit ;;
  257. *:[Mm]orph[Oo][Ss]:*:*)
  258. echo ${UNAME_MACHINE}-unknown-morphos
  259. exit ;;
  260. *:OS/390:*:*)
  261. echo i370-ibm-openedition
  262. exit ;;
  263. *:z/VM:*:*)
  264. echo s390-ibm-zvmoe
  265. exit ;;
  266. *:OS400:*:*)
  267. echo powerpc-ibm-os400
  268. exit ;;
  269. arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  270. echo arm-acorn-riscix${UNAME_RELEASE}
  271. exit ;;
  272. arm:riscos:*:*|arm:RISCOS:*:*)
  273. echo arm-unknown-riscos
  274. exit ;;
  275. SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
  276. echo hppa1.1-hitachi-hiuxmpp
  277. exit ;;
  278. Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
  279. # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
  280. if test "`(/bin/universe) 2>/dev/null`" = att ; then
  281. echo pyramid-pyramid-sysv3
  282. else
  283. echo pyramid-pyramid-bsd
  284. fi
  285. exit ;;
  286. NILE*:*:*:dcosx)
  287. echo pyramid-pyramid-svr4
  288. exit ;;
  289. DRS?6000:unix:4.0:6*)
  290. echo sparc-icl-nx6
  291. exit ;;
  292. DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
  293. case `/usr/bin/uname -p` in
  294. sparc) echo sparc-icl-nx7; exit ;;
  295. esac ;;
  296. sun4H:SunOS:5.*:*)
  297. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  298. exit ;;
  299. sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  300. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  301. exit ;;
  302. i86pc:SunOS:5.*:*)
  303. echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  304. exit ;;
  305. sun4*:SunOS:6*:*)
  306. # According to config.sub, this is the proper way to canonicalize
  307. # SunOS6. Hard to guess exactly what SunOS6 will be like, but
  308. # it's likely to be more like Solaris than SunOS4.
  309. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  310. exit ;;
  311. sun4*:SunOS:*:*)
  312. case "`/usr/bin/arch -k`" in
  313. Series*|S4*)
  314. UNAME_RELEASE=`uname -v`
  315. ;;
  316. esac
  317. # Japanese Language versions have a version number like `4.1.3-JL'.
  318. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
  319. exit ;;
  320. sun3*:SunOS:*:*)
  321. echo m68k-sun-sunos${UNAME_RELEASE}
  322. exit ;;
  323. sun*:*:4.2BSD:*)
  324. UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  325. test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  326. case "`/bin/arch`" in
  327. sun3)
  328. echo m68k-sun-sunos${UNAME_RELEASE}
  329. ;;
  330. sun4)
  331. echo sparc-sun-sunos${UNAME_RELEASE}
  332. ;;
  333. esac
  334. exit ;;
  335. aushp:SunOS:*:*)
  336. echo sparc-auspex-sunos${UNAME_RELEASE}
  337. exit ;;
  338. # The situation for MiNT is a little confusing. The machine name
  339. # can be virtually everything (everything which is not
  340. # "atarist" or "atariste" at least should have a processor
  341. # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
  342. # to the lowercase version "mint" (or "freemint"). Finally
  343. # the system name "TOS" denotes a system which is actually not
  344. # MiNT. But MiNT is downward compatible to TOS, so this should
  345. # be no problem.
  346. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
  347. echo m68k-atari-mint${UNAME_RELEASE}
  348. exit ;;
  349. atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
  350. echo m68k-atari-mint${UNAME_RELEASE}
  351. exit ;;
  352. *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
  353. echo m68k-atari-mint${UNAME_RELEASE}
  354. exit ;;
  355. milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
  356. echo m68k-milan-mint${UNAME_RELEASE}
  357. exit ;;
  358. hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
  359. echo m68k-hades-mint${UNAME_RELEASE}
  360. exit ;;
  361. *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  362. echo m68k-unknown-mint${UNAME_RELEASE}
  363. exit ;;
  364. m68k:machten:*:*)
  365. echo m68k-apple-machten${UNAME_RELEASE}
  366. exit ;;
  367. powerpc:machten:*:*)
  368. echo powerpc-apple-machten${UNAME_RELEASE}
  369. exit ;;
  370. RISC*:Mach:*:*)
  371. echo mips-dec-mach_bsd4.3
  372. exit ;;
  373. RISC*:ULTRIX:*:*)
  374. echo mips-dec-ultrix${UNAME_RELEASE}
  375. exit ;;
  376. VAX*:ULTRIX*:*:*)
  377. echo vax-dec-ultrix${UNAME_RELEASE}
  378. exit ;;
  379. 2020:CLIX:*:* | 2430:CLIX:*:*)
  380. echo clipper-intergraph-clix${UNAME_RELEASE}
  381. exit ;;
  382. mips:*:*:UMIPS | mips:*:*:RISCos)
  383. eval $set_cc_for_build
  384. sed 's/^ //' << EOF >$dummy.c
  385. #ifdef __cplusplus
  386. #include <stdio.h> /* for printf() prototype */
  387. int main (int argc, char *argv[]) {
  388. #else
  389. int main (argc, argv) int argc; char *argv[]; {
  390. #endif
  391. #if defined (host_mips) && defined (MIPSEB)
  392. #if defined (SYSTYPE_SYSV)
  393. printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
  394. #endif
  395. #if defined (SYSTYPE_SVR4)
  396. printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
  397. #endif
  398. #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
  399. printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
  400. #endif
  401. #endif
  402. exit (-1);
  403. }
  404. EOF
  405. $CC_FOR_BUILD -o $dummy $dummy.c &&
  406. dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
  407. SYSTEM_NAME=`$dummy $dummyarg` &&
  408. { echo "$SYSTEM_NAME"; exit; }
  409. echo mips-mips-riscos${UNAME_RELEASE}
  410. exit ;;
  411. Motorola:PowerMAX_OS:*:*)
  412. echo powerpc-motorola-powermax
  413. exit ;;
  414. Motorola:*:4.3:PL8-*)
  415. echo powerpc-harris-powermax
  416. exit ;;
  417. Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
  418. echo powerpc-harris-powermax
  419. exit ;;
  420. Night_Hawk:Power_UNIX:*:*)
  421. echo powerpc-harris-powerunix
  422. exit ;;
  423. m88k:CX/UX:7*:*)
  424. echo m88k-harris-cxux7
  425. exit ;;
  426. m88k:*:4*:R4*)
  427. echo m88k-motorola-sysv4
  428. exit ;;
  429. m88k:*:3*:R3*)
  430. echo m88k-motorola-sysv3
  431. exit ;;
  432. AViiON:dgux:*:*)
  433. # DG/UX returns AViiON for all architectures
  434. UNAME_PROCESSOR=`/usr/bin/uname -p`
  435. if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
  436. then
  437. if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
  438. [ ${TARGET_BINARY_INTERFACE}x = x ]
  439. then
  440. echo m88k-dg-dgux${UNAME_RELEASE}
  441. else
  442. echo m88k-dg-dguxbcs${UNAME_RELEASE}
  443. fi
  444. else
  445. echo i586-dg-dgux${UNAME_RELEASE}
  446. fi
  447. exit ;;
  448. M88*:DolphinOS:*:*) # DolphinOS (SVR3)
  449. echo m88k-dolphin-sysv3
  450. exit ;;
  451. M88*:*:R3*:*)
  452. # Delta 88k system running SVR3
  453. echo m88k-motorola-sysv3
  454. exit ;;
  455. XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
  456. echo m88k-tektronix-sysv3
  457. exit ;;
  458. Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
  459. echo m68k-tektronix-bsd
  460. exit ;;
  461. *:IRIX*:*:*)
  462. echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
  463. exit ;;
  464. ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
  465. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  466. exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  467. i*86:AIX:*:*)
  468. echo i386-ibm-aix
  469. exit ;;
  470. ia64:AIX:*:*)
  471. if [ -x /usr/bin/oslevel ] ; then
  472. IBM_REV=`/usr/bin/oslevel`
  473. else
  474. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  475. fi
  476. echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
  477. exit ;;
  478. *:AIX:2:3)
  479. if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
  480. eval $set_cc_for_build
  481. sed 's/^ //' << EOF >$dummy.c
  482. #include <sys/systemcfg.h>
  483. main()
  484. {
  485. if (!__power_pc())
  486. exit(1);
  487. puts("powerpc-ibm-aix3.2.5");
  488. exit(0);
  489. }
  490. EOF
  491. if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
  492. then
  493. echo "$SYSTEM_NAME"
  494. else
  495. echo rs6000-ibm-aix3.2.5
  496. fi
  497. elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  498. echo rs6000-ibm-aix3.2.4
  499. else
  500. echo rs6000-ibm-aix3.2
  501. fi
  502. exit ;;
  503. *:AIX:*:[45])
  504. IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  505. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  506. IBM_ARCH=rs6000
  507. else
  508. IBM_ARCH=powerpc
  509. fi
  510. if [ -x /usr/bin/oslevel ] ; then
  511. IBM_REV=`/usr/bin/oslevel`
  512. else
  513. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  514. fi
  515. echo ${IBM_ARCH}-ibm-aix${IBM_REV}
  516. exit ;;
  517. *:AIX:*:*)
  518. echo rs6000-ibm-aix
  519. exit ;;
  520. ibmrt:4.4BSD:*|romp-ibm:BSD:*)
  521. echo romp-ibm-bsd4.4
  522. exit ;;
  523. ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
  524. echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
  525. exit ;; # report: romp-ibm BSD 4.3
  526. *:BOSX:*:*)
  527. echo rs6000-bull-bosx
  528. exit ;;
  529. DPX/2?00:B.O.S.:*:*)
  530. echo m68k-bull-sysv3
  531. exit ;;
  532. 9000/[34]??:4.3bsd:1.*:*)
  533. echo m68k-hp-bsd
  534. exit ;;
  535. hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
  536. echo m68k-hp-bsd4.4
  537. exit ;;
  538. 9000/[34678]??:HP-UX:*:*)
  539. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  540. case "${UNAME_MACHINE}" in
  541. 9000/31? ) HP_ARCH=m68000 ;;
  542. 9000/[34]?? ) HP_ARCH=m68k ;;
  543. 9000/[678][0-9][0-9])
  544. if [ -x /usr/bin/getconf ]; then
  545. sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
  546. sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
  547. case "${sc_cpu_version}" in
  548. 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
  549. 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
  550. 532) # CPU_PA_RISC2_0
  551. case "${sc_kernel_bits}" in
  552. 32) HP_ARCH="hppa2.0n" ;;
  553. 64) HP_ARCH="hppa2.0w" ;;
  554. '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
  555. esac ;;
  556. esac
  557. fi
  558. if [ "${HP_ARCH}" = "" ]; then
  559. eval $set_cc_for_build
  560. sed 's/^ //' << EOF >$dummy.c
  561. #define _HPUX_SOURCE
  562. #include <stdlib.h>
  563. #include <unistd.h>
  564. int main ()
  565. {
  566. #if defined(_SC_KERNEL_BITS)
  567. long bits = sysconf(_SC_KERNEL_BITS);
  568. #endif
  569. long cpu = sysconf (_SC_CPU_VERSION);
  570. switch (cpu)
  571. {
  572. case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
  573. case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
  574. case CPU_PA_RISC2_0:
  575. #if defined(_SC_KERNEL_BITS)
  576. switch (bits)
  577. {
  578. case 64: puts ("hppa2.0w"); break;
  579. case 32: puts ("hppa2.0n"); break;
  580. default: puts ("hppa2.0"); break;
  581. } break;
  582. #else /* !defined(_SC_KERNEL_BITS) */
  583. puts ("hppa2.0"); break;
  584. #endif
  585. default: puts ("hppa1.0"); break;
  586. }
  587. exit (0);
  588. }
  589. EOF
  590. (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
  591. test -z "$HP_ARCH" && HP_ARCH=hppa
  592. fi ;;
  593. esac
  594. if [ ${HP_ARCH} = "hppa2.0w" ]
  595. then
  596. eval $set_cc_for_build
  597. # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
  598. # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
  599. # generating 64-bit code. GNU and HP use different nomenclature:
  600. #
  601. # $ CC_FOR_BUILD=cc ./config.guess
  602. # => hppa2.0w-hp-hpux11.23
  603. # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
  604. # => hppa64-hp-hpux11.23
  605. if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  606. grep __LP64__ >/dev/null
  607. then
  608. HP_ARCH="hppa2.0w"
  609. else
  610. HP_ARCH="hppa64"
  611. fi
  612. fi
  613. echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  614. exit ;;
  615. ia64:HP-UX:*:*)
  616. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  617. echo ia64-hp-hpux${HPUX_REV}
  618. exit ;;
  619. 3050*:HI-UX:*:*)
  620. eval $set_cc_for_build
  621. sed 's/^ //' << EOF >$dummy.c
  622. #include <unistd.h>
  623. int
  624. main ()
  625. {
  626. long cpu = sysconf (_SC_CPU_VERSION);
  627. /* The order matters, because CPU_IS_HP_MC68K erroneously returns
  628. true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
  629. results, however. */
  630. if (CPU_IS_PA_RISC (cpu))
  631. {
  632. switch (cpu)
  633. {
  634. case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
  635. case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
  636. case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
  637. default: puts ("hppa-hitachi-hiuxwe2"); break;
  638. }
  639. }
  640. else if (CPU_IS_HP_MC68K (cpu))
  641. puts ("m68k-hitachi-hiuxwe2");
  642. else puts ("unknown-hitachi-hiuxwe2");
  643. exit (0);
  644. }
  645. EOF
  646. $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
  647. { echo "$SYSTEM_NAME"; exit; }
  648. echo unknown-hitachi-hiuxwe2
  649. exit ;;
  650. 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  651. echo hppa1.1-hp-bsd
  652. exit ;;
  653. 9000/8??:4.3bsd:*:*)
  654. echo hppa1.0-hp-bsd
  655. exit ;;
  656. *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
  657. echo hppa1.0-hp-mpeix
  658. exit ;;
  659. hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  660. echo hppa1.1-hp-osf
  661. exit ;;
  662. hp8??:OSF1:*:*)
  663. echo hppa1.0-hp-osf
  664. exit ;;
  665. i*86:OSF1:*:*)
  666. if [ -x /usr/sbin/sysversion ] ; then
  667. echo ${UNAME_MACHINE}-unknown-osf1mk
  668. else
  669. echo ${UNAME_MACHINE}-unknown-osf1
  670. fi
  671. exit ;;
  672. parisc*:Lites*:*:*)
  673. echo hppa1.1-hp-lites
  674. exit ;;
  675. C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  676. echo c1-convex-bsd
  677. exit ;;
  678. C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
  679. if getsysinfo -f scalar_acc
  680. then echo c32-convex-bsd
  681. else echo c2-convex-bsd
  682. fi
  683. exit ;;
  684. C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
  685. echo c34-convex-bsd
  686. exit ;;
  687. C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
  688. echo c38-convex-bsd
  689. exit ;;
  690. C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  691. echo c4-convex-bsd
  692. exit ;;
  693. CRAY*Y-MP:*:*:*)
  694. echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  695. exit ;;
  696. CRAY*[A-Z]90:*:*:*)
  697. echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
  698. | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
  699. -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
  700. -e 's/\.[^.]*$/.X/'
  701. exit ;;
  702. CRAY*TS:*:*:*)
  703. echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  704. exit ;;
  705. CRAY*T3E:*:*:*)
  706. echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  707. exit ;;
  708. CRAY*SV1:*:*:*)
  709. echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  710. exit ;;
  711. *:UNICOS/mp:*:*)
  712. echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  713. exit ;;
  714. F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  715. FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  716. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  717. FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  718. echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  719. exit ;;
  720. 5000:UNIX_System_V:4.*:*)
  721. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  722. FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  723. echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  724. exit ;;
  725. i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  726. echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  727. exit ;;
  728. sparc*:BSD/OS:*:*)
  729. echo sparc-unknown-bsdi${UNAME_RELEASE}
  730. exit ;;
  731. *:BSD/OS:*:*)
  732. echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  733. exit ;;
  734. *:FreeBSD:*:*)
  735. echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  736. exit ;;
  737. i*:CYGWIN*:*)
  738. echo ${UNAME_MACHINE}-pc-cygwin
  739. exit ;;
  740. i*:MINGW*:*)
  741. echo ${UNAME_MACHINE}-pc-mingw32
  742. exit ;;
  743. i*:windows32*:*)
  744. # uname -m includes "-pc" on this system.
  745. echo ${UNAME_MACHINE}-mingw32
  746. exit ;;
  747. i*:PW*:*)
  748. echo ${UNAME_MACHINE}-pc-pw32
  749. exit ;;
  750. x86:Interix*:[34]*)
  751. echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
  752. exit ;;
  753. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  754. echo i${UNAME_MACHINE}-pc-mks
  755. exit ;;
  756. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  757. # How do we know it's Interix rather than the generic POSIX subsystem?
  758. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  759. # UNAME_MACHINE based on the output of uname instead of i386?
  760. echo i586-pc-interix
  761. exit ;;
  762. i*:UWIN*:*)
  763. echo ${UNAME_MACHINE}-pc-uwin
  764. exit ;;
  765. amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
  766. echo x86_64-unknown-cygwin
  767. exit ;;
  768. p*:CYGWIN*:*)
  769. echo powerpcle-unknown-cygwin
  770. exit ;;
  771. prep*:SunOS:5.*:*)
  772. echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  773. exit ;;
  774. *:GNU:*:*)
  775. # the GNU system
  776. echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  777. exit ;;
  778. *:GNU/*:*:*)
  779. # other systems with GNU libc and userland
  780. echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
  781. exit ;;
  782. i*86:Minix:*:*)
  783. echo ${UNAME_MACHINE}-pc-minix
  784. exit ;;
  785. arm*:Linux:*:*)
  786. echo ${UNAME_MACHINE}-unknown-linux-gnu
  787. exit ;;
  788. cris:Linux:*:*)
  789. echo cris-axis-linux-gnu
  790. exit ;;
  791. crisv32:Linux:*:*)
  792. echo crisv32-axis-linux-gnu
  793. exit ;;
  794. frv:Linux:*:*)
  795. echo frv-unknown-linux-gnu
  796. exit ;;
  797. ia64:Linux:*:*)
  798. echo ${UNAME_MACHINE}-unknown-linux-gnu
  799. exit ;;
  800. m32r*:Linux:*:*)
  801. echo ${UNAME_MACHINE}-unknown-linux-gnu
  802. exit ;;
  803. m68*:Linux:*:*)
  804. echo ${UNAME_MACHINE}-unknown-linux-gnu
  805. exit ;;
  806. mips:Linux:*:*)
  807. eval $set_cc_for_build
  808. sed 's/^ //' << EOF >$dummy.c
  809. #undef CPU
  810. #undef mips
  811. #undef mipsel
  812. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  813. CPU=mipsel
  814. #else
  815. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  816. CPU=mips
  817. #else
  818. CPU=
  819. #endif
  820. #endif
  821. EOF
  822. eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  823. test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  824. ;;
  825. mips64:Linux:*:*)
  826. eval $set_cc_for_build
  827. sed 's/^ //' << EOF >$dummy.c
  828. #undef CPU
  829. #undef mips64
  830. #undef mips64el
  831. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  832. CPU=mips64el
  833. #else
  834. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  835. CPU=mips64
  836. #else
  837. CPU=
  838. #endif
  839. #endif
  840. EOF
  841. eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  842. test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  843. ;;
  844. or32:Linux:*:*)
  845. echo or32-unknown-linux-gnu
  846. exit ;;
  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: