config.guess 43 KB

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