patch-lib_enca_config_guess 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814
  1. --- xbmc-imx6-13.2.orig/lib/enca/config.guess 2014-09-02 13:26:13.000000000 +0200
  2. +++ xbmc-imx6-13.2/lib/enca/config.guess 2014-08-18 15:18:32.461397057 +0200
  3. @@ -1,13 +1,12 @@
  4. #! /bin/sh
  5. # Attempt to guess a canonical system name.
  6. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  7. -# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
  8. +# Copyright 1992-2014 Free Software Foundation, Inc.
  9. -timestamp='2003-06-17'
  10. +timestamp='2014-01-25'
  11. # This file is free software; you can redistribute it and/or modify it
  12. # under the terms of the GNU General Public License as published by
  13. -# the Free Software Foundation; either version 2 of the License, or
  14. +# the Free Software Foundation; either version 3 of the License, or
  15. # (at your option) any later version.
  16. #
  17. # This program is distributed in the hope that it will be useful, but
  18. @@ -16,24 +15,22 @@ timestamp='2003-06-17'
  19. # General Public License for more details.
  20. #
  21. # You should have received a copy of the GNU General Public License
  22. -# along with this program; if not, write to the Free Software
  23. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  24. +# along with this program; if not, see <http://www.gnu.org/licenses/>.
  25. #
  26. # As a special exception to the GNU General Public License, if you
  27. # distribute this file as part of a program that contains a
  28. # configuration script generated by Autoconf, you may include it under
  29. -# the same distribution terms that you use for the rest of that program.
  30. -
  31. -# Originally written by Per Bothner <per@bothner.com>.
  32. -# Please send patches to <config-patches@gnu.org>. Submit a context
  33. -# diff and a properly formatted ChangeLog entry.
  34. +# the same distribution terms that you use for the rest of that
  35. +# program. This Exception is an additional permission under section 7
  36. +# of the GNU General Public License, version 3 ("GPLv3").
  37. #
  38. -# This script attempts to guess a canonical system name similar to
  39. -# config.sub. If it succeeds, it prints the system name on stdout, and
  40. -# exits with 0. Otherwise, it exits with 1.
  41. +# Originally written by Per Bothner.
  42. #
  43. -# The plan is that this can be called by configure scripts if you
  44. -# don't specify an explicit build system type.
  45. +# You can get the latest version of this script from:
  46. +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  47. +#
  48. +# Please send patches with a ChangeLog entry to config-patches@gnu.org.
  49. +
  50. me=`echo "$0" | sed -e 's,.*/,,'`
  51. @@ -53,8 +50,7 @@ version="\
  52. GNU config.guess ($timestamp)
  53. Originally written by Per Bothner.
  54. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
  55. -Free Software Foundation, Inc.
  56. +Copyright 1992-2014 Free Software Foundation, Inc.
  57. This is free software; see the source for copying conditions. There is NO
  58. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  59. @@ -66,11 +62,11 @@ Try \`$me --help' for more information."
  60. while test $# -gt 0 ; do
  61. case $1 in
  62. --time-stamp | --time* | -t )
  63. - echo "$timestamp" ; exit 0 ;;
  64. + echo "$timestamp" ; exit ;;
  65. --version | -v )
  66. - echo "$version" ; exit 0 ;;
  67. + echo "$version" ; exit ;;
  68. --help | --h* | -h )
  69. - echo "$usage"; exit 0 ;;
  70. + echo "$usage"; exit ;;
  71. -- ) # Stop option processing
  72. shift; break ;;
  73. - ) # Use stdin as input.
  74. @@ -104,7 +100,7 @@ set_cc_for_build='
  75. trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  76. trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  77. : ${TMPDIR=/tmp} ;
  78. - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  79. + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  80. { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  81. { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
  82. { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  83. @@ -123,7 +119,7 @@ case $CC_FOR_BUILD,$HOST_CC,$CC in
  84. ;;
  85. ,,*) CC_FOR_BUILD=$CC ;;
  86. ,*,*) CC_FOR_BUILD=$HOST_CC ;;
  87. -esac ;'
  88. +esac ; set_cc_for_build= ;'
  89. # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  90. # (ghazi@noc.rutgers.edu 1994-08-24)
  91. @@ -136,19 +132,33 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` |
  92. UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  93. UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
  94. -## for Red Hat Linux
  95. -if test -f /etc/redhat-release ; then
  96. - VENDOR=redhat ;
  97. -else
  98. - VENDOR= ;
  99. -fi
  100. +case "${UNAME_SYSTEM}" in
  101. +Linux|GNU|GNU/*)
  102. + # If the system lacks a compiler, then just pick glibc.
  103. + # We could probably try harder.
  104. + LIBC=gnu
  105. +
  106. + eval $set_cc_for_build
  107. + cat <<-EOF > $dummy.c
  108. + #include <features.h>
  109. + #if defined(__UCLIBC__)
  110. + LIBC=uclibc
  111. + #elif defined(__dietlibc__)
  112. + LIBC=dietlibc
  113. + #else
  114. + LIBC=gnu
  115. + #endif
  116. + EOF
  117. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
  118. + ;;
  119. +esac
  120. # Note: order is significant - the case branches are not exclusive.
  121. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  122. *:NetBSD:*:*)
  123. # NetBSD (nbsd) targets should (where applicable) match one or
  124. - # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
  125. + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
  126. # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
  127. # switched to ELF, *-*-netbsd* would select the old
  128. # object file format. This provides both forward
  129. @@ -165,6 +175,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  130. arm*) machine=arm-unknown ;;
  131. sh3el) machine=shl-unknown ;;
  132. sh3eb) machine=sh-unknown ;;
  133. + sh5el) machine=sh5le-unknown ;;
  134. *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  135. esac
  136. # The Operating System including object format, if it has switched
  137. @@ -173,7 +184,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  138. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  139. eval $set_cc_for_build
  140. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  141. - | grep __ELF__ >/dev/null
  142. + | grep -q __ELF__
  143. then
  144. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  145. # Return netbsd for either. FIX?
  146. @@ -183,7 +194,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  147. fi
  148. ;;
  149. *)
  150. - os=netbsd
  151. + os=netbsd
  152. ;;
  153. esac
  154. # The OS release
  155. @@ -203,50 +214,36 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  156. # contains redundant information, the shorter form:
  157. # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  158. echo "${machine}-${os}${release}"
  159. - exit 0 ;;
  160. - amiga:OpenBSD:*:*)
  161. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  162. - exit 0 ;;
  163. - arc:OpenBSD:*:*)
  164. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  165. - exit 0 ;;
  166. - hp300:OpenBSD:*:*)
  167. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  168. - exit 0 ;;
  169. - mac68k:OpenBSD:*:*)
  170. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  171. - exit 0 ;;
  172. - macppc:OpenBSD:*:*)
  173. - echo powerpc-unknown-openbsd${UNAME_RELEASE}
  174. - exit 0 ;;
  175. - mvme68k:OpenBSD:*:*)
  176. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  177. - exit 0 ;;
  178. - mvme88k:OpenBSD:*:*)
  179. - echo m88k-unknown-openbsd${UNAME_RELEASE}
  180. - exit 0 ;;
  181. - mvmeppc:OpenBSD:*:*)
  182. - echo powerpc-unknown-openbsd${UNAME_RELEASE}
  183. - exit 0 ;;
  184. - pmax:OpenBSD:*:*)
  185. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  186. - exit 0 ;;
  187. - sgi:OpenBSD:*:*)
  188. - echo mipseb-unknown-openbsd${UNAME_RELEASE}
  189. - exit 0 ;;
  190. - sun3:OpenBSD:*:*)
  191. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  192. - exit 0 ;;
  193. - wgrisc:OpenBSD:*:*)
  194. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  195. - exit 0 ;;
  196. + exit ;;
  197. + *:Bitrig:*:*)
  198. + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
  199. + echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
  200. + exit ;;
  201. *:OpenBSD:*:*)
  202. - echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
  203. - exit 0 ;;
  204. + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
  205. + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
  206. + exit ;;
  207. + *:ekkoBSD:*:*)
  208. + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
  209. + exit ;;
  210. + *:SolidBSD:*:*)
  211. + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
  212. + exit ;;
  213. + macppc:MirBSD:*:*)
  214. + echo powerpc-unknown-mirbsd${UNAME_RELEASE}
  215. + exit ;;
  216. + *:MirBSD:*:*)
  217. + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
  218. + exit ;;
  219. alpha:OSF1:*:*)
  220. - if test $UNAME_RELEASE = "V4.0"; then
  221. + case $UNAME_RELEASE in
  222. + *4.0)
  223. UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
  224. - fi
  225. + ;;
  226. + *5.*)
  227. + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
  228. + ;;
  229. + esac
  230. # According to Compaq, /usr/sbin/psrinfo has been available on
  231. # OSF/1 and Tru64 systems produced since 1995. I hope that
  232. # covers most systems running today. This code pipes the CPU
  233. @@ -284,42 +281,52 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  234. "EV7.9 (21364A)")
  235. UNAME_MACHINE="alphaev79" ;;
  236. esac
  237. + # A Pn.n version is a patched version.
  238. # A Vn.n version is a released version.
  239. # A Tn.n version is a released field test version.
  240. # A Xn.n version is an unreleased experimental baselevel.
  241. # 1.2 uses "1.2" for uname -r.
  242. - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  243. - exit 0 ;;
  244. - Alpha*:OpenVMS:*:*)
  245. - echo alpha-hp-vms
  246. - exit 0 ;;
  247. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  248. + # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
  249. + exitcode=$?
  250. + trap '' 0
  251. + exit $exitcode ;;
  252. Alpha\ *:Windows_NT*:*)
  253. # How do we know it's Interix rather than the generic POSIX subsystem?
  254. # Should we change UNAME_MACHINE based on the output of uname instead
  255. # of the specific Alpha model?
  256. echo alpha-pc-interix
  257. - exit 0 ;;
  258. + exit ;;
  259. 21064:Windows_NT:50:3)
  260. echo alpha-dec-winnt3.5
  261. - exit 0 ;;
  262. + exit ;;
  263. Amiga*:UNIX_System_V:4.0:*)
  264. echo m68k-unknown-sysv4
  265. - exit 0;;
  266. + exit ;;
  267. *:[Aa]miga[Oo][Ss]:*:*)
  268. echo ${UNAME_MACHINE}-unknown-amigaos
  269. - exit 0 ;;
  270. + exit ;;
  271. *:[Mm]orph[Oo][Ss]:*:*)
  272. echo ${UNAME_MACHINE}-unknown-morphos
  273. - exit 0 ;;
  274. + exit ;;
  275. *:OS/390:*:*)
  276. echo i370-ibm-openedition
  277. - exit 0 ;;
  278. + exit ;;
  279. + *:z/VM:*:*)
  280. + echo s390-ibm-zvmoe
  281. + exit ;;
  282. + *:OS400:*:*)
  283. + echo powerpc-ibm-os400
  284. + exit ;;
  285. arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  286. echo arm-acorn-riscix${UNAME_RELEASE}
  287. - exit 0;;
  288. + exit ;;
  289. + arm*:riscos:*:*|arm*:RISCOS:*:*)
  290. + echo arm-unknown-riscos
  291. + exit ;;
  292. SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
  293. echo hppa1.1-hitachi-hiuxmpp
  294. - exit 0;;
  295. + exit ;;
  296. Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
  297. # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
  298. if test "`(/bin/universe) 2>/dev/null`" = att ; then
  299. @@ -327,32 +334,51 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  300. else
  301. echo pyramid-pyramid-bsd
  302. fi
  303. - exit 0 ;;
  304. + exit ;;
  305. NILE*:*:*:dcosx)
  306. echo pyramid-pyramid-svr4
  307. - exit 0 ;;
  308. + exit ;;
  309. DRS?6000:unix:4.0:6*)
  310. echo sparc-icl-nx6
  311. - exit 0 ;;
  312. - DRS?6000:UNIX_SV:4.2*:7*)
  313. + exit ;;
  314. + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
  315. case `/usr/bin/uname -p` in
  316. - sparc) echo sparc-icl-nx7 && exit 0 ;;
  317. + sparc) echo sparc-icl-nx7; exit ;;
  318. esac ;;
  319. + s390x:SunOS:*:*)
  320. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  321. + exit ;;
  322. sun4H:SunOS:5.*:*)
  323. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  324. - exit 0 ;;
  325. + exit ;;
  326. sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  327. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  328. - exit 0 ;;
  329. - i86pc:SunOS:5.*:*)
  330. - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  331. - exit 0 ;;
  332. + exit ;;
  333. + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
  334. + echo i386-pc-auroraux${UNAME_RELEASE}
  335. + exit ;;
  336. + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  337. + eval $set_cc_for_build
  338. + SUN_ARCH="i386"
  339. + # If there is a compiler, see if it is configured for 64-bit objects.
  340. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  341. + # This test works for both compilers.
  342. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  343. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  344. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  345. + grep IS_64BIT_ARCH >/dev/null
  346. + then
  347. + SUN_ARCH="x86_64"
  348. + fi
  349. + fi
  350. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  351. + exit ;;
  352. sun4*:SunOS:6*:*)
  353. # According to config.sub, this is the proper way to canonicalize
  354. # SunOS6. Hard to guess exactly what SunOS6 will be like, but
  355. # it's likely to be more like Solaris than SunOS4.
  356. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  357. - exit 0 ;;
  358. + exit ;;
  359. sun4*:SunOS:*:*)
  360. case "`/usr/bin/arch -k`" in
  361. Series*|S4*)
  362. @@ -361,10 +387,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  363. esac
  364. # Japanese Language versions have a version number like `4.1.3-JL'.
  365. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
  366. - exit 0 ;;
  367. + exit ;;
  368. sun3*:SunOS:*:*)
  369. echo m68k-sun-sunos${UNAME_RELEASE}
  370. - exit 0 ;;
  371. + exit ;;
  372. sun*:*:4.2BSD:*)
  373. UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  374. test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  375. @@ -376,10 +402,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  376. echo sparc-sun-sunos${UNAME_RELEASE}
  377. ;;
  378. esac
  379. - exit 0 ;;
  380. + exit ;;
  381. aushp:SunOS:*:*)
  382. echo sparc-auspex-sunos${UNAME_RELEASE}
  383. - exit 0 ;;
  384. + exit ;;
  385. # The situation for MiNT is a little confusing. The machine name
  386. # can be virtually everything (everything which is not
  387. # "atarist" or "atariste" at least should have a processor
  388. @@ -389,38 +415,41 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  389. # MiNT. But MiNT is downward compatible to TOS, so this should
  390. # be no problem.
  391. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
  392. - echo m68k-atari-mint${UNAME_RELEASE}
  393. - exit 0 ;;
  394. + echo m68k-atari-mint${UNAME_RELEASE}
  395. + exit ;;
  396. atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
  397. echo m68k-atari-mint${UNAME_RELEASE}
  398. - exit 0 ;;
  399. + exit ;;
  400. *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
  401. - echo m68k-atari-mint${UNAME_RELEASE}
  402. - exit 0 ;;
  403. + echo m68k-atari-mint${UNAME_RELEASE}
  404. + exit ;;
  405. milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
  406. - echo m68k-milan-mint${UNAME_RELEASE}
  407. - exit 0 ;;
  408. + echo m68k-milan-mint${UNAME_RELEASE}
  409. + exit ;;
  410. hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
  411. - echo m68k-hades-mint${UNAME_RELEASE}
  412. - exit 0 ;;
  413. + echo m68k-hades-mint${UNAME_RELEASE}
  414. + exit ;;
  415. *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  416. - echo m68k-unknown-mint${UNAME_RELEASE}
  417. - exit 0 ;;
  418. + echo m68k-unknown-mint${UNAME_RELEASE}
  419. + exit ;;
  420. + m68k:machten:*:*)
  421. + echo m68k-apple-machten${UNAME_RELEASE}
  422. + exit ;;
  423. powerpc:machten:*:*)
  424. echo powerpc-apple-machten${UNAME_RELEASE}
  425. - exit 0 ;;
  426. + exit ;;
  427. RISC*:Mach:*:*)
  428. echo mips-dec-mach_bsd4.3
  429. - exit 0 ;;
  430. + exit ;;
  431. RISC*:ULTRIX:*:*)
  432. echo mips-dec-ultrix${UNAME_RELEASE}
  433. - exit 0 ;;
  434. + exit ;;
  435. VAX*:ULTRIX*:*:*)
  436. echo vax-dec-ultrix${UNAME_RELEASE}
  437. - exit 0 ;;
  438. + exit ;;
  439. 2020:CLIX:*:* | 2430:CLIX:*:*)
  440. echo clipper-intergraph-clix${UNAME_RELEASE}
  441. - exit 0 ;;
  442. + exit ;;
  443. mips:*:*:UMIPS | mips:*:*:RISCos)
  444. eval $set_cc_for_build
  445. sed 's/^ //' << EOF >$dummy.c
  446. @@ -444,35 +473,36 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  447. exit (-1);
  448. }
  449. EOF
  450. - $CC_FOR_BUILD -o $dummy $dummy.c \
  451. - && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
  452. - && exit 0
  453. + $CC_FOR_BUILD -o $dummy $dummy.c &&
  454. + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
  455. + SYSTEM_NAME=`$dummy $dummyarg` &&
  456. + { echo "$SYSTEM_NAME"; exit; }
  457. echo mips-mips-riscos${UNAME_RELEASE}
  458. - exit 0 ;;
  459. + exit ;;
  460. Motorola:PowerMAX_OS:*:*)
  461. echo powerpc-motorola-powermax
  462. - exit 0 ;;
  463. + exit ;;
  464. Motorola:*:4.3:PL8-*)
  465. echo powerpc-harris-powermax
  466. - exit 0 ;;
  467. + exit ;;
  468. Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
  469. echo powerpc-harris-powermax
  470. - exit 0 ;;
  471. + exit ;;
  472. Night_Hawk:Power_UNIX:*:*)
  473. echo powerpc-harris-powerunix
  474. - exit 0 ;;
  475. + exit ;;
  476. m88k:CX/UX:7*:*)
  477. echo m88k-harris-cxux7
  478. - exit 0 ;;
  479. + exit ;;
  480. m88k:*:4*:R4*)
  481. echo m88k-motorola-sysv4
  482. - exit 0 ;;
  483. + exit ;;
  484. m88k:*:3*:R3*)
  485. echo m88k-motorola-sysv3
  486. - exit 0 ;;
  487. + exit ;;
  488. AViiON:dgux:*:*)
  489. - # DG/UX returns AViiON for all architectures
  490. - UNAME_PROCESSOR=`/usr/bin/uname -p`
  491. + # DG/UX returns AViiON for all architectures
  492. + UNAME_PROCESSOR=`/usr/bin/uname -p`
  493. if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
  494. then
  495. if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
  496. @@ -485,29 +515,29 @@ EOF
  497. else
  498. echo i586-dg-dgux${UNAME_RELEASE}
  499. fi
  500. - exit 0 ;;
  501. + exit ;;
  502. M88*:DolphinOS:*:*) # DolphinOS (SVR3)
  503. echo m88k-dolphin-sysv3
  504. - exit 0 ;;
  505. + exit ;;
  506. M88*:*:R3*:*)
  507. # Delta 88k system running SVR3
  508. echo m88k-motorola-sysv3
  509. - exit 0 ;;
  510. + exit ;;
  511. XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
  512. echo m88k-tektronix-sysv3
  513. - exit 0 ;;
  514. + exit ;;
  515. Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
  516. echo m68k-tektronix-bsd
  517. - exit 0 ;;
  518. + exit ;;
  519. *:IRIX*:*:*)
  520. echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
  521. - exit 0 ;;
  522. + exit ;;
  523. ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
  524. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  525. - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  526. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  527. + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  528. i*86:AIX:*:*)
  529. echo i386-ibm-aix
  530. - exit 0 ;;
  531. + exit ;;
  532. ia64:AIX:*:*)
  533. if [ -x /usr/bin/oslevel ] ; then
  534. IBM_REV=`/usr/bin/oslevel`
  535. @@ -515,7 +545,7 @@ EOF
  536. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  537. fi
  538. echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
  539. - exit 0 ;;
  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. @@ -530,15 +560,19 @@ EOF
  545. exit(0);
  546. }
  547. EOF
  548. - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  549. - echo rs6000-ibm-aix3.2.5
  550. + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
  551. + then
  552. + echo "$SYSTEM_NAME"
  553. + else
  554. + echo rs6000-ibm-aix3.2.5
  555. + fi
  556. elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  557. echo rs6000-ibm-aix3.2.4
  558. else
  559. echo rs6000-ibm-aix3.2
  560. fi
  561. - exit 0 ;;
  562. - *:AIX:*:[45])
  563. + exit ;;
  564. + *:AIX:*:[4567])
  565. IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  566. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  567. IBM_ARCH=rs6000
  568. @@ -551,28 +585,28 @@ EOF
  569. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  570. fi
  571. echo ${IBM_ARCH}-ibm-aix${IBM_REV}
  572. - exit 0 ;;
  573. + exit ;;
  574. *:AIX:*:*)
  575. echo rs6000-ibm-aix
  576. - exit 0 ;;
  577. + exit ;;
  578. ibmrt:4.4BSD:*|romp-ibm:BSD:*)
  579. echo romp-ibm-bsd4.4
  580. - exit 0 ;;
  581. + exit ;;
  582. ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
  583. echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
  584. - exit 0 ;; # report: romp-ibm BSD 4.3
  585. + exit ;; # report: romp-ibm BSD 4.3
  586. *:BOSX:*:*)
  587. echo rs6000-bull-bosx
  588. - exit 0 ;;
  589. + exit ;;
  590. DPX/2?00:B.O.S.:*:*)
  591. echo m68k-bull-sysv3
  592. - exit 0 ;;
  593. + exit ;;
  594. 9000/[34]??:4.3bsd:1.*:*)
  595. echo m68k-hp-bsd
  596. - exit 0 ;;
  597. + exit ;;
  598. hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
  599. echo m68k-hp-bsd4.4
  600. - exit 0 ;;
  601. + exit ;;
  602. 9000/[34678]??:HP-UX:*:*)
  603. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  604. case "${UNAME_MACHINE}" in
  605. @@ -581,52 +615,52 @@ EOF
  606. 9000/[678][0-9][0-9])
  607. if [ -x /usr/bin/getconf ]; then
  608. sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
  609. - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
  610. - case "${sc_cpu_version}" in
  611. - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
  612. - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
  613. - 532) # CPU_PA_RISC2_0
  614. - case "${sc_kernel_bits}" in
  615. - 32) HP_ARCH="hppa2.0n" ;;
  616. - 64) HP_ARCH="hppa2.0w" ;;
  617. + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
  618. + case "${sc_cpu_version}" in
  619. + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
  620. + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
  621. + 532) # CPU_PA_RISC2_0
  622. + case "${sc_kernel_bits}" in
  623. + 32) HP_ARCH="hppa2.0n" ;;
  624. + 64) HP_ARCH="hppa2.0w" ;;
  625. '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
  626. - esac ;;
  627. - esac
  628. + esac ;;
  629. + esac
  630. fi
  631. if [ "${HP_ARCH}" = "" ]; then
  632. eval $set_cc_for_build
  633. - sed 's/^ //' << EOF >$dummy.c
  634. + sed 's/^ //' << EOF >$dummy.c
  635. - #define _HPUX_SOURCE
  636. - #include <stdlib.h>
  637. - #include <unistd.h>
  638. + #define _HPUX_SOURCE
  639. + #include <stdlib.h>
  640. + #include <unistd.h>
  641. - int main ()
  642. - {
  643. - #if defined(_SC_KERNEL_BITS)
  644. - long bits = sysconf(_SC_KERNEL_BITS);
  645. - #endif
  646. - long cpu = sysconf (_SC_CPU_VERSION);
  647. + int main ()
  648. + {
  649. + #if defined(_SC_KERNEL_BITS)
  650. + long bits = sysconf(_SC_KERNEL_BITS);
  651. + #endif
  652. + long cpu = sysconf (_SC_CPU_VERSION);
  653. - switch (cpu)
  654. - {
  655. - case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
  656. - case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
  657. - case CPU_PA_RISC2_0:
  658. - #if defined(_SC_KERNEL_BITS)
  659. - switch (bits)
  660. - {
  661. - case 64: puts ("hppa2.0w"); break;
  662. - case 32: puts ("hppa2.0n"); break;
  663. - default: puts ("hppa2.0"); break;
  664. - } break;
  665. - #else /* !defined(_SC_KERNEL_BITS) */
  666. - puts ("hppa2.0"); break;
  667. - #endif
  668. - default: puts ("hppa1.0"); break;
  669. - }
  670. - exit (0);
  671. - }
  672. + switch (cpu)
  673. + {
  674. + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
  675. + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
  676. + case CPU_PA_RISC2_0:
  677. + #if defined(_SC_KERNEL_BITS)
  678. + switch (bits)
  679. + {
  680. + case 64: puts ("hppa2.0w"); break;
  681. + case 32: puts ("hppa2.0n"); break;
  682. + default: puts ("hppa2.0"); break;
  683. + } break;
  684. + #else /* !defined(_SC_KERNEL_BITS) */
  685. + puts ("hppa2.0"); break;
  686. + #endif
  687. + default: puts ("hppa1.0"); break;
  688. + }
  689. + exit (0);
  690. + }
  691. EOF
  692. (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
  693. test -z "$HP_ARCH" && HP_ARCH=hppa
  694. @@ -634,9 +668,19 @@ EOF
  695. esac
  696. if [ ${HP_ARCH} = "hppa2.0w" ]
  697. then
  698. - # avoid double evaluation of $set_cc_for_build
  699. - test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
  700. - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
  701. + eval $set_cc_for_build
  702. +
  703. + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
  704. + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
  705. + # generating 64-bit code. GNU and HP use different nomenclature:
  706. + #
  707. + # $ CC_FOR_BUILD=cc ./config.guess
  708. + # => hppa2.0w-hp-hpux11.23
  709. + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
  710. + # => hppa64-hp-hpux11.23
  711. +
  712. + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  713. + grep -q __LP64__
  714. then
  715. HP_ARCH="hppa2.0w"
  716. else
  717. @@ -644,11 +688,11 @@ EOF
  718. fi
  719. fi
  720. echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  721. - exit 0 ;;
  722. + exit ;;
  723. ia64:HP-UX:*:*)
  724. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  725. echo ia64-hp-hpux${HPUX_REV}
  726. - exit 0 ;;
  727. + exit ;;
  728. 3050*:HI-UX:*:*)
  729. eval $set_cc_for_build
  730. sed 's/^ //' << EOF >$dummy.c
  731. @@ -676,318 +720,345 @@ EOF
  732. exit (0);
  733. }
  734. EOF
  735. - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  736. + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
  737. + { echo "$SYSTEM_NAME"; exit; }
  738. echo unknown-hitachi-hiuxwe2
  739. - exit 0 ;;
  740. + exit ;;
  741. 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  742. echo hppa1.1-hp-bsd
  743. - exit 0 ;;
  744. + exit ;;
  745. 9000/8??:4.3bsd:*:*)
  746. echo hppa1.0-hp-bsd
  747. - exit 0 ;;
  748. + exit ;;
  749. *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
  750. echo hppa1.0-hp-mpeix
  751. - exit 0 ;;
  752. + exit ;;
  753. hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  754. echo hppa1.1-hp-osf
  755. - exit 0 ;;
  756. + exit ;;
  757. hp8??:OSF1:*:*)
  758. echo hppa1.0-hp-osf
  759. - exit 0 ;;
  760. + exit ;;
  761. i*86:OSF1:*:*)
  762. if [ -x /usr/sbin/sysversion ] ; then
  763. echo ${UNAME_MACHINE}-unknown-osf1mk
  764. else
  765. echo ${UNAME_MACHINE}-unknown-osf1
  766. fi
  767. - exit 0 ;;
  768. + exit ;;
  769. parisc*:Lites*:*:*)
  770. echo hppa1.1-hp-lites
  771. - exit 0 ;;
  772. + exit ;;
  773. C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  774. echo c1-convex-bsd
  775. - exit 0 ;;
  776. + exit ;;
  777. C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
  778. if getsysinfo -f scalar_acc
  779. then echo c32-convex-bsd
  780. else echo c2-convex-bsd
  781. fi
  782. - exit 0 ;;
  783. + exit ;;
  784. C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
  785. echo c34-convex-bsd
  786. - exit 0 ;;
  787. + exit ;;
  788. C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
  789. echo c38-convex-bsd
  790. - exit 0 ;;
  791. + exit ;;
  792. C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  793. echo c4-convex-bsd
  794. - exit 0 ;;
  795. + exit ;;
  796. CRAY*Y-MP:*:*:*)
  797. echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  798. - exit 0 ;;
  799. + exit ;;
  800. CRAY*[A-Z]90:*:*:*)
  801. echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
  802. | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
  803. -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
  804. -e 's/\.[^.]*$/.X/'
  805. - exit 0 ;;
  806. + exit ;;
  807. CRAY*TS:*:*:*)
  808. echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  809. - exit 0 ;;
  810. + exit ;;
  811. CRAY*T3E:*:*:*)
  812. echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  813. - exit 0 ;;
  814. + exit ;;
  815. CRAY*SV1:*:*:*)
  816. echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  817. - exit 0 ;;
  818. + exit ;;
  819. *:UNICOS/mp:*:*)
  820. - echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  821. - exit 0 ;;
  822. + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  823. + exit ;;
  824. F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  825. FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  826. - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  827. - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  828. - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  829. - exit 0 ;;
  830. + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  831. + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  832. + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  833. + exit ;;
  834. + 5000:UNIX_System_V:4.*:*)
  835. + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  836. + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  837. + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  838. + exit ;;
  839. i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  840. echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  841. - exit 0 ;;
  842. + exit ;;
  843. sparc*:BSD/OS:*:*)
  844. echo sparc-unknown-bsdi${UNAME_RELEASE}
  845. - exit 0 ;;
  846. + exit ;;
  847. *:BSD/OS:*:*)
  848. echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  849. - exit 0 ;;
  850. - *:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
  851. - # Determine whether the default compiler uses glibc.
  852. - eval $set_cc_for_build
  853. - sed 's/^ //' << EOF >$dummy.c
  854. - #include <features.h>
  855. - #if __GLIBC__ >= 2
  856. - LIBC=gnu
  857. - #else
  858. - LIBC=
  859. - #endif
  860. -EOF
  861. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  862. - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
  863. - exit 0 ;;
  864. + exit ;;
  865. + *:FreeBSD:*:*)
  866. + UNAME_PROCESSOR=`/usr/bin/uname -p`
  867. + case ${UNAME_PROCESSOR} in
  868. + amd64)
  869. + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  870. + *)
  871. + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  872. + esac
  873. + exit ;;
  874. i*:CYGWIN*:*)
  875. echo ${UNAME_MACHINE}-pc-cygwin
  876. - exit 0 ;;
  877. - i*:MINGW*:*)
  878. + exit ;;
  879. + *:MINGW64*:*)
  880. + echo ${UNAME_MACHINE}-pc-mingw64
  881. + exit ;;
  882. + *:MINGW*:*)
  883. echo ${UNAME_MACHINE}-pc-mingw32
  884. - exit 0 ;;
  885. + exit ;;
  886. + i*:MSYS*:*)
  887. + echo ${UNAME_MACHINE}-pc-msys
  888. + exit ;;
  889. + i*:windows32*:*)
  890. + # uname -m includes "-pc" on this system.
  891. + echo ${UNAME_MACHINE}-mingw32
  892. + exit ;;
  893. i*:PW*:*)
  894. echo ${UNAME_MACHINE}-pc-pw32
  895. - exit 0 ;;
  896. - x86:Interix*:[34]*)
  897. - echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
  898. - exit 0 ;;
  899. + exit ;;
  900. + *:Interix*:*)
  901. + case ${UNAME_MACHINE} in
  902. + x86)
  903. + echo i586-pc-interix${UNAME_RELEASE}
  904. + exit ;;
  905. + authenticamd | genuineintel | EM64T)
  906. + echo x86_64-unknown-interix${UNAME_RELEASE}
  907. + exit ;;
  908. + IA64)
  909. + echo ia64-unknown-interix${UNAME_RELEASE}
  910. + exit ;;
  911. + esac ;;
  912. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  913. echo i${UNAME_MACHINE}-pc-mks
  914. - exit 0 ;;
  915. + exit ;;
  916. + 8664:Windows_NT:*)
  917. + echo x86_64-pc-mks
  918. + exit ;;
  919. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  920. # How do we know it's Interix rather than the generic POSIX subsystem?
  921. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  922. # UNAME_MACHINE based on the output of uname instead of i386?
  923. echo i586-pc-interix
  924. - exit 0 ;;
  925. + exit ;;
  926. i*:UWIN*:*)
  927. echo ${UNAME_MACHINE}-pc-uwin
  928. - exit 0 ;;
  929. + exit ;;
  930. + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
  931. + echo x86_64-unknown-cygwin
  932. + exit ;;
  933. p*:CYGWIN*:*)
  934. echo powerpcle-unknown-cygwin
  935. - exit 0 ;;
  936. + exit ;;
  937. prep*:SunOS:5.*:*)
  938. echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  939. - exit 0 ;;
  940. + exit ;;
  941. *:GNU:*:*)
  942. - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  943. - exit 0 ;;
  944. + # the GNU system
  945. + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  946. + exit ;;
  947. + *:GNU/*:*:*)
  948. + # other systems with GNU libc and userland
  949. + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
  950. + exit ;;
  951. i*86:Minix:*:*)
  952. echo ${UNAME_MACHINE}-pc-minix
  953. - exit 0 ;;
  954. + exit ;;
  955. + aarch64:Linux:*:*)
  956. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  957. + exit ;;
  958. + aarch64_be:Linux:*:*)
  959. + UNAME_MACHINE=aarch64_be
  960. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  961. + exit ;;
  962. + alpha:Linux:*:*)
  963. + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  964. + EV5) UNAME_MACHINE=alphaev5 ;;
  965. + EV56) UNAME_MACHINE=alphaev56 ;;
  966. + PCA56) UNAME_MACHINE=alphapca56 ;;
  967. + PCA57) UNAME_MACHINE=alphapca56 ;;
  968. + EV6) UNAME_MACHINE=alphaev6 ;;
  969. + EV67) UNAME_MACHINE=alphaev67 ;;
  970. + EV68*) UNAME_MACHINE=alphaev68 ;;
  971. + esac
  972. + objdump --private-headers /bin/sh | grep -q ld.so.1
  973. + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
  974. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  975. + exit ;;
  976. + arc:Linux:*:* | arceb:Linux:*:*)
  977. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  978. + exit ;;
  979. arm*:Linux:*:*)
  980. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  981. - exit 0 ;;
  982. + eval $set_cc_for_build
  983. + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  984. + | grep -q __ARM_EABI__
  985. + then
  986. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  987. + else
  988. + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
  989. + | grep -q __ARM_PCS_VFP
  990. + then
  991. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
  992. + else
  993. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
  994. + fi
  995. + fi
  996. + exit ;;
  997. + avr32*:Linux:*:*)
  998. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  999. + exit ;;
  1000. cris:Linux:*:*)
  1001. - echo cris-axis-linux-gnu
  1002. - exit 0 ;;
  1003. + echo ${UNAME_MACHINE}-axis-linux-${LIBC}
  1004. + exit ;;
  1005. + crisv32:Linux:*:*)
  1006. + echo ${UNAME_MACHINE}-axis-linux-${LIBC}
  1007. + exit ;;
  1008. + frv:Linux:*:*)
  1009. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  1010. + exit ;;
  1011. + hexagon:Linux:*:*)
  1012. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  1013. + exit ;;
  1014. + i*86:Linux:*:*)
  1015. + echo ${UNAME_MACHINE}-pc-linux-${LIBC}
  1016. + exit ;;
  1017. ia64:Linux:*:*)
  1018. - echo ${UNAME_MACHINE}-${VENDOR:-unknown}-linux-gnu
  1019. - exit 0 ;;
  1020. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  1021. + exit ;;
  1022. + m32r*:Linux:*:*)
  1023. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  1024. + exit ;;
  1025. m68*:Linux:*:*)
  1026. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  1027. - exit 0 ;;
  1028. - mips:Linux:*:*)
  1029. - eval $set_cc_for_build
  1030. - sed 's/^ //' << EOF >$dummy.c
  1031. - #undef CPU
  1032. - #undef mips
  1033. - #undef mipsel
  1034. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  1035. - CPU=mipsel
  1036. - #else
  1037. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  1038. - CPU=mips
  1039. - #else
  1040. - CPU=
  1041. - #endif
  1042. - #endif
  1043. -EOF
  1044. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  1045. - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  1046. - ;;
  1047. - mips64:Linux:*:*)
  1048. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  1049. + exit ;;
  1050. + mips:Linux:*:* | mips64:Linux:*:*)
  1051. eval $set_cc_for_build
  1052. sed 's/^ //' << EOF >$dummy.c
  1053. #undef CPU
  1054. - #undef mips64
  1055. - #undef mips64el
  1056. + #undef ${UNAME_MACHINE}
  1057. + #undef ${UNAME_MACHINE}el
  1058. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  1059. - CPU=mips64el
  1060. + CPU=${UNAME_MACHINE}el
  1061. #else
  1062. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  1063. - CPU=mips64
  1064. + CPU=${UNAME_MACHINE}
  1065. #else
  1066. CPU=
  1067. #endif
  1068. #endif
  1069. EOF
  1070. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  1071. - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  1072. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
  1073. + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
  1074. ;;
  1075. - ppc:Linux:*:*)
  1076. - echo powerpc-${VENDOR:-unknown}-linux-gnu
  1077. - exit 0 ;;
  1078. - ppc64:Linux:*:*)
  1079. - echo powerpc64-${VENDOR:-unknown}-linux-gnu
  1080. - exit 0 ;;
  1081. - alpha:Linux:*:*)
  1082. - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  1083. - EV5) UNAME_MACHINE=alphaev5 ;;
  1084. - EV56) UNAME_MACHINE=alphaev56 ;;
  1085. - PCA56) UNAME_MACHINE=alphapca56 ;;
  1086. - PCA57) UNAME_MACHINE=alphapca56 ;;
  1087. - EV6) UNAME_MACHINE=alphaev6 ;;
  1088. - EV67) UNAME_MACHINE=alphaev67 ;;
  1089. - EV68*) UNAME_MACHINE=alphaev68 ;;
  1090. - esac
  1091. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  1092. - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  1093. - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  1094. - exit 0 ;;
  1095. + or1k:Linux:*:*)
  1096. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  1097. + exit ;;
  1098. + or32:Linux:*:*)
  1099. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  1100. + exit ;;
  1101. + padre:Linux:*:*)
  1102. + echo sparc-unknown-linux-${LIBC}
  1103. + exit ;;
  1104. + parisc64:Linux:*:* | hppa64:Linux:*:*)
  1105. + echo hppa64-unknown-linux-${LIBC}
  1106. + exit ;;
  1107. parisc:Linux:*:* | hppa:Linux:*:*)
  1108. # Look for CPU level
  1109. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  1110. - PA7*) echo hppa1.1-unknown-linux-gnu ;;
  1111. - PA8*) echo hppa2.0-unknown-linux-gnu ;;
  1112. - *) echo hppa-unknown-linux-gnu ;;
  1113. + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
  1114. + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
  1115. + *) echo hppa-unknown-linux-${LIBC} ;;
  1116. esac
  1117. - exit 0 ;;
  1118. - parisc64:Linux:*:* | hppa64:Linux:*:*)
  1119. - echo hppa64-unknown-linux-gnu
  1120. - exit 0 ;;
  1121. + exit ;;
  1122. + ppc64:Linux:*:*)
  1123. + echo powerpc64-unknown-linux-${LIBC}
  1124. + exit ;;
  1125. + ppc:Linux:*:*)
  1126. + echo powerpc-unknown-linux-${LIBC}
  1127. + exit ;;
  1128. + ppc64le:Linux:*:*)
  1129. + echo powerpc64le-unknown-linux-${LIBC}
  1130. + exit ;;
  1131. + ppcle:Linux:*:*)
  1132. + echo powerpcle-unknown-linux-${LIBC}
  1133. + exit ;;
  1134. s390:Linux:*:* | s390x:Linux:*:*)
  1135. - echo ${UNAME_MACHINE}-${VENDOR:-ibm}-linux-gnu
  1136. - exit 0 ;;
  1137. + echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
  1138. + exit ;;
  1139. sh64*:Linux:*:*)
  1140. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  1141. - exit 0 ;;
  1142. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  1143. + exit ;;
  1144. sh*:Linux:*:*)
  1145. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  1146. - exit 0 ;;
  1147. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  1148. + exit ;;
  1149. sparc:Linux:*:* | sparc64:Linux:*:*)
  1150. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  1151. - exit 0 ;;
  1152. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  1153. + exit ;;
  1154. + tile*:Linux:*:*)
  1155. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  1156. + exit ;;
  1157. + vax:Linux:*:*)
  1158. + echo ${UNAME_MACHINE}-dec-linux-${LIBC}
  1159. + exit ;;
  1160. x86_64:Linux:*:*)
  1161. - echo x86_64-${VENDOR:-unknown}-linux-gnu
  1162. - exit 0 ;;
  1163. - i*86:Linux:*:*)
  1164. - # The BFD linker knows what the default object file format is, so
  1165. - # first see if it will tell us. cd to the root directory to prevent
  1166. - # problems with other programs or directories called `ld' in the path.
  1167. - # Set LC_ALL=C to ensure ld outputs messages in English.
  1168. - ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
  1169. - | sed -ne '/supported targets:/!d
  1170. - s/[ ][ ]*/ /g
  1171. - s/.*supported targets: *//
  1172. - s/ .*//
  1173. - p'`
  1174. - case "$ld_supported_targets" in
  1175. - elf32-i386)
  1176. - TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  1177. - ;;
  1178. - a.out-i386-linux)
  1179. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  1180. - exit 0 ;;
  1181. - coff-i386)
  1182. - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  1183. - exit 0 ;;
  1184. - "")
  1185. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  1186. - # one that does not give us useful --help.
  1187. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  1188. - exit 0 ;;
  1189. - esac
  1190. - # Determine whether the default compiler is a.out or elf
  1191. - eval $set_cc_for_build
  1192. - sed 's/^ //' << EOF >$dummy.c
  1193. - #include <features.h>
  1194. - #ifdef __ELF__
  1195. - # ifdef __GLIBC__
  1196. - # if __GLIBC__ >= 2
  1197. - LIBC=gnu
  1198. - # else
  1199. - LIBC=gnulibc1
  1200. - # endif
  1201. - # else
  1202. - LIBC=gnulibc1
  1203. - # endif
  1204. - #else
  1205. - #ifdef __INTEL_COMPILER
  1206. - LIBC=gnu
  1207. - #else
  1208. - LIBC=gnuaout
  1209. - #endif
  1210. - #endif
  1211. -EOF
  1212. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  1213. - test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR:-pc}-linux-${LIBC}" && exit 0
  1214. - test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
  1215. - ;;
  1216. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  1217. + exit ;;
  1218. + xtensa*:Linux:*:*)
  1219. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  1220. + exit ;;
  1221. i*86:DYNIX/ptx:4*:*)
  1222. # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  1223. # earlier versions are messed up and put the nodename in both
  1224. # sysname and nodename.
  1225. echo i386-sequent-sysv4
  1226. - exit 0 ;;
  1227. + exit ;;
  1228. i*86:UNIX_SV:4.2MP:2.*)
  1229. - # Unixware is an offshoot of SVR4, but it has its own version
  1230. - # number series starting with 2...
  1231. - # I am not positive that other SVR4 systems won't match this,
  1232. + # Unixware is an offshoot of SVR4, but it has its own version
  1233. + # number series starting with 2...
  1234. + # I am not positive that other SVR4 systems won't match this,
  1235. # I just have to hope. -- rms.
  1236. - # Use sysv4.2uw... so that sysv4* matches it.
  1237. + # Use sysv4.2uw... so that sysv4* matches it.
  1238. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  1239. - exit 0 ;;
  1240. + exit ;;
  1241. i*86:OS/2:*:*)
  1242. # If we were able to find `uname', then EMX Unix compatibility
  1243. # is probably installed.
  1244. echo ${UNAME_MACHINE}-pc-os2-emx
  1245. - exit 0 ;;
  1246. + exit ;;
  1247. i*86:XTS-300:*:STOP)
  1248. echo ${UNAME_MACHINE}-unknown-stop
  1249. - exit 0 ;;
  1250. + exit ;;
  1251. i*86:atheos:*:*)
  1252. echo ${UNAME_MACHINE}-unknown-atheos
  1253. - exit 0 ;;
  1254. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  1255. + exit ;;
  1256. + i*86:syllable:*:*)
  1257. + echo ${UNAME_MACHINE}-pc-syllable
  1258. + exit ;;
  1259. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  1260. echo i386-unknown-lynxos${UNAME_RELEASE}
  1261. - exit 0 ;;
  1262. + exit ;;
  1263. i*86:*DOS:*:*)
  1264. echo ${UNAME_MACHINE}-pc-msdosdjgpp
  1265. - exit 0 ;;
  1266. + exit ;;
  1267. i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
  1268. UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  1269. if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  1270. @@ -995,15 +1066,16 @@ EOF
  1271. else
  1272. echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  1273. fi
  1274. - exit 0 ;;
  1275. - i*86:*:5:[78]*)
  1276. + exit ;;
  1277. + i*86:*:5:[678]*)
  1278. + # UnixWare 7.x, OpenUNIX and OpenServer 6.
  1279. case `/bin/uname -X | grep "^Machine"` in
  1280. *486*) UNAME_MACHINE=i486 ;;
  1281. *Pentium) UNAME_MACHINE=i586 ;;
  1282. *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  1283. esac
  1284. echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  1285. - exit 0 ;;
  1286. + exit ;;
  1287. i*86:*:3.2:*)
  1288. if test -f /usr/options/cb.name; then
  1289. UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  1290. @@ -1021,73 +1093,86 @@ EOF
  1291. else
  1292. echo ${UNAME_MACHINE}-pc-sysv32
  1293. fi
  1294. - exit 0 ;;
  1295. + exit ;;
  1296. pc:*:*:*)
  1297. # Left here for compatibility:
  1298. - # uname -m prints for DJGPP always 'pc', but it prints nothing about
  1299. - # the processor, so we play safe by assuming i386.
  1300. - echo i386-pc-msdosdjgpp
  1301. - exit 0 ;;
  1302. + # uname -m prints for DJGPP always 'pc', but it prints nothing about
  1303. + # the processor, so we play safe by assuming i586.
  1304. + # Note: whatever this is, it MUST be the same as what config.sub
  1305. + # prints for the "djgpp" host, or else GDB configury will decide that
  1306. + # this is a cross-build.
  1307. + echo i586-pc-msdosdjgpp
  1308. + exit ;;
  1309. Intel:Mach:3*:*)
  1310. echo i386-pc-mach3
  1311. - exit 0 ;;
  1312. + exit ;;
  1313. paragon:*:*:*)
  1314. echo i860-intel-osf1
  1315. - exit 0 ;;
  1316. + exit ;;
  1317. i860:*:4.*:*) # i860-SVR4
  1318. if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  1319. echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  1320. else # Add other i860-SVR4 vendors below as they are discovered.
  1321. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
  1322. fi
  1323. - exit 0 ;;
  1324. + exit ;;
  1325. mini*:CTIX:SYS*5:*)
  1326. # "miniframe"
  1327. echo m68010-convergent-sysv
  1328. - exit 0 ;;
  1329. + exit ;;
  1330. mc68k:UNIX:SYSTEM5:3.51m)
  1331. echo m68k-convergent-sysv
  1332. - exit 0 ;;
  1333. + exit ;;
  1334. M680?0:D-NIX:5.3:*)
  1335. echo m68k-diab-dnix
  1336. - exit 0 ;;
  1337. - M68*:*:R3V[567]*:*)
  1338. - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
  1339. - 3[34]??:*: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)
  1340. + exit ;;
  1341. + M68*:*:R3V[5678]*:*)
  1342. + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
  1343. + 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)
  1344. OS_REL=''
  1345. test -r /etc/.relid \
  1346. && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  1347. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  1348. - && echo i486-ncr-sysv4.3${OS_REL} && exit 0
  1349. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  1350. /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  1351. - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
  1352. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  1353. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  1354. - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  1355. - && echo i486-ncr-sysv4 && exit 0 ;;
  1356. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  1357. + && { echo i486-ncr-sysv4; exit; } ;;
  1358. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  1359. + OS_REL='.3'
  1360. + test -r /etc/.relid \
  1361. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  1362. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  1363. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  1364. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  1365. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  1366. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  1367. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  1368. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  1369. echo m68k-unknown-lynxos${UNAME_RELEASE}
  1370. - exit 0 ;;
  1371. + exit ;;
  1372. mc68030:UNIX_System_V:4.*:*)
  1373. echo m68k-atari-sysv4
  1374. - exit 0 ;;
  1375. + exit ;;
  1376. TSUNAMI:LynxOS:2.*:*)
  1377. echo sparc-unknown-lynxos${UNAME_RELEASE}
  1378. - exit 0 ;;
  1379. + exit ;;
  1380. rs6000:LynxOS:2.*:*)
  1381. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  1382. - exit 0 ;;
  1383. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  1384. + exit ;;
  1385. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  1386. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  1387. - exit 0 ;;
  1388. + exit ;;
  1389. SM[BE]S:UNIX_SV:*:*)
  1390. echo mips-dde-sysv${UNAME_RELEASE}
  1391. - exit 0 ;;
  1392. + exit ;;
  1393. RM*:ReliantUNIX-*:*:*)
  1394. echo mips-sni-sysv4
  1395. - exit 0 ;;
  1396. + exit ;;
  1397. RM*:SINIX-*:*:*)
  1398. echo mips-sni-sysv4
  1399. - exit 0 ;;
  1400. + exit ;;
  1401. *:SINIX-*:*:*)
  1402. if uname -p 2>/dev/null >/dev/null ; then
  1403. UNAME_MACHINE=`(uname -p) 2>/dev/null`
  1404. @@ -1095,68 +1180,109 @@ EOF
  1405. else
  1406. echo ns32k-sni-sysv
  1407. fi
  1408. - exit 0 ;;
  1409. - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  1410. - # says <Richard.M.Bartel@ccMail.Census.GOV>
  1411. - echo i586-unisys-sysv4
  1412. - exit 0 ;;
  1413. + exit ;;
  1414. + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  1415. + # says <Richard.M.Bartel@ccMail.Census.GOV>
  1416. + echo i586-unisys-sysv4
  1417. + exit ;;
  1418. *:UNIX_System_V:4*:FTX*)
  1419. # From Gerald Hewes <hewes@openmarket.com>.
  1420. # How about differentiating between stratus architectures? -djm
  1421. echo hppa1.1-stratus-sysv4
  1422. - exit 0 ;;
  1423. + exit ;;
  1424. *:*:*:FTX*)
  1425. # From seanf@swdc.stratus.com.
  1426. echo i860-stratus-sysv4
  1427. - exit 0 ;;
  1428. + exit ;;
  1429. + i*86:VOS:*:*)
  1430. + # From Paul.Green@stratus.com.
  1431. + echo ${UNAME_MACHINE}-stratus-vos
  1432. + exit ;;
  1433. *:VOS:*:*)
  1434. # From Paul.Green@stratus.com.
  1435. echo hppa1.1-stratus-vos
  1436. - exit 0 ;;
  1437. + exit ;;
  1438. mc68*:A/UX:*:*)
  1439. echo m68k-apple-aux${UNAME_RELEASE}
  1440. - exit 0 ;;
  1441. + exit ;;
  1442. news*:NEWS-OS:6*:*)
  1443. echo mips-sony-newsos6
  1444. - exit 0 ;;
  1445. + exit ;;
  1446. R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  1447. if [ -d /usr/nec ]; then
  1448. - echo mips-nec-sysv${UNAME_RELEASE}
  1449. + echo mips-nec-sysv${UNAME_RELEASE}
  1450. else
  1451. - echo mips-unknown-sysv${UNAME_RELEASE}
  1452. + echo mips-unknown-sysv${UNAME_RELEASE}
  1453. fi
  1454. - exit 0 ;;
  1455. + exit ;;
  1456. BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
  1457. echo powerpc-be-beos
  1458. - exit 0 ;;
  1459. + exit ;;
  1460. BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
  1461. echo powerpc-apple-beos
  1462. - exit 0 ;;
  1463. + exit ;;
  1464. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  1465. echo i586-pc-beos
  1466. - exit 0 ;;
  1467. + exit ;;
  1468. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  1469. + echo i586-pc-haiku
  1470. + exit ;;
  1471. + x86_64:Haiku:*:*)
  1472. + echo x86_64-unknown-haiku
  1473. + exit ;;
  1474. SX-4:SUPER-UX:*:*)
  1475. echo sx4-nec-superux${UNAME_RELEASE}
  1476. - exit 0 ;;
  1477. + exit ;;
  1478. SX-5:SUPER-UX:*:*)
  1479. echo sx5-nec-superux${UNAME_RELEASE}
  1480. - exit 0 ;;
  1481. + exit ;;
  1482. SX-6:SUPER-UX:*:*)
  1483. echo sx6-nec-superux${UNAME_RELEASE}
  1484. - exit 0 ;;
  1485. + exit ;;
  1486. + SX-7:SUPER-UX:*:*)
  1487. + echo sx7-nec-superux${UNAME_RELEASE}
  1488. + exit ;;
  1489. + SX-8:SUPER-UX:*:*)
  1490. + echo sx8-nec-superux${UNAME_RELEASE}
  1491. + exit ;;
  1492. + SX-8R:SUPER-UX:*:*)
  1493. + echo sx8r-nec-superux${UNAME_RELEASE}
  1494. + exit ;;
  1495. Power*:Rhapsody:*:*)
  1496. echo powerpc-apple-rhapsody${UNAME_RELEASE}
  1497. - exit 0 ;;
  1498. + exit ;;
  1499. *:Rhapsody:*:*)
  1500. echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  1501. - exit 0 ;;
  1502. + exit ;;
  1503. *:Darwin:*:*)
  1504. - case `uname -p` in
  1505. - *86) UNAME_PROCESSOR=i686 ;;
  1506. - powerpc) UNAME_PROCESSOR=powerpc ;;
  1507. - esac
  1508. + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  1509. + eval $set_cc_for_build
  1510. + if test "$UNAME_PROCESSOR" = unknown ; then
  1511. + UNAME_PROCESSOR=powerpc
  1512. + fi
  1513. + if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
  1514. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  1515. + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
  1516. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  1517. + grep IS_64BIT_ARCH >/dev/null
  1518. + then
  1519. + case $UNAME_PROCESSOR in
  1520. + i386) UNAME_PROCESSOR=x86_64 ;;
  1521. + powerpc) UNAME_PROCESSOR=powerpc64 ;;
  1522. + esac
  1523. + fi
  1524. + fi
  1525. + elif test "$UNAME_PROCESSOR" = i386 ; then
  1526. + # Avoid executing cc on OS X 10.9, as it ships with a stub
  1527. + # that puts up a graphical alert prompting to install
  1528. + # developer tools. Any system running Mac OS X 10.7 or
  1529. + # later (Darwin 11 and later) is required to have a 64-bit
  1530. + # processor. This is not true of the ARM version of Darwin
  1531. + # that Apple uses in portable devices.
  1532. + UNAME_PROCESSOR=x86_64
  1533. + fi
  1534. echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  1535. - exit 0 ;;
  1536. + exit ;;
  1537. *:procnto*:*:* | *:QNX:[0123456789]*:*)
  1538. UNAME_PROCESSOR=`uname -p`
  1539. if test "$UNAME_PROCESSOR" = "x86"; then
  1540. @@ -1164,22 +1290,28 @@ EOF
  1541. UNAME_MACHINE=pc
  1542. fi
  1543. echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  1544. - exit 0 ;;
  1545. + exit ;;
  1546. *:QNX:*:4*)
  1547. echo i386-pc-qnx
  1548. - exit 0 ;;
  1549. - NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
  1550. + exit ;;
  1551. + NEO-?:NONSTOP_KERNEL:*:*)
  1552. + echo neo-tandem-nsk${UNAME_RELEASE}
  1553. + exit ;;
  1554. + NSE-*:NONSTOP_KERNEL:*:*)
  1555. + echo nse-tandem-nsk${UNAME_RELEASE}
  1556. + exit ;;
  1557. + NSR-?:NONSTOP_KERNEL:*:*)
  1558. echo nsr-tandem-nsk${UNAME_RELEASE}
  1559. - exit 0 ;;
  1560. + exit ;;
  1561. *:NonStop-UX:*:*)
  1562. echo mips-compaq-nonstopux
  1563. - exit 0 ;;
  1564. + exit ;;
  1565. BS2000:POSIX*:*:*)
  1566. echo bs2000-siemens-sysv
  1567. - exit 0 ;;
  1568. + exit ;;
  1569. DS/*:UNIX_System_V:*:*)
  1570. echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  1571. - exit 0 ;;
  1572. + exit ;;
  1573. *:Plan9:*:*)
  1574. # "uname -m" is not consistent, so use $cputype instead. 386
  1575. # is converted to i386 for consistency with other x86
  1576. @@ -1190,180 +1322,55 @@ EOF
  1577. UNAME_MACHINE="$cputype"
  1578. fi
  1579. echo ${UNAME_MACHINE}-unknown-plan9
  1580. - exit 0 ;;
  1581. + exit ;;
  1582. *:TOPS-10:*:*)
  1583. echo pdp10-unknown-tops10
  1584. - exit 0 ;;
  1585. + exit ;;
  1586. *:TENEX:*:*)
  1587. echo pdp10-unknown-tenex
  1588. - exit 0 ;;
  1589. + exit ;;
  1590. KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  1591. echo pdp10-dec-tops20
  1592. - exit 0 ;;
  1593. + exit ;;
  1594. XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  1595. echo pdp10-xkl-tops20
  1596. - exit 0 ;;
  1597. + exit ;;
  1598. *:TOPS-20:*:*)
  1599. echo pdp10-unknown-tops20
  1600. - exit 0 ;;
  1601. + exit ;;
  1602. *:ITS:*:*)
  1603. echo pdp10-unknown-its
  1604. - exit 0 ;;
  1605. + exit ;;
  1606. SEI:*:*:SEIUX)
  1607. - echo mips-sei-seiux${UNAME_RELEASE}
  1608. - exit 0 ;;
  1609. + echo mips-sei-seiux${UNAME_RELEASE}
  1610. + exit ;;
  1611. + *:DragonFly:*:*)
  1612. + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  1613. + exit ;;
  1614. + *:*VMS:*:*)
  1615. + UNAME_MACHINE=`(uname -p) 2>/dev/null`
  1616. + case "${UNAME_MACHINE}" in
  1617. + A*) echo alpha-dec-vms ; exit ;;
  1618. + I*) echo ia64-dec-vms ; exit ;;
  1619. + V*) echo vax-dec-vms ; exit ;;
  1620. + esac ;;
  1621. + *:XENIX:*:SysV)
  1622. + echo i386-pc-xenix
  1623. + exit ;;
  1624. + i*86:skyos:*:*)
  1625. + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
  1626. + exit ;;
  1627. + i*86:rdos:*:*)
  1628. + echo ${UNAME_MACHINE}-pc-rdos
  1629. + exit ;;
  1630. + i*86:AROS:*:*)
  1631. + echo ${UNAME_MACHINE}-pc-aros
  1632. + exit ;;
  1633. + x86_64:VMkernel:*:*)
  1634. + echo ${UNAME_MACHINE}-unknown-esx
  1635. + exit ;;
  1636. esac
  1637. -#echo '(No uname command or uname output not recognized.)' 1>&2
  1638. -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  1639. -
  1640. -eval $set_cc_for_build
  1641. -cat >$dummy.c <<EOF
  1642. -#ifdef _SEQUENT_
  1643. -# include <sys/types.h>
  1644. -# include <sys/utsname.h>
  1645. -#endif
  1646. -main ()
  1647. -{
  1648. -#if defined (sony)
  1649. -#if defined (MIPSEB)
  1650. - /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
  1651. - I don't know.... */
  1652. - printf ("mips-sony-bsd\n"); exit (0);
  1653. -#else
  1654. -#include <sys/param.h>
  1655. - printf ("m68k-sony-newsos%s\n",
  1656. -#ifdef NEWSOS4
  1657. - "4"
  1658. -#else
  1659. - ""
  1660. -#endif
  1661. - ); exit (0);
  1662. -#endif
  1663. -#endif
  1664. -
  1665. -#if defined (__arm) && defined (__acorn) && defined (__unix)
  1666. - printf ("arm-acorn-riscix"); exit (0);
  1667. -#endif
  1668. -
  1669. -#if defined (hp300) && !defined (hpux)
  1670. - printf ("m68k-hp-bsd\n"); exit (0);
  1671. -#endif
  1672. -
  1673. -#if defined (NeXT)
  1674. -#if !defined (__ARCHITECTURE__)
  1675. -#define __ARCHITECTURE__ "m68k"
  1676. -#endif
  1677. - int version;
  1678. - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  1679. - if (version < 4)
  1680. - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  1681. - else
  1682. - printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  1683. - exit (0);
  1684. -#endif
  1685. -
  1686. -#if defined (MULTIMAX) || defined (n16)
  1687. -#if defined (UMAXV)
  1688. - printf ("ns32k-encore-sysv\n"); exit (0);
  1689. -#else
  1690. -#if defined (CMU)
  1691. - printf ("ns32k-encore-mach\n"); exit (0);
  1692. -#else
  1693. - printf ("ns32k-encore-bsd\n"); exit (0);
  1694. -#endif
  1695. -#endif
  1696. -#endif
  1697. -
  1698. -#if defined (__386BSD__)
  1699. - printf ("i386-pc-bsd\n"); exit (0);
  1700. -#endif
  1701. -
  1702. -#if defined (sequent)
  1703. -#if defined (i386)
  1704. - printf ("i386-sequent-dynix\n"); exit (0);
  1705. -#endif
  1706. -#if defined (ns32000)
  1707. - printf ("ns32k-sequent-dynix\n"); exit (0);
  1708. -#endif
  1709. -#endif
  1710. -
  1711. -#if defined (_SEQUENT_)
  1712. - struct utsname un;
  1713. -
  1714. - uname(&un);
  1715. -
  1716. - if (strncmp(un.version, "V2", 2) == 0) {
  1717. - printf ("i386-sequent-ptx2\n"); exit (0);
  1718. - }
  1719. - if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
  1720. - printf ("i386-sequent-ptx1\n"); exit (0);
  1721. - }
  1722. - printf ("i386-sequent-ptx\n"); exit (0);
  1723. -
  1724. -#endif
  1725. -
  1726. -#if defined (vax)
  1727. -# if !defined (ultrix)
  1728. -# include <sys/param.h>
  1729. -# if defined (BSD)
  1730. -# if BSD == 43
  1731. - printf ("vax-dec-bsd4.3\n"); exit (0);
  1732. -# else
  1733. -# if BSD == 199006
  1734. - printf ("vax-dec-bsd4.3reno\n"); exit (0);
  1735. -# else
  1736. - printf ("vax-dec-bsd\n"); exit (0);
  1737. -# endif
  1738. -# endif
  1739. -# else
  1740. - printf ("vax-dec-bsd\n"); exit (0);
  1741. -# endif
  1742. -# else
  1743. - printf ("vax-dec-ultrix\n"); exit (0);
  1744. -# endif
  1745. -#endif
  1746. -
  1747. -#if defined (alliant) && defined (i860)
  1748. - printf ("i860-alliant-bsd\n"); exit (0);
  1749. -#endif
  1750. -
  1751. - exit (1);
  1752. -}
  1753. -EOF
  1754. -
  1755. -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
  1756. -
  1757. -# Apollos put the system type in the environment.
  1758. -
  1759. -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
  1760. -
  1761. -# Convex versions that predate uname can use getsysinfo(1)
  1762. -
  1763. -if [ -x /usr/convex/getsysinfo ]
  1764. -then
  1765. - case `getsysinfo -f cpu_type` in
  1766. - c1*)
  1767. - echo c1-convex-bsd
  1768. - exit 0 ;;
  1769. - c2*)
  1770. - if getsysinfo -f scalar_acc
  1771. - then echo c32-convex-bsd
  1772. - else echo c2-convex-bsd
  1773. - fi
  1774. - exit 0 ;;
  1775. - c34*)
  1776. - echo c34-convex-bsd
  1777. - exit 0 ;;
  1778. - c38*)
  1779. - echo c38-convex-bsd
  1780. - exit 0 ;;
  1781. - c4*)
  1782. - echo c4-convex-bsd
  1783. - exit 0 ;;
  1784. - esac
  1785. -fi
  1786. -
  1787. cat >&2 <<EOF
  1788. $0: unable to guess system type
  1789. @@ -1371,7 +1378,9 @@ This script, last modified $timestamp, h
  1790. the operating system you are using. It is advised that you
  1791. download the most up to date version of the config scripts from
  1792. - ftp://ftp.gnu.org/pub/gnu/config/
  1793. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  1794. +and
  1795. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  1796. If the version you run ($0) is already up to date, please
  1797. send the following data and any information you think might be