config.guess 42 KB

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