update-autoconf.patch 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326
  1. diff -Naur ruby-2.0.0-p648/tool/config.guess ruby-2.0.0-p648+ppc64le/tool/config.guess
  2. --- ruby-2.0.0-p648/tool/config.guess 2012-01-29 13:50:18.000000000 +0000
  3. +++ ruby-2.0.0-p648+ppc64le/tool/config.guess 2016-04-15 06:09:11.281978937 +0000
  4. @@ -1,14 +1,12 @@
  5. #! /bin/sh
  6. # Attempt to guess a canonical system name.
  7. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  8. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
  9. -# 2011 Free Software Foundation, Inc.
  10. +# Copyright 1992-2016 Free Software Foundation, Inc.
  11. -timestamp='2011-11-11'
  12. +timestamp='2016-04-02'
  13. # This file is free software; you can redistribute it and/or modify it
  14. # under the terms of the GNU General Public License as published by
  15. -# the Free Software Foundation; either version 2 of the License, or
  16. +# the Free Software Foundation; either version 3 of the License, or
  17. # (at your option) any later version.
  18. #
  19. # This program is distributed in the hope that it will be useful, but
  20. @@ -17,26 +15,22 @@
  21. # General Public License for more details.
  22. #
  23. # You should have received a copy of the GNU General Public License
  24. -# along with this program; if not, write to the Free Software
  25. -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  26. -# 02110-1301, USA.
  27. +# along with this program; if not, see <http://www.gnu.org/licenses/>.
  28. #
  29. # As a special exception to the GNU General Public License, if you
  30. # distribute this file as part of a program that contains a
  31. # configuration script generated by Autoconf, you may include it under
  32. -# the same distribution terms that you use for the rest of that program.
  33. -
  34. -
  35. -# Originally written by Per Bothner. Please send patches (context
  36. -# diff format) to <config-patches@gnu.org> and include a ChangeLog
  37. -# entry.
  38. +# the same distribution terms that you use for the rest of that
  39. +# program. This Exception is an additional permission under section 7
  40. +# of the GNU General Public License, version 3 ("GPLv3").
  41. #
  42. -# This script attempts to guess a canonical system name similar to
  43. -# config.sub. If it succeeds, it prints the system name on stdout, and
  44. -# exits with 0. Otherwise, it exits with 1.
  45. +# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
  46. #
  47. # You can get the latest version of this script from:
  48. -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  49. +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
  50. +#
  51. +# Please send patches to <config-patches@gnu.org>.
  52. +
  53. me=`echo "$0" | sed -e 's,.*/,,'`
  54. @@ -56,9 +50,7 @@
  55. GNU config.guess ($timestamp)
  56. Originally written by Per Bothner.
  57. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
  58. -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
  59. -Software Foundation, Inc.
  60. +Copyright 1992-2016 Free Software Foundation, Inc.
  61. This is free software; see the source for copying conditions. There is NO
  62. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  63. @@ -140,12 +132,33 @@
  64. UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  65. UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
  66. +case "${UNAME_SYSTEM}" in
  67. +Linux|GNU|GNU/*)
  68. + # If the system lacks a compiler, then just pick glibc.
  69. + # We could probably try harder.
  70. + LIBC=gnu
  71. +
  72. + eval $set_cc_for_build
  73. + cat <<-EOF > $dummy.c
  74. + #include <features.h>
  75. + #if defined(__UCLIBC__)
  76. + LIBC=uclibc
  77. + #elif defined(__dietlibc__)
  78. + LIBC=dietlibc
  79. + #else
  80. + LIBC=gnu
  81. + #endif
  82. + EOF
  83. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
  84. + ;;
  85. +esac
  86. +
  87. # Note: order is significant - the case branches are not exclusive.
  88. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  89. *:NetBSD:*:*)
  90. # NetBSD (nbsd) targets should (where applicable) match one or
  91. - # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
  92. + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
  93. # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
  94. # switched to ELF, *-*-netbsd* would select the old
  95. # object file format. This provides both forward
  96. @@ -155,20 +168,27 @@
  97. # Note: NetBSD doesn't particularly care about the vendor
  98. # portion of the name. We always set it to "unknown".
  99. sysctl="sysctl -n hw.machine_arch"
  100. - UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
  101. - /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
  102. + UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
  103. + /sbin/$sysctl 2>/dev/null || \
  104. + /usr/sbin/$sysctl 2>/dev/null || \
  105. + echo unknown)`
  106. case "${UNAME_MACHINE_ARCH}" in
  107. armeb) machine=armeb-unknown ;;
  108. arm*) machine=arm-unknown ;;
  109. sh3el) machine=shl-unknown ;;
  110. sh3eb) machine=sh-unknown ;;
  111. sh5el) machine=sh5le-unknown ;;
  112. + earmv*)
  113. + arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
  114. + endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
  115. + machine=${arch}${endian}-unknown
  116. + ;;
  117. *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  118. esac
  119. # The Operating System including object format, if it has switched
  120. # to ELF recently, or will in the future.
  121. case "${UNAME_MACHINE_ARCH}" in
  122. - arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  123. + arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
  124. eval $set_cc_for_build
  125. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  126. | grep -q __ELF__
  127. @@ -184,6 +204,13 @@
  128. os=netbsd
  129. ;;
  130. esac
  131. + # Determine ABI tags.
  132. + case "${UNAME_MACHINE_ARCH}" in
  133. + earm*)
  134. + expr='s/^earmv[0-9]/-eabi/;s/eb$//'
  135. + abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
  136. + ;;
  137. + esac
  138. # The OS release
  139. # Debian GNU/NetBSD machines have a different userland, and
  140. # thus, need a distinct triplet. However, they do not need
  141. @@ -194,18 +221,26 @@
  142. release='-gnu'
  143. ;;
  144. *)
  145. - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  146. + release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
  147. ;;
  148. esac
  149. # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
  150. # contains redundant information, the shorter form:
  151. # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  152. - echo "${machine}-${os}${release}"
  153. + echo "${machine}-${os}${release}${abi}"
  154. + exit ;;
  155. + *:Bitrig:*:*)
  156. + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
  157. + echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
  158. exit ;;
  159. *:OpenBSD:*:*)
  160. UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
  161. echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
  162. exit ;;
  163. + *:LibertyBSD:*:*)
  164. + UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
  165. + echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE}
  166. + exit ;;
  167. *:ekkoBSD:*:*)
  168. echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
  169. exit ;;
  170. @@ -218,6 +253,9 @@
  171. *:MirBSD:*:*)
  172. echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
  173. exit ;;
  174. + *:Sortix:*:*)
  175. + echo ${UNAME_MACHINE}-unknown-sortix
  176. + exit ;;
  177. alpha:OSF1:*:*)
  178. case $UNAME_RELEASE in
  179. *4.0)
  180. @@ -234,42 +272,42 @@
  181. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
  182. case "$ALPHA_CPU_TYPE" in
  183. "EV4 (21064)")
  184. - UNAME_MACHINE="alpha" ;;
  185. + UNAME_MACHINE=alpha ;;
  186. "EV4.5 (21064)")
  187. - UNAME_MACHINE="alpha" ;;
  188. + UNAME_MACHINE=alpha ;;
  189. "LCA4 (21066/21068)")
  190. - UNAME_MACHINE="alpha" ;;
  191. + UNAME_MACHINE=alpha ;;
  192. "EV5 (21164)")
  193. - UNAME_MACHINE="alphaev5" ;;
  194. + UNAME_MACHINE=alphaev5 ;;
  195. "EV5.6 (21164A)")
  196. - UNAME_MACHINE="alphaev56" ;;
  197. + UNAME_MACHINE=alphaev56 ;;
  198. "EV5.6 (21164PC)")
  199. - UNAME_MACHINE="alphapca56" ;;
  200. + UNAME_MACHINE=alphapca56 ;;
  201. "EV5.7 (21164PC)")
  202. - UNAME_MACHINE="alphapca57" ;;
  203. + UNAME_MACHINE=alphapca57 ;;
  204. "EV6 (21264)")
  205. - UNAME_MACHINE="alphaev6" ;;
  206. + UNAME_MACHINE=alphaev6 ;;
  207. "EV6.7 (21264A)")
  208. - UNAME_MACHINE="alphaev67" ;;
  209. + UNAME_MACHINE=alphaev67 ;;
  210. "EV6.8CB (21264C)")
  211. - UNAME_MACHINE="alphaev68" ;;
  212. + UNAME_MACHINE=alphaev68 ;;
  213. "EV6.8AL (21264B)")
  214. - UNAME_MACHINE="alphaev68" ;;
  215. + UNAME_MACHINE=alphaev68 ;;
  216. "EV6.8CX (21264D)")
  217. - UNAME_MACHINE="alphaev68" ;;
  218. + UNAME_MACHINE=alphaev68 ;;
  219. "EV6.9A (21264/EV69A)")
  220. - UNAME_MACHINE="alphaev69" ;;
  221. + UNAME_MACHINE=alphaev69 ;;
  222. "EV7 (21364)")
  223. - UNAME_MACHINE="alphaev7" ;;
  224. + UNAME_MACHINE=alphaev7 ;;
  225. "EV7.9 (21364A)")
  226. - UNAME_MACHINE="alphaev79" ;;
  227. + UNAME_MACHINE=alphaev79 ;;
  228. esac
  229. # A Pn.n version is a patched version.
  230. # A Vn.n version is a released version.
  231. # A Tn.n version is a released field test version.
  232. # A Xn.n version is an unreleased experimental baselevel.
  233. # 1.2 uses "1.2" for uname -r.
  234. - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  235. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
  236. # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
  237. exitcode=$?
  238. trap '' 0
  239. @@ -304,7 +342,7 @@
  240. arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  241. echo arm-acorn-riscix${UNAME_RELEASE}
  242. exit ;;
  243. - arm:riscos:*:*|arm:RISCOS:*:*)
  244. + arm*:riscos:*:*|arm*:RISCOS:*:*)
  245. echo arm-unknown-riscos
  246. exit ;;
  247. SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
  248. @@ -342,16 +380,16 @@
  249. exit ;;
  250. i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  251. eval $set_cc_for_build
  252. - SUN_ARCH="i386"
  253. + SUN_ARCH=i386
  254. # If there is a compiler, see if it is configured for 64-bit objects.
  255. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  256. # This test works for both compilers.
  257. - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  258. + if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
  259. if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  260. - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  261. + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
  262. grep IS_64BIT_ARCH >/dev/null
  263. then
  264. - SUN_ARCH="x86_64"
  265. + SUN_ARCH=x86_64
  266. fi
  267. fi
  268. echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  269. @@ -376,7 +414,7 @@
  270. exit ;;
  271. sun*:*:4.2BSD:*)
  272. UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  273. - test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  274. + test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3
  275. case "`/bin/arch`" in
  276. sun3)
  277. echo m68k-sun-sunos${UNAME_RELEASE}
  278. @@ -562,8 +600,9 @@
  279. else
  280. IBM_ARCH=powerpc
  281. fi
  282. - if [ -x /usr/bin/oslevel ] ; then
  283. - IBM_REV=`/usr/bin/oslevel`
  284. + if [ -x /usr/bin/lslpp ] ; then
  285. + IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
  286. + awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
  287. else
  288. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  289. fi
  290. @@ -600,13 +639,13 @@
  291. sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
  292. sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
  293. case "${sc_cpu_version}" in
  294. - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
  295. - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
  296. + 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
  297. + 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
  298. 532) # CPU_PA_RISC2_0
  299. case "${sc_kernel_bits}" in
  300. - 32) HP_ARCH="hppa2.0n" ;;
  301. - 64) HP_ARCH="hppa2.0w" ;;
  302. - '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
  303. + 32) HP_ARCH=hppa2.0n ;;
  304. + 64) HP_ARCH=hppa2.0w ;;
  305. + '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
  306. esac ;;
  307. esac
  308. fi
  309. @@ -645,11 +684,11 @@
  310. exit (0);
  311. }
  312. EOF
  313. - (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
  314. + (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
  315. test -z "$HP_ARCH" && HP_ARCH=hppa
  316. fi ;;
  317. esac
  318. - if [ ${HP_ARCH} = "hppa2.0w" ]
  319. + if [ ${HP_ARCH} = hppa2.0w ]
  320. then
  321. eval $set_cc_for_build
  322. @@ -662,12 +701,12 @@
  323. # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
  324. # => hppa64-hp-hpux11.23
  325. - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  326. + if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
  327. grep -q __LP64__
  328. then
  329. - HP_ARCH="hppa2.0w"
  330. + HP_ARCH=hppa2.0w
  331. else
  332. - HP_ARCH="hppa64"
  333. + HP_ARCH=hppa64
  334. fi
  335. fi
  336. echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  337. @@ -772,14 +811,14 @@
  338. echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  339. exit ;;
  340. F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  341. - FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  342. - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  343. + FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
  344. + FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
  345. FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  346. echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  347. exit ;;
  348. 5000:UNIX_System_V:4.*:*)
  349. - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  350. - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  351. + FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
  352. + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
  353. echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  354. exit ;;
  355. i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  356. @@ -803,10 +842,13 @@
  357. i*:CYGWIN*:*)
  358. echo ${UNAME_MACHINE}-pc-cygwin
  359. exit ;;
  360. + *:MINGW64*:*)
  361. + echo ${UNAME_MACHINE}-pc-mingw64
  362. + exit ;;
  363. *:MINGW*:*)
  364. echo ${UNAME_MACHINE}-pc-mingw32
  365. exit ;;
  366. - i*:MSYS*:*)
  367. + *:MSYS*:*)
  368. echo ${UNAME_MACHINE}-pc-msys
  369. exit ;;
  370. i*:windows32*:*)
  371. @@ -854,15 +896,22 @@
  372. exit ;;
  373. *:GNU:*:*)
  374. # the GNU system
  375. - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  376. + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  377. exit ;;
  378. *:GNU/*:*:*)
  379. # other systems with GNU libc and userland
  380. - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
  381. + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
  382. exit ;;
  383. i*86:Minix:*:*)
  384. echo ${UNAME_MACHINE}-pc-minix
  385. exit ;;
  386. + aarch64:Linux:*:*)
  387. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  388. + exit ;;
  389. + aarch64_be:Linux:*:*)
  390. + UNAME_MACHINE=aarch64_be
  391. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  392. + exit ;;
  393. alpha:Linux:*:*)
  394. case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  395. EV5) UNAME_MACHINE=alphaev5 ;;
  396. @@ -874,59 +923,60 @@
  397. EV68*) UNAME_MACHINE=alphaev68 ;;
  398. esac
  399. objdump --private-headers /bin/sh | grep -q ld.so.1
  400. - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  401. - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  402. + if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
  403. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  404. + exit ;;
  405. + arc:Linux:*:* | arceb:Linux:*:*)
  406. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  407. exit ;;
  408. arm*:Linux:*:*)
  409. eval $set_cc_for_build
  410. if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  411. | grep -q __ARM_EABI__
  412. then
  413. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  414. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  415. else
  416. if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
  417. | grep -q __ARM_PCS_VFP
  418. then
  419. - echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  420. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
  421. else
  422. - echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
  423. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
  424. fi
  425. fi
  426. exit ;;
  427. avr32*:Linux:*:*)
  428. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  429. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  430. exit ;;
  431. cris:Linux:*:*)
  432. - echo cris-axis-linux-gnu
  433. + echo ${UNAME_MACHINE}-axis-linux-${LIBC}
  434. exit ;;
  435. crisv32:Linux:*:*)
  436. - echo crisv32-axis-linux-gnu
  437. + echo ${UNAME_MACHINE}-axis-linux-${LIBC}
  438. + exit ;;
  439. + e2k:Linux:*:*)
  440. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  441. exit ;;
  442. frv:Linux:*:*)
  443. - echo frv-unknown-linux-gnu
  444. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  445. exit ;;
  446. hexagon:Linux:*:*)
  447. - echo hexagon-unknown-linux-gnu
  448. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  449. exit ;;
  450. i*86:Linux:*:*)
  451. - LIBC=gnu
  452. - eval $set_cc_for_build
  453. - sed 's/^ //' << EOF >$dummy.c
  454. - #ifdef __dietlibc__
  455. - LIBC=dietlibc
  456. - #endif
  457. -EOF
  458. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
  459. - echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  460. + echo ${UNAME_MACHINE}-pc-linux-${LIBC}
  461. exit ;;
  462. ia64:Linux:*:*)
  463. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  464. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  465. + exit ;;
  466. + k1om:Linux:*:*)
  467. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  468. exit ;;
  469. m32r*:Linux:*:*)
  470. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  471. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  472. exit ;;
  473. m68*:Linux:*:*)
  474. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  475. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  476. exit ;;
  477. mips:Linux:*:* | mips64:Linux:*:*)
  478. eval $set_cc_for_build
  479. @@ -945,54 +995,63 @@
  480. #endif
  481. EOF
  482. eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
  483. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  484. + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
  485. ;;
  486. - or32:Linux:*:*)
  487. - echo or32-unknown-linux-gnu
  488. + openrisc*:Linux:*:*)
  489. + echo or1k-unknown-linux-${LIBC}
  490. + exit ;;
  491. + or32:Linux:*:* | or1k*:Linux:*:*)
  492. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  493. exit ;;
  494. padre:Linux:*:*)
  495. - echo sparc-unknown-linux-gnu
  496. + echo sparc-unknown-linux-${LIBC}
  497. exit ;;
  498. parisc64:Linux:*:* | hppa64:Linux:*:*)
  499. - echo hppa64-unknown-linux-gnu
  500. + echo hppa64-unknown-linux-${LIBC}
  501. exit ;;
  502. parisc:Linux:*:* | hppa:Linux:*:*)
  503. # Look for CPU level
  504. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  505. - PA7*) echo hppa1.1-unknown-linux-gnu ;;
  506. - PA8*) echo hppa2.0-unknown-linux-gnu ;;
  507. - *) echo hppa-unknown-linux-gnu ;;
  508. + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
  509. + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
  510. + *) echo hppa-unknown-linux-${LIBC} ;;
  511. esac
  512. exit ;;
  513. ppc64:Linux:*:*)
  514. - echo powerpc64-unknown-linux-gnu
  515. + echo powerpc64-unknown-linux-${LIBC}
  516. exit ;;
  517. ppc:Linux:*:*)
  518. - echo powerpc-unknown-linux-gnu
  519. + echo powerpc-unknown-linux-${LIBC}
  520. + exit ;;
  521. + ppc64le:Linux:*:*)
  522. + echo powerpc64le-unknown-linux-${LIBC}
  523. + exit ;;
  524. + ppcle:Linux:*:*)
  525. + echo powerpcle-unknown-linux-${LIBC}
  526. exit ;;
  527. s390:Linux:*:* | s390x:Linux:*:*)
  528. - echo ${UNAME_MACHINE}-ibm-linux
  529. + echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
  530. exit ;;
  531. sh64*:Linux:*:*)
  532. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  533. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  534. exit ;;
  535. sh*:Linux:*:*)
  536. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  537. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  538. exit ;;
  539. sparc:Linux:*:* | sparc64:Linux:*:*)
  540. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  541. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  542. exit ;;
  543. tile*:Linux:*:*)
  544. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  545. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  546. exit ;;
  547. vax:Linux:*:*)
  548. - echo ${UNAME_MACHINE}-dec-linux-gnu
  549. + echo ${UNAME_MACHINE}-dec-linux-${LIBC}
  550. exit ;;
  551. x86_64:Linux:*:*)
  552. - echo x86_64-unknown-linux-gnu
  553. + echo ${UNAME_MACHINE}-pc-linux-${LIBC}
  554. exit ;;
  555. xtensa*:Linux:*:*)
  556. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  557. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  558. exit ;;
  559. i*86:DYNIX/ptx:4*:*)
  560. # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  561. @@ -1068,7 +1127,7 @@
  562. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  563. # the processor, so we play safe by assuming i586.
  564. # Note: whatever this is, it MUST be the same as what config.sub
  565. - # prints for the "djgpp" host, or else GDB configury will decide that
  566. + # prints for the "djgpp" host, or else GDB configure will decide that
  567. # this is a cross-build.
  568. echo i586-pc-msdosdjgpp
  569. exit ;;
  570. @@ -1196,6 +1255,9 @@
  571. BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  572. echo i586-pc-haiku
  573. exit ;;
  574. + x86_64:Haiku:*:*)
  575. + echo x86_64-unknown-haiku
  576. + exit ;;
  577. SX-4:SUPER-UX:*:*)
  578. echo sx4-nec-superux${UNAME_RELEASE}
  579. exit ;;
  580. @@ -1214,6 +1276,9 @@
  581. SX-8R:SUPER-UX:*:*)
  582. echo sx8r-nec-superux${UNAME_RELEASE}
  583. exit ;;
  584. + SX-ACE:SUPER-UX:*:*)
  585. + echo sxace-nec-superux${UNAME_RELEASE}
  586. + exit ;;
  587. Power*:Rhapsody:*:*)
  588. echo powerpc-apple-rhapsody${UNAME_RELEASE}
  589. exit ;;
  590. @@ -1222,24 +1287,36 @@
  591. exit ;;
  592. *:Darwin:*:*)
  593. UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  594. - case $UNAME_PROCESSOR in
  595. - i386)
  596. - eval $set_cc_for_build
  597. - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  598. - if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
  599. - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  600. - grep IS_64BIT_ARCH >/dev/null
  601. - then
  602. - UNAME_PROCESSOR="x86_64"
  603. - fi
  604. - fi ;;
  605. - unknown) UNAME_PROCESSOR=powerpc ;;
  606. - esac
  607. + eval $set_cc_for_build
  608. + if test "$UNAME_PROCESSOR" = unknown ; then
  609. + UNAME_PROCESSOR=powerpc
  610. + fi
  611. + if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
  612. + if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
  613. + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
  614. + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
  615. + grep IS_64BIT_ARCH >/dev/null
  616. + then
  617. + case $UNAME_PROCESSOR in
  618. + i386) UNAME_PROCESSOR=x86_64 ;;
  619. + powerpc) UNAME_PROCESSOR=powerpc64 ;;
  620. + esac
  621. + fi
  622. + fi
  623. + elif test "$UNAME_PROCESSOR" = i386 ; then
  624. + # Avoid executing cc on OS X 10.9, as it ships with a stub
  625. + # that puts up a graphical alert prompting to install
  626. + # developer tools. Any system running Mac OS X 10.7 or
  627. + # later (Darwin 11 and later) is required to have a 64-bit
  628. + # processor. This is not true of the ARM version of Darwin
  629. + # that Apple uses in portable devices.
  630. + UNAME_PROCESSOR=x86_64
  631. + fi
  632. echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  633. exit ;;
  634. *:procnto*:*:* | *:QNX:[0123456789]*:*)
  635. UNAME_PROCESSOR=`uname -p`
  636. - if test "$UNAME_PROCESSOR" = "x86"; then
  637. + if test "$UNAME_PROCESSOR" = x86; then
  638. UNAME_PROCESSOR=i386
  639. UNAME_MACHINE=pc
  640. fi
  641. @@ -1251,7 +1328,7 @@
  642. NEO-?:NONSTOP_KERNEL:*:*)
  643. echo neo-tandem-nsk${UNAME_RELEASE}
  644. exit ;;
  645. - NSE-?:NONSTOP_KERNEL:*:*)
  646. + NSE-*:NONSTOP_KERNEL:*:*)
  647. echo nse-tandem-nsk${UNAME_RELEASE}
  648. exit ;;
  649. NSR-?:NONSTOP_KERNEL:*:*)
  650. @@ -1270,7 +1347,7 @@
  651. # "uname -m" is not consistent, so use $cputype instead. 386
  652. # is converted to i386 for consistency with other x86
  653. # operating systems.
  654. - if test "$cputype" = "386"; then
  655. + if test "$cputype" = 386; then
  656. UNAME_MACHINE=i386
  657. else
  658. UNAME_MACHINE="$cputype"
  659. @@ -1312,7 +1389,7 @@
  660. echo i386-pc-xenix
  661. exit ;;
  662. i*86:skyos:*:*)
  663. - echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
  664. + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'`
  665. exit ;;
  666. i*86:rdos:*:*)
  667. echo ${UNAME_MACHINE}-pc-rdos
  668. @@ -1320,158 +1397,13 @@
  669. i*86:AROS:*:*)
  670. echo ${UNAME_MACHINE}-pc-aros
  671. exit ;;
  672. -esac
  673. -
  674. -#echo '(No uname command or uname output not recognized.)' 1>&2
  675. -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  676. -
  677. -eval $set_cc_for_build
  678. -cat >$dummy.c <<EOF
  679. -#ifdef _SEQUENT_
  680. -# include <sys/types.h>
  681. -# include <sys/utsname.h>
  682. -#endif
  683. -main ()
  684. -{
  685. -#if defined (sony)
  686. -#if defined (MIPSEB)
  687. - /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
  688. - I don't know.... */
  689. - printf ("mips-sony-bsd\n"); exit (0);
  690. -#else
  691. -#include <sys/param.h>
  692. - printf ("m68k-sony-newsos%s\n",
  693. -#ifdef NEWSOS4
  694. - "4"
  695. -#else
  696. - ""
  697. -#endif
  698. - ); exit (0);
  699. -#endif
  700. -#endif
  701. -
  702. -#if defined (__arm) && defined (__acorn) && defined (__unix)
  703. - printf ("arm-acorn-riscix\n"); exit (0);
  704. -#endif
  705. -
  706. -#if defined (hp300) && !defined (hpux)
  707. - printf ("m68k-hp-bsd\n"); exit (0);
  708. -#endif
  709. -
  710. -#if defined (NeXT)
  711. -#if !defined (__ARCHITECTURE__)
  712. -#define __ARCHITECTURE__ "m68k"
  713. -#endif
  714. - int version;
  715. - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  716. - if (version < 4)
  717. - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  718. - else
  719. - printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  720. - exit (0);
  721. -#endif
  722. -
  723. -#if defined (MULTIMAX) || defined (n16)
  724. -#if defined (UMAXV)
  725. - printf ("ns32k-encore-sysv\n"); exit (0);
  726. -#else
  727. -#if defined (CMU)
  728. - printf ("ns32k-encore-mach\n"); exit (0);
  729. -#else
  730. - printf ("ns32k-encore-bsd\n"); exit (0);
  731. -#endif
  732. -#endif
  733. -#endif
  734. -
  735. -#if defined (__386BSD__)
  736. - printf ("i386-pc-bsd\n"); exit (0);
  737. -#endif
  738. -
  739. -#if defined (sequent)
  740. -#if defined (i386)
  741. - printf ("i386-sequent-dynix\n"); exit (0);
  742. -#endif
  743. -#if defined (ns32000)
  744. - printf ("ns32k-sequent-dynix\n"); exit (0);
  745. -#endif
  746. -#endif
  747. -
  748. -#if defined (_SEQUENT_)
  749. - struct utsname un;
  750. -
  751. - uname(&un);
  752. -
  753. - if (strncmp(un.version, "V2", 2) == 0) {
  754. - printf ("i386-sequent-ptx2\n"); exit (0);
  755. - }
  756. - if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
  757. - printf ("i386-sequent-ptx1\n"); exit (0);
  758. - }
  759. - printf ("i386-sequent-ptx\n"); exit (0);
  760. -
  761. -#endif
  762. -
  763. -#if defined (vax)
  764. -# if !defined (ultrix)
  765. -# include <sys/param.h>
  766. -# if defined (BSD)
  767. -# if BSD == 43
  768. - printf ("vax-dec-bsd4.3\n"); exit (0);
  769. -# else
  770. -# if BSD == 199006
  771. - printf ("vax-dec-bsd4.3reno\n"); exit (0);
  772. -# else
  773. - printf ("vax-dec-bsd\n"); exit (0);
  774. -# endif
  775. -# endif
  776. -# else
  777. - printf ("vax-dec-bsd\n"); exit (0);
  778. -# endif
  779. -# else
  780. - printf ("vax-dec-ultrix\n"); exit (0);
  781. -# endif
  782. -#endif
  783. -
  784. -#if defined (alliant) && defined (i860)
  785. - printf ("i860-alliant-bsd\n"); exit (0);
  786. -#endif
  787. -
  788. - exit (1);
  789. -}
  790. -EOF
  791. -
  792. -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
  793. - { echo "$SYSTEM_NAME"; exit; }
  794. -
  795. -# Apollos put the system type in the environment.
  796. -
  797. -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
  798. -
  799. -# Convex versions that predate uname can use getsysinfo(1)
  800. -
  801. -if [ -x /usr/convex/getsysinfo ]
  802. -then
  803. - case `getsysinfo -f cpu_type` in
  804. - c1*)
  805. - echo c1-convex-bsd
  806. + x86_64:VMkernel:*:*)
  807. + echo ${UNAME_MACHINE}-unknown-esx
  808. exit ;;
  809. - c2*)
  810. - if getsysinfo -f scalar_acc
  811. - then echo c32-convex-bsd
  812. - else echo c2-convex-bsd
  813. - fi
  814. - exit ;;
  815. - c34*)
  816. - echo c34-convex-bsd
  817. + amd64:Isilon\ OneFS:*:*)
  818. + echo x86_64-unknown-onefs
  819. exit ;;
  820. - c38*)
  821. - echo c38-convex-bsd
  822. - exit ;;
  823. - c4*)
  824. - echo c4-convex-bsd
  825. - exit ;;
  826. - esac
  827. -fi
  828. +esac
  829. cat >&2 <<EOF
  830. $0: unable to guess system type
  831. @@ -1480,9 +1412,9 @@
  832. the operating system you are using. It is advised that you
  833. download the most up to date version of the config scripts from
  834. - http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  835. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
  836. and
  837. - http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  838. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
  839. If the version you run ($0) is already up to date, please
  840. send the following data and any information you think might be
  841. diff -Naur ruby-2.0.0-p648/tool/config.sub ruby-2.0.0-p648+ppc64le/tool/config.sub
  842. --- ruby-2.0.0-p648/tool/config.sub 2012-01-29 13:50:18.000000000 +0000
  843. +++ ruby-2.0.0-p648+ppc64le/tool/config.sub 2016-04-15 06:09:29.352405386 +0000
  844. @@ -1,38 +1,31 @@
  845. #! /bin/sh
  846. # Configuration validation subroutine script.
  847. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  848. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
  849. -# 2011 Free Software Foundation, Inc.
  850. -
  851. -timestamp='2011-11-11'
  852. -
  853. -# This file is (in principle) common to ALL GNU software.
  854. -# The presence of a machine in this file suggests that SOME GNU software
  855. -# can handle that machine. It does not imply ALL GNU software can.
  856. -#
  857. -# This file is free software; you can redistribute it and/or modify
  858. -# it under the terms of the GNU General Public License as published by
  859. -# the Free Software Foundation; either version 2 of the License, or
  860. +# Copyright 1992-2016 Free Software Foundation, Inc.
  861. +
  862. +timestamp='2016-03-30'
  863. +
  864. +# This file is free software; you can redistribute it and/or modify it
  865. +# under the terms of the GNU General Public License as published by
  866. +# the Free Software Foundation; either version 3 of the License, or
  867. # (at your option) any later version.
  868. #
  869. -# This program is distributed in the hope that it will be useful,
  870. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  871. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  872. -# GNU General Public License for more details.
  873. +# This program is distributed in the hope that it will be useful, but
  874. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  875. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  876. +# General Public License for more details.
  877. #
  878. # You should have received a copy of the GNU General Public License
  879. -# along with this program; if not, write to the Free Software
  880. -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  881. -# 02110-1301, USA.
  882. +# along with this program; if not, see <http://www.gnu.org/licenses/>.
  883. #
  884. # As a special exception to the GNU General Public License, if you
  885. # distribute this file as part of a program that contains a
  886. # configuration script generated by Autoconf, you may include it under
  887. -# the same distribution terms that you use for the rest of that program.
  888. +# the same distribution terms that you use for the rest of that
  889. +# program. This Exception is an additional permission under section 7
  890. +# of the GNU General Public License, version 3 ("GPLv3").
  891. -# Please send patches to <config-patches@gnu.org>. Submit a context
  892. -# diff and a properly formatted GNU ChangeLog entry.
  893. +# Please send patches to <config-patches@gnu.org>.
  894. #
  895. # Configuration subroutine to validate and canonicalize a configuration type.
  896. # Supply the specified configuration type as an argument.
  897. @@ -40,7 +33,7 @@
  898. # Otherwise, we print the canonical config type on stdout and succeed.
  899. # You can get the latest version of this script from:
  900. -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  901. +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
  902. # This file is supposed to be the same for all GNU packages
  903. # and recognize all the CPU types, system types and aliases
  904. @@ -60,8 +53,7 @@
  905. me=`echo "$0" | sed -e 's,.*/,,'`
  906. usage="\
  907. -Usage: $0 [OPTION] CPU-MFR-OPSYS
  908. - $0 [OPTION] ALIAS
  909. +Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
  910. Canonicalize a configuration name.
  911. @@ -75,9 +67,7 @@
  912. version="\
  913. GNU config.sub ($timestamp)
  914. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
  915. -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
  916. -Software Foundation, Inc.
  917. +Copyright 1992-2016 Free Software Foundation, Inc.
  918. This is free software; see the source for copying conditions. There is NO
  919. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  920. @@ -125,13 +115,17 @@
  921. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
  922. case $maybe_os in
  923. nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
  924. - linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
  925. - knetbsd*-gnu* | netbsd*-gnu* | \
  926. + linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
  927. + knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
  928. kopensolaris*-gnu* | \
  929. storm-chaos* | os2-emx* | rtmk-nova*)
  930. os=-$maybe_os
  931. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  932. ;;
  933. + android-linux)
  934. + os=-linux-android
  935. + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
  936. + ;;
  937. *)
  938. basic_machine=`echo $1 | sed 's/-[^-]*$//'`
  939. if [ $basic_machine != $1 ]
  940. @@ -154,7 +148,7 @@
  941. -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
  942. -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
  943. -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
  944. - -apple | -axis | -knuth | -cray | -microblaze)
  945. + -apple | -axis | -knuth | -cray | -microblaze*)
  946. os=
  947. basic_machine=$1
  948. ;;
  949. @@ -223,6 +217,12 @@
  950. -isc*)
  951. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  952. ;;
  953. + -lynx*178)
  954. + os=-lynxos178
  955. + ;;
  956. + -lynx*5)
  957. + os=-lynxos5
  958. + ;;
  959. -lynx*)
  960. os=-lynxos
  961. ;;
  962. @@ -247,24 +247,29 @@
  963. # Some are omitted here because they have special meanings below.
  964. 1750a | 580 \
  965. | a29k \
  966. + | aarch64 | aarch64_be \
  967. | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  968. | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  969. | am33_2.0 \
  970. - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
  971. - | be32 | be64 \
  972. + | arc | arceb \
  973. + | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
  974. + | avr | avr32 \
  975. + | ba \
  976. + | be32 | be64 \
  977. | bfin \
  978. - | c4x | clipper \
  979. + | c4x | c8051 | clipper \
  980. | d10v | d30v | dlx | dsp16xx \
  981. - | epiphany \
  982. - | fido | fr30 | frv \
  983. + | e2k | epiphany \
  984. + | fido | fr30 | frv | ft32 \
  985. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  986. | hexagon \
  987. | i370 | i860 | i960 | ia64 \
  988. | ip2k | iq2000 \
  989. + | k1om \
  990. | le32 | le64 \
  991. | lm32 \
  992. | m32c | m32r | m32rle | m68000 | m68k | m88k \
  993. - | maxq | mb | microblaze | mcore | mep | metag \
  994. + | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
  995. | mips | mipsbe | mipseb | mipsel | mipsle \
  996. | mips16 \
  997. | mips64 | mips64el \
  998. @@ -278,26 +283,29 @@
  999. | mips64vr5900 | mips64vr5900el \
  1000. | mipsisa32 | mipsisa32el \
  1001. | mipsisa32r2 | mipsisa32r2el \
  1002. + | mipsisa32r6 | mipsisa32r6el \
  1003. | mipsisa64 | mipsisa64el \
  1004. | mipsisa64r2 | mipsisa64r2el \
  1005. + | mipsisa64r6 | mipsisa64r6el \
  1006. | mipsisa64sb1 | mipsisa64sb1el \
  1007. | mipsisa64sr71k | mipsisa64sr71kel \
  1008. + | mipsr5900 | mipsr5900el \
  1009. | mipstx39 | mipstx39el \
  1010. | mn10200 | mn10300 \
  1011. | moxie \
  1012. | mt \
  1013. | msp430 \
  1014. | nds32 | nds32le | nds32be \
  1015. - | nios | nios2 \
  1016. + | nios | nios2 | nios2eb | nios2el \
  1017. | ns16k | ns32k \
  1018. - | open8 \
  1019. - | or32 \
  1020. + | open8 | or1k | or1knd | or32 \
  1021. | pdp10 | pdp11 | pj | pjl \
  1022. | powerpc | powerpc64 | powerpc64le | powerpcle \
  1023. | pyramid \
  1024. + | riscv32 | riscv64 \
  1025. | rl78 | rx \
  1026. | score \
  1027. - | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  1028. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  1029. | sh64 | sh64le \
  1030. | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  1031. | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  1032. @@ -305,6 +313,7 @@
  1033. | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
  1034. | ubicom32 \
  1035. | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
  1036. + | visium \
  1037. | we32k \
  1038. | x86 | xc16x | xstormy16 | xtensa \
  1039. | z8k | z80)
  1040. @@ -319,8 +328,10 @@
  1041. c6x)
  1042. basic_machine=tic6x-unknown
  1043. ;;
  1044. - m6811 | m68hc11 | m6812 | m68hc12 | picochip)
  1045. - # Motorola 68HC11/12.
  1046. + leon|leon[3-9])
  1047. + basic_machine=sparc-$basic_machine
  1048. + ;;
  1049. + m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
  1050. basic_machine=$basic_machine-unknown
  1051. os=-none
  1052. ;;
  1053. @@ -333,7 +344,10 @@
  1054. strongarm | thumb | xscale)
  1055. basic_machine=arm-unknown
  1056. ;;
  1057. -
  1058. + xgate)
  1059. + basic_machine=$basic_machine-unknown
  1060. + os=-none
  1061. + ;;
  1062. xscaleeb)
  1063. basic_machine=armeb-unknown
  1064. ;;
  1065. @@ -356,28 +370,32 @@
  1066. # Recognize the basic CPU types with company name.
  1067. 580-* \
  1068. | a29k-* \
  1069. + | aarch64-* | aarch64_be-* \
  1070. | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
  1071. | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
  1072. - | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
  1073. + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
  1074. | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
  1075. | avr-* | avr32-* \
  1076. + | ba-* \
  1077. | be32-* | be64-* \
  1078. | bfin-* | bs2000-* \
  1079. | c[123]* | c30-* | [cjt]90-* | c4x-* \
  1080. - | clipper-* | craynv-* | cydra-* \
  1081. + | c8051-* | clipper-* | craynv-* | cydra-* \
  1082. | d10v-* | d30v-* | dlx-* \
  1083. - | elxsi-* \
  1084. + | e2k-* | elxsi-* \
  1085. | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
  1086. | h8300-* | h8500-* \
  1087. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  1088. | hexagon-* \
  1089. | i*86-* | i860-* | i960-* | ia64-* \
  1090. | ip2k-* | iq2000-* \
  1091. + | k1om-* \
  1092. | le32-* | le64-* \
  1093. | lm32-* \
  1094. | m32c-* | m32r-* | m32rle-* \
  1095. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  1096. - | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
  1097. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  1098. + | microblaze-* | microblazeel-* \
  1099. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  1100. | mips16-* \
  1101. | mips64-* | mips64el-* \
  1102. @@ -391,28 +409,33 @@
  1103. | mips64vr5900-* | mips64vr5900el-* \
  1104. | mipsisa32-* | mipsisa32el-* \
  1105. | mipsisa32r2-* | mipsisa32r2el-* \
  1106. + | mipsisa32r6-* | mipsisa32r6el-* \
  1107. | mipsisa64-* | mipsisa64el-* \
  1108. | mipsisa64r2-* | mipsisa64r2el-* \
  1109. + | mipsisa64r6-* | mipsisa64r6el-* \
  1110. | mipsisa64sb1-* | mipsisa64sb1el-* \
  1111. | mipsisa64sr71k-* | mipsisa64sr71kel-* \
  1112. + | mipsr5900-* | mipsr5900el-* \
  1113. | mipstx39-* | mipstx39el-* \
  1114. | mmix-* \
  1115. | mt-* \
  1116. | msp430-* \
  1117. | nds32-* | nds32le-* | nds32be-* \
  1118. - | nios-* | nios2-* \
  1119. + | nios-* | nios2-* | nios2eb-* | nios2el-* \
  1120. | none-* | np1-* | ns16k-* | ns32k-* \
  1121. | open8-* \
  1122. + | or1k*-* \
  1123. | orion-* \
  1124. | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  1125. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
  1126. | pyramid-* \
  1127. + | riscv32-* | riscv64-* \
  1128. | rl78-* | romp-* | rs6000-* | rx-* \
  1129. | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  1130. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  1131. | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  1132. | sparclite-* \
  1133. - | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
  1134. + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
  1135. | tahoe-* \
  1136. | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  1137. | tile*-* \
  1138. @@ -420,6 +443,7 @@
  1139. | ubicom32-* \
  1140. | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
  1141. | vax-* \
  1142. + | visium-* \
  1143. | we32k-* \
  1144. | x86-* | x86_64-* | xc16x-* | xps100-* \
  1145. | xstormy16-* | xtensa*-* \
  1146. @@ -496,6 +520,9 @@
  1147. basic_machine=i386-pc
  1148. os=-aros
  1149. ;;
  1150. + asmjs)
  1151. + basic_machine=asmjs-unknown
  1152. + ;;
  1153. aux)
  1154. basic_machine=m68k-apple
  1155. os=-aux
  1156. @@ -719,7 +746,6 @@
  1157. i370-ibm* | ibm*)
  1158. basic_machine=i370-ibm
  1159. ;;
  1160. -# I'm not sure what "Sysv32" means. Should this be sysv3.2?
  1161. i*86v32)
  1162. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  1163. os=-sysv32
  1164. @@ -758,6 +784,9 @@
  1165. basic_machine=m68k-isi
  1166. os=-sysv
  1167. ;;
  1168. + leon-*|leon[3-9]-*)
  1169. + basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
  1170. + ;;
  1171. m68knommu)
  1172. basic_machine=m68k-unknown
  1173. os=-linux
  1174. @@ -777,11 +806,15 @@
  1175. basic_machine=ns32k-utek
  1176. os=-sysv
  1177. ;;
  1178. - microblaze)
  1179. + microblaze*)
  1180. basic_machine=microblaze-xilinx
  1181. ;;
  1182. + mingw64)
  1183. + basic_machine=x86_64-pc
  1184. + os=-mingw64
  1185. + ;;
  1186. mingw32)
  1187. - basic_machine=i386-pc
  1188. + basic_machine=i686-pc
  1189. os=-mingw32
  1190. ;;
  1191. mingw32ce)
  1192. @@ -809,6 +842,10 @@
  1193. basic_machine=powerpc-unknown
  1194. os=-morphos
  1195. ;;
  1196. + moxiebox)
  1197. + basic_machine=moxie-unknown
  1198. + os=-moxiebox
  1199. + ;;
  1200. msdos)
  1201. basic_machine=i386-pc
  1202. os=-msdos
  1203. @@ -817,7 +854,7 @@
  1204. basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
  1205. ;;
  1206. msys)
  1207. - basic_machine=i386-pc
  1208. + basic_machine=i686-pc
  1209. os=-msys
  1210. ;;
  1211. mvs)
  1212. @@ -1008,7 +1045,11 @@
  1213. basic_machine=i586-unknown
  1214. os=-pw32
  1215. ;;
  1216. - rdos)
  1217. + rdos | rdos64)
  1218. + basic_machine=x86_64-pc
  1219. + os=-rdos
  1220. + ;;
  1221. + rdos32)
  1222. basic_machine=i386-pc
  1223. os=-rdos
  1224. ;;
  1225. @@ -1335,29 +1376,30 @@
  1226. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  1227. | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  1228. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
  1229. - | -sym* | -kopensolaris* \
  1230. + | -sym* | -kopensolaris* | -plan9* \
  1231. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  1232. - | -aos* | -aros* \
  1233. + | -aos* | -aros* | -cloudabi* | -sortix* \
  1234. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  1235. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  1236. | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  1237. - | -openbsd* | -solidbsd* \
  1238. + | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
  1239. | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
  1240. | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  1241. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  1242. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  1243. | -chorusos* | -chorusrdb* | -cegcc* \
  1244. | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  1245. - | -mingw32* | -linux-gnu* | -linux-android* \
  1246. - | -linux-newlib* | -linux-uclibc* \
  1247. - | -uxpv* | -beos* | -mpeix* | -udk* \
  1248. + | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
  1249. + | -linux-newlib* | -linux-musl* | -linux-uclibc* \
  1250. + | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
  1251. | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  1252. | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  1253. | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  1254. | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  1255. | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  1256. | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  1257. - | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
  1258. + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
  1259. + | -onefs* | -tirtos*)
  1260. # Remember, each alternative MUST END IN *, to match a version number.
  1261. ;;
  1262. -qnx*)
  1263. @@ -1481,9 +1523,6 @@
  1264. -aros*)
  1265. os=-aros
  1266. ;;
  1267. - -kaos*)
  1268. - os=-kaos
  1269. - ;;
  1270. -zvmoe)
  1271. os=-zvmoe
  1272. ;;
  1273. @@ -1492,6 +1531,8 @@
  1274. ;;
  1275. -nacl*)
  1276. ;;
  1277. + -ios)
  1278. + ;;
  1279. -none)
  1280. ;;
  1281. *)
  1282. @@ -1532,6 +1573,12 @@
  1283. c4x-* | tic4x-*)
  1284. os=-coff
  1285. ;;
  1286. + c8051-*)
  1287. + os=-elf
  1288. + ;;
  1289. + hexagon-*)
  1290. + os=-elf
  1291. + ;;
  1292. tic54x-*)
  1293. os=-coff
  1294. ;;
  1295. @@ -1559,9 +1606,6 @@
  1296. ;;
  1297. m68000-sun)
  1298. os=-sunos3
  1299. - # This also exists in the configure program, but was not the
  1300. - # default.
  1301. - # os=-sunos4
  1302. ;;
  1303. m68*-cisco)
  1304. os=-aout