patch-lib_libmicrohttpd_config_guess 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914
  1. --- xbmc-imx6-13.2.orig/lib/libmicrohttpd/config.guess 2014-09-02 13:26:18.000000000 +0200
  2. +++ xbmc-imx6-13.2/lib/libmicrohttpd/config.guess 2014-08-18 15:18:32.461397057 +0200
  3. @@ -1,14 +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, 2004, 2005, 2006, 2007, 2008, 2009
  8. -# Free Software Foundation, Inc.
  9. +# Copyright 1992-2014 Free Software Foundation, Inc.
  10. -timestamp='2009-11-20'
  11. +timestamp='2014-01-25'
  12. # This file is free software; you can redistribute it and/or modify it
  13. # under the terms of the GNU General Public License as published by
  14. -# the Free Software Foundation; either version 2 of the License, or
  15. +# the Free Software Foundation; either version 3 of the License, or
  16. # (at your option) any later version.
  17. #
  18. # This program is distributed in the hope that it will be useful, but
  19. @@ -17,26 +15,22 @@ timestamp='2009-11-20'
  20. # General Public License for more details.
  21. #
  22. # You should have received a copy of the GNU General Public License
  23. -# along with this program; if not, write to the Free Software
  24. -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  25. -# 02110-1301, USA.
  26. +# along with this program; if not, see <http://www.gnu.org/licenses/>.
  27. #
  28. # As a special exception to the GNU General Public License, if you
  29. # distribute this file as part of a program that contains a
  30. # configuration script generated by Autoconf, you may include it under
  31. -# the same distribution terms that you use for the rest of that program.
  32. -
  33. -
  34. -# Originally written by Per Bothner. Please send patches (context
  35. -# diff format) to <config-patches@gnu.org> and include a ChangeLog
  36. -# entry.
  37. +# the same distribution terms that you use for the rest of that
  38. +# program. This Exception is an additional permission under section 7
  39. +# of the GNU General Public License, version 3 ("GPLv3").
  40. #
  41. -# This script attempts to guess a canonical system name similar to
  42. -# config.sub. If it succeeds, it prints the system name on stdout, and
  43. -# exits with 0. Otherwise, it exits with 1.
  44. +# Originally written by Per Bothner.
  45. #
  46. # You can get the latest version of this script from:
  47. # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  48. +#
  49. +# Please send patches with a ChangeLog entry to config-patches@gnu.org.
  50. +
  51. me=`echo "$0" | sed -e 's,.*/,,'`
  52. @@ -56,8 +50,7 @@ version="\
  53. GNU config.guess ($timestamp)
  54. Originally written by Per Bothner.
  55. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  56. -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  57. +Copyright 1992-2014 Free Software Foundation, Inc.
  58. This is free software; see the source for copying conditions. There is NO
  59. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  60. @@ -139,12 +132,33 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` |
  61. UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  62. UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
  63. +case "${UNAME_SYSTEM}" in
  64. +Linux|GNU|GNU/*)
  65. + # If the system lacks a compiler, then just pick glibc.
  66. + # We could probably try harder.
  67. + LIBC=gnu
  68. +
  69. + eval $set_cc_for_build
  70. + cat <<-EOF > $dummy.c
  71. + #include <features.h>
  72. + #if defined(__UCLIBC__)
  73. + LIBC=uclibc
  74. + #elif defined(__dietlibc__)
  75. + LIBC=dietlibc
  76. + #else
  77. + LIBC=gnu
  78. + #endif
  79. + EOF
  80. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
  81. + ;;
  82. +esac
  83. +
  84. # Note: order is significant - the case branches are not exclusive.
  85. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  86. *:NetBSD:*:*)
  87. # NetBSD (nbsd) targets should (where applicable) match one or
  88. - # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
  89. + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
  90. # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
  91. # switched to ELF, *-*-netbsd* would select the old
  92. # object file format. This provides both forward
  93. @@ -180,7 +194,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  94. fi
  95. ;;
  96. *)
  97. - os=netbsd
  98. + os=netbsd
  99. ;;
  100. esac
  101. # The OS release
  102. @@ -201,6 +215,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  103. # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  104. echo "${machine}-${os}${release}"
  105. exit ;;
  106. + *:Bitrig:*:*)
  107. + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
  108. + echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
  109. + exit ;;
  110. *:OpenBSD:*:*)
  111. UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
  112. echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
  113. @@ -223,7 +241,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  114. UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
  115. ;;
  116. *5.*)
  117. - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
  118. + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
  119. ;;
  120. esac
  121. # According to Compaq, /usr/sbin/psrinfo has been available on
  122. @@ -269,7 +287,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  123. # A Xn.n version is an unreleased experimental baselevel.
  124. # 1.2 uses "1.2" for uname -r.
  125. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  126. - exit ;;
  127. + # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
  128. + exitcode=$?
  129. + trap '' 0
  130. + exit $exitcode ;;
  131. Alpha\ *:Windows_NT*:*)
  132. # How do we know it's Interix rather than the generic POSIX subsystem?
  133. # Should we change UNAME_MACHINE based on the output of uname instead
  134. @@ -295,12 +316,12 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  135. echo s390-ibm-zvmoe
  136. exit ;;
  137. *:OS400:*:*)
  138. - echo powerpc-ibm-os400
  139. + echo powerpc-ibm-os400
  140. exit ;;
  141. arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  142. echo arm-acorn-riscix${UNAME_RELEASE}
  143. exit ;;
  144. - arm:riscos:*:*|arm:RISCOS:*:*)
  145. + arm*:riscos:*:*|arm*:RISCOS:*:*)
  146. echo arm-unknown-riscos
  147. exit ;;
  148. SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
  149. @@ -394,23 +415,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
  150. # MiNT. But MiNT is downward compatible to TOS, so this should
  151. # be no problem.
  152. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
  153. - echo m68k-atari-mint${UNAME_RELEASE}
  154. + echo m68k-atari-mint${UNAME_RELEASE}
  155. exit ;;
  156. atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
  157. echo m68k-atari-mint${UNAME_RELEASE}
  158. - exit ;;
  159. + exit ;;
  160. *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
  161. - echo m68k-atari-mint${UNAME_RELEASE}
  162. + echo m68k-atari-mint${UNAME_RELEASE}
  163. exit ;;
  164. milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
  165. - echo m68k-milan-mint${UNAME_RELEASE}
  166. - exit ;;
  167. + echo m68k-milan-mint${UNAME_RELEASE}
  168. + exit ;;
  169. hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
  170. - echo m68k-hades-mint${UNAME_RELEASE}
  171. - exit ;;
  172. + echo m68k-hades-mint${UNAME_RELEASE}
  173. + exit ;;
  174. *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  175. - echo m68k-unknown-mint${UNAME_RELEASE}
  176. - exit ;;
  177. + echo m68k-unknown-mint${UNAME_RELEASE}
  178. + exit ;;
  179. m68k:machten:*:*)
  180. echo m68k-apple-machten${UNAME_RELEASE}
  181. exit ;;
  182. @@ -480,8 +501,8 @@ EOF
  183. echo m88k-motorola-sysv3
  184. exit ;;
  185. AViiON:dgux:*:*)
  186. - # DG/UX returns AViiON for all architectures
  187. - UNAME_PROCESSOR=`/usr/bin/uname -p`
  188. + # DG/UX returns AViiON for all architectures
  189. + UNAME_PROCESSOR=`/usr/bin/uname -p`
  190. if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
  191. then
  192. if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
  193. @@ -494,7 +515,7 @@ EOF
  194. else
  195. echo i586-dg-dgux${UNAME_RELEASE}
  196. fi
  197. - exit ;;
  198. + exit ;;
  199. M88*:DolphinOS:*:*) # DolphinOS (SVR3)
  200. echo m88k-dolphin-sysv3
  201. exit ;;
  202. @@ -551,7 +572,7 @@ EOF
  203. echo rs6000-ibm-aix3.2
  204. fi
  205. exit ;;
  206. - *:AIX:*:[456])
  207. + *:AIX:*:[4567])
  208. IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  209. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  210. IBM_ARCH=rs6000
  211. @@ -594,52 +615,52 @@ EOF
  212. 9000/[678][0-9][0-9])
  213. if [ -x /usr/bin/getconf ]; then
  214. sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
  215. - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
  216. - case "${sc_cpu_version}" in
  217. - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
  218. - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
  219. - 532) # CPU_PA_RISC2_0
  220. - case "${sc_kernel_bits}" in
  221. - 32) HP_ARCH="hppa2.0n" ;;
  222. - 64) HP_ARCH="hppa2.0w" ;;
  223. + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
  224. + case "${sc_cpu_version}" in
  225. + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
  226. + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
  227. + 532) # CPU_PA_RISC2_0
  228. + case "${sc_kernel_bits}" in
  229. + 32) HP_ARCH="hppa2.0n" ;;
  230. + 64) HP_ARCH="hppa2.0w" ;;
  231. '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
  232. - esac ;;
  233. - esac
  234. + esac ;;
  235. + esac
  236. fi
  237. if [ "${HP_ARCH}" = "" ]; then
  238. eval $set_cc_for_build
  239. - sed 's/^ //' << EOF >$dummy.c
  240. + sed 's/^ //' << EOF >$dummy.c
  241. - #define _HPUX_SOURCE
  242. - #include <stdlib.h>
  243. - #include <unistd.h>
  244. + #define _HPUX_SOURCE
  245. + #include <stdlib.h>
  246. + #include <unistd.h>
  247. - int main ()
  248. - {
  249. - #if defined(_SC_KERNEL_BITS)
  250. - long bits = sysconf(_SC_KERNEL_BITS);
  251. - #endif
  252. - long cpu = sysconf (_SC_CPU_VERSION);
  253. + int main ()
  254. + {
  255. + #if defined(_SC_KERNEL_BITS)
  256. + long bits = sysconf(_SC_KERNEL_BITS);
  257. + #endif
  258. + long cpu = sysconf (_SC_CPU_VERSION);
  259. - switch (cpu)
  260. - {
  261. - case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
  262. - case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
  263. - case CPU_PA_RISC2_0:
  264. - #if defined(_SC_KERNEL_BITS)
  265. - switch (bits)
  266. - {
  267. - case 64: puts ("hppa2.0w"); break;
  268. - case 32: puts ("hppa2.0n"); break;
  269. - default: puts ("hppa2.0"); break;
  270. - } break;
  271. - #else /* !defined(_SC_KERNEL_BITS) */
  272. - puts ("hppa2.0"); break;
  273. - #endif
  274. - default: puts ("hppa1.0"); break;
  275. - }
  276. - exit (0);
  277. - }
  278. + switch (cpu)
  279. + {
  280. + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
  281. + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
  282. + case CPU_PA_RISC2_0:
  283. + #if defined(_SC_KERNEL_BITS)
  284. + switch (bits)
  285. + {
  286. + case 64: puts ("hppa2.0w"); break;
  287. + case 32: puts ("hppa2.0n"); break;
  288. + default: puts ("hppa2.0"); break;
  289. + } break;
  290. + #else /* !defined(_SC_KERNEL_BITS) */
  291. + puts ("hppa2.0"); break;
  292. + #endif
  293. + default: puts ("hppa1.0"); break;
  294. + }
  295. + exit (0);
  296. + }
  297. EOF
  298. (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
  299. test -z "$HP_ARCH" && HP_ARCH=hppa
  300. @@ -730,22 +751,22 @@ EOF
  301. exit ;;
  302. C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  303. echo c1-convex-bsd
  304. - exit ;;
  305. + exit ;;
  306. C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
  307. if getsysinfo -f scalar_acc
  308. then echo c32-convex-bsd
  309. else echo c2-convex-bsd
  310. fi
  311. - exit ;;
  312. + exit ;;
  313. C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
  314. echo c34-convex-bsd
  315. - exit ;;
  316. + exit ;;
  317. C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
  318. echo c38-convex-bsd
  319. - exit ;;
  320. + exit ;;
  321. C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  322. echo c4-convex-bsd
  323. - exit ;;
  324. + exit ;;
  325. CRAY*Y-MP:*:*:*)
  326. echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  327. exit ;;
  328. @@ -769,14 +790,14 @@ EOF
  329. exit ;;
  330. F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  331. FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  332. - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  333. - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  334. - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  335. - exit ;;
  336. + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  337. + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  338. + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  339. + exit ;;
  340. 5000:UNIX_System_V:4.*:*)
  341. - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  342. - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  343. - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  344. + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  345. + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  346. + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  347. exit ;;
  348. i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  349. echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  350. @@ -788,30 +809,35 @@ EOF
  351. echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  352. exit ;;
  353. *:FreeBSD:*:*)
  354. - case ${UNAME_MACHINE} in
  355. - pc98)
  356. - echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  357. + UNAME_PROCESSOR=`/usr/bin/uname -p`
  358. + case ${UNAME_PROCESSOR} in
  359. amd64)
  360. echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  361. *)
  362. - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  363. + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  364. esac
  365. exit ;;
  366. i*:CYGWIN*:*)
  367. echo ${UNAME_MACHINE}-pc-cygwin
  368. exit ;;
  369. + *:MINGW64*:*)
  370. + echo ${UNAME_MACHINE}-pc-mingw64
  371. + exit ;;
  372. *:MINGW*:*)
  373. echo ${UNAME_MACHINE}-pc-mingw32
  374. exit ;;
  375. + i*:MSYS*:*)
  376. + echo ${UNAME_MACHINE}-pc-msys
  377. + exit ;;
  378. i*:windows32*:*)
  379. - # uname -m includes "-pc" on this system.
  380. - echo ${UNAME_MACHINE}-mingw32
  381. + # uname -m includes "-pc" on this system.
  382. + echo ${UNAME_MACHINE}-mingw32
  383. exit ;;
  384. i*:PW*:*)
  385. echo ${UNAME_MACHINE}-pc-pw32
  386. exit ;;
  387. *:Interix*:*)
  388. - case ${UNAME_MACHINE} in
  389. + case ${UNAME_MACHINE} in
  390. x86)
  391. echo i586-pc-interix${UNAME_RELEASE}
  392. exit ;;
  393. @@ -848,15 +874,22 @@ EOF
  394. exit ;;
  395. *:GNU:*:*)
  396. # the GNU system
  397. - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  398. + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  399. exit ;;
  400. *:GNU/*:*:*)
  401. # other systems with GNU libc and userland
  402. - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
  403. + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
  404. exit ;;
  405. i*86:Minix:*:*)
  406. echo ${UNAME_MACHINE}-pc-minix
  407. exit ;;
  408. + aarch64:Linux:*:*)
  409. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  410. + exit ;;
  411. + aarch64_be:Linux:*:*)
  412. + UNAME_MACHINE=aarch64_be
  413. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  414. + exit ;;
  415. alpha:Linux:*:*)
  416. case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  417. EV5) UNAME_MACHINE=alphaev5 ;;
  418. @@ -866,52 +899,56 @@ EOF
  419. EV6) UNAME_MACHINE=alphaev6 ;;
  420. EV67) UNAME_MACHINE=alphaev67 ;;
  421. EV68*) UNAME_MACHINE=alphaev68 ;;
  422. - esac
  423. + esac
  424. objdump --private-headers /bin/sh | grep -q ld.so.1
  425. - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  426. - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  427. + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
  428. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  429. + exit ;;
  430. + arc:Linux:*:* | arceb:Linux:*:*)
  431. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  432. exit ;;
  433. arm*:Linux:*:*)
  434. eval $set_cc_for_build
  435. if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  436. | grep -q __ARM_EABI__
  437. then
  438. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  439. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  440. else
  441. - echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  442. + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
  443. + | grep -q __ARM_PCS_VFP
  444. + then
  445. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
  446. + else
  447. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
  448. + fi
  449. fi
  450. exit ;;
  451. avr32*:Linux:*:*)
  452. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  453. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  454. exit ;;
  455. cris:Linux:*:*)
  456. - echo cris-axis-linux-gnu
  457. + echo ${UNAME_MACHINE}-axis-linux-${LIBC}
  458. exit ;;
  459. crisv32:Linux:*:*)
  460. - echo crisv32-axis-linux-gnu
  461. + echo ${UNAME_MACHINE}-axis-linux-${LIBC}
  462. exit ;;
  463. frv:Linux:*:*)
  464. - echo frv-unknown-linux-gnu
  465. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  466. + exit ;;
  467. + hexagon:Linux:*:*)
  468. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  469. exit ;;
  470. i*86:Linux:*:*)
  471. - LIBC=gnu
  472. - eval $set_cc_for_build
  473. - sed 's/^ //' << EOF >$dummy.c
  474. - #ifdef __dietlibc__
  475. - LIBC=dietlibc
  476. - #endif
  477. -EOF
  478. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
  479. - echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  480. + echo ${UNAME_MACHINE}-pc-linux-${LIBC}
  481. exit ;;
  482. ia64:Linux:*:*)
  483. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  484. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  485. exit ;;
  486. m32r*:Linux:*:*)
  487. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  488. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  489. exit ;;
  490. m68*:Linux:*:*)
  491. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  492. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  493. exit ;;
  494. mips:Linux:*:* | mips64:Linux:*:*)
  495. eval $set_cc_for_build
  496. @@ -930,51 +967,63 @@ EOF
  497. #endif
  498. EOF
  499. eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
  500. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  501. + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
  502. ;;
  503. + or1k:Linux:*:*)
  504. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  505. + exit ;;
  506. or32:Linux:*:*)
  507. - echo or32-unknown-linux-gnu
  508. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  509. exit ;;
  510. padre:Linux:*:*)
  511. - echo sparc-unknown-linux-gnu
  512. + echo sparc-unknown-linux-${LIBC}
  513. exit ;;
  514. parisc64:Linux:*:* | hppa64:Linux:*:*)
  515. - echo hppa64-unknown-linux-gnu
  516. + echo hppa64-unknown-linux-${LIBC}
  517. exit ;;
  518. parisc:Linux:*:* | hppa:Linux:*:*)
  519. # Look for CPU level
  520. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  521. - PA7*) echo hppa1.1-unknown-linux-gnu ;;
  522. - PA8*) echo hppa2.0-unknown-linux-gnu ;;
  523. - *) echo hppa-unknown-linux-gnu ;;
  524. + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
  525. + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
  526. + *) echo hppa-unknown-linux-${LIBC} ;;
  527. esac
  528. exit ;;
  529. ppc64:Linux:*:*)
  530. - echo powerpc64-unknown-linux-gnu
  531. + echo powerpc64-unknown-linux-${LIBC}
  532. exit ;;
  533. ppc:Linux:*:*)
  534. - echo powerpc-unknown-linux-gnu
  535. + echo powerpc-unknown-linux-${LIBC}
  536. + exit ;;
  537. + ppc64le:Linux:*:*)
  538. + echo powerpc64le-unknown-linux-${LIBC}
  539. + exit ;;
  540. + ppcle:Linux:*:*)
  541. + echo powerpcle-unknown-linux-${LIBC}
  542. exit ;;
  543. s390:Linux:*:* | s390x:Linux:*:*)
  544. - echo ${UNAME_MACHINE}-ibm-linux
  545. + echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
  546. exit ;;
  547. sh64*:Linux:*:*)
  548. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  549. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  550. exit ;;
  551. sh*:Linux:*:*)
  552. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  553. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  554. exit ;;
  555. sparc:Linux:*:* | sparc64:Linux:*:*)
  556. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  557. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  558. + exit ;;
  559. + tile*:Linux:*:*)
  560. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  561. exit ;;
  562. vax:Linux:*:*)
  563. - echo ${UNAME_MACHINE}-dec-linux-gnu
  564. + echo ${UNAME_MACHINE}-dec-linux-${LIBC}
  565. exit ;;
  566. x86_64:Linux:*:*)
  567. - echo x86_64-unknown-linux-gnu
  568. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  569. exit ;;
  570. xtensa*:Linux:*:*)
  571. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  572. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  573. exit ;;
  574. i*86:DYNIX/ptx:4*:*)
  575. # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  576. @@ -983,11 +1032,11 @@ EOF
  577. echo i386-sequent-sysv4
  578. exit ;;
  579. i*86:UNIX_SV:4.2MP:2.*)
  580. - # Unixware is an offshoot of SVR4, but it has its own version
  581. - # number series starting with 2...
  582. - # I am not positive that other SVR4 systems won't match this,
  583. + # Unixware is an offshoot of SVR4, but it has its own version
  584. + # number series starting with 2...
  585. + # I am not positive that other SVR4 systems won't match this,
  586. # I just have to hope. -- rms.
  587. - # Use sysv4.2uw... so that sysv4* matches it.
  588. + # Use sysv4.2uw... so that sysv4* matches it.
  589. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  590. exit ;;
  591. i*86:OS/2:*:*)
  592. @@ -1019,7 +1068,7 @@ EOF
  593. fi
  594. exit ;;
  595. i*86:*:5:[678]*)
  596. - # UnixWare 7.x, OpenUNIX and OpenServer 6.
  597. + # UnixWare 7.x, OpenUNIX and OpenServer 6.
  598. case `/bin/uname -X | grep "^Machine"` in
  599. *486*) UNAME_MACHINE=i486 ;;
  600. *Pentium) UNAME_MACHINE=i586 ;;
  601. @@ -1047,13 +1096,13 @@ EOF
  602. exit ;;
  603. pc:*:*:*)
  604. # Left here for compatibility:
  605. - # uname -m prints for DJGPP always 'pc', but it prints nothing about
  606. - # the processor, so we play safe by assuming i586.
  607. + # uname -m prints for DJGPP always 'pc', but it prints nothing about
  608. + # the processor, so we play safe by assuming i586.
  609. # Note: whatever this is, it MUST be the same as what config.sub
  610. # prints for the "djgpp" host, or else GDB configury will decide that
  611. # this is a cross-build.
  612. echo i586-pc-msdosdjgpp
  613. - exit ;;
  614. + exit ;;
  615. Intel:Mach:3*:*)
  616. echo i386-pc-mach3
  617. exit ;;
  618. @@ -1088,8 +1137,8 @@ EOF
  619. /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  620. && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  621. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  622. - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  623. - && { echo i486-ncr-sysv4; exit; } ;;
  624. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  625. + && { echo i486-ncr-sysv4; exit; } ;;
  626. NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  627. OS_REL='.3'
  628. test -r /etc/.relid \
  629. @@ -1132,10 +1181,10 @@ EOF
  630. echo ns32k-sni-sysv
  631. fi
  632. exit ;;
  633. - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  634. - # says <Richard.M.Bartel@ccMail.Census.GOV>
  635. - echo i586-unisys-sysv4
  636. - exit ;;
  637. + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  638. + # says <Richard.M.Bartel@ccMail.Census.GOV>
  639. + echo i586-unisys-sysv4
  640. + exit ;;
  641. *:UNIX_System_V:4*:FTX*)
  642. # From Gerald Hewes <hewes@openmarket.com>.
  643. # How about differentiating between stratus architectures? -djm
  644. @@ -1161,11 +1210,11 @@ EOF
  645. exit ;;
  646. R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  647. if [ -d /usr/nec ]; then
  648. - echo mips-nec-sysv${UNAME_RELEASE}
  649. + echo mips-nec-sysv${UNAME_RELEASE}
  650. else
  651. - echo mips-unknown-sysv${UNAME_RELEASE}
  652. + echo mips-unknown-sysv${UNAME_RELEASE}
  653. fi
  654. - exit ;;
  655. + exit ;;
  656. BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
  657. echo powerpc-be-beos
  658. exit ;;
  659. @@ -1178,6 +1227,9 @@ EOF
  660. BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  661. echo i586-pc-haiku
  662. exit ;;
  663. + x86_64:Haiku:*:*)
  664. + echo x86_64-unknown-haiku
  665. + exit ;;
  666. SX-4:SUPER-UX:*:*)
  667. echo sx4-nec-superux${UNAME_RELEASE}
  668. exit ;;
  669. @@ -1204,19 +1256,31 @@ EOF
  670. exit ;;
  671. *:Darwin:*:*)
  672. UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  673. - case $UNAME_PROCESSOR in
  674. - i386)
  675. - eval $set_cc_for_build
  676. - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  677. - if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
  678. - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  679. - grep IS_64BIT_ARCH >/dev/null
  680. - then
  681. - UNAME_PROCESSOR="x86_64"
  682. - fi
  683. - fi ;;
  684. - unknown) UNAME_PROCESSOR=powerpc ;;
  685. - esac
  686. + eval $set_cc_for_build
  687. + if test "$UNAME_PROCESSOR" = unknown ; then
  688. + UNAME_PROCESSOR=powerpc
  689. + fi
  690. + if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
  691. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  692. + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
  693. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  694. + grep IS_64BIT_ARCH >/dev/null
  695. + then
  696. + case $UNAME_PROCESSOR in
  697. + i386) UNAME_PROCESSOR=x86_64 ;;
  698. + powerpc) UNAME_PROCESSOR=powerpc64 ;;
  699. + esac
  700. + fi
  701. + fi
  702. + elif test "$UNAME_PROCESSOR" = i386 ; then
  703. + # Avoid executing cc on OS X 10.9, as it ships with a stub
  704. + # that puts up a graphical alert prompting to install
  705. + # developer tools. Any system running Mac OS X 10.7 or
  706. + # later (Darwin 11 and later) is required to have a 64-bit
  707. + # processor. This is not true of the ARM version of Darwin
  708. + # that Apple uses in portable devices.
  709. + UNAME_PROCESSOR=x86_64
  710. + fi
  711. echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  712. exit ;;
  713. *:procnto*:*:* | *:QNX:[0123456789]*:*)
  714. @@ -1230,7 +1294,10 @@ EOF
  715. *:QNX:*:4*)
  716. echo i386-pc-qnx
  717. exit ;;
  718. - NSE-?:NONSTOP_KERNEL:*:*)
  719. + NEO-?:NONSTOP_KERNEL:*:*)
  720. + echo neo-tandem-nsk${UNAME_RELEASE}
  721. + exit ;;
  722. + NSE-*:NONSTOP_KERNEL:*:*)
  723. echo nse-tandem-nsk${UNAME_RELEASE}
  724. exit ;;
  725. NSR-?:NONSTOP_KERNEL:*:*)
  726. @@ -1275,13 +1342,13 @@ EOF
  727. echo pdp10-unknown-its
  728. exit ;;
  729. SEI:*:*:SEIUX)
  730. - echo mips-sei-seiux${UNAME_RELEASE}
  731. + echo mips-sei-seiux${UNAME_RELEASE}
  732. exit ;;
  733. *:DragonFly:*:*)
  734. echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  735. exit ;;
  736. *:*VMS:*:*)
  737. - UNAME_MACHINE=`(uname -p) 2>/dev/null`
  738. + UNAME_MACHINE=`(uname -p) 2>/dev/null`
  739. case "${UNAME_MACHINE}" in
  740. A*) echo alpha-dec-vms ; exit ;;
  741. I*) echo ia64-dec-vms ; exit ;;
  742. @@ -1299,158 +1366,10 @@ EOF
  743. i*86:AROS:*:*)
  744. echo ${UNAME_MACHINE}-pc-aros
  745. exit ;;
  746. -esac
  747. -
  748. -#echo '(No uname command or uname output not recognized.)' 1>&2
  749. -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  750. -
  751. -eval $set_cc_for_build
  752. -cat >$dummy.c <<EOF
  753. -#ifdef _SEQUENT_
  754. -# include <sys/types.h>
  755. -# include <sys/utsname.h>
  756. -#endif
  757. -main ()
  758. -{
  759. -#if defined (sony)
  760. -#if defined (MIPSEB)
  761. - /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
  762. - I don't know.... */
  763. - printf ("mips-sony-bsd\n"); exit (0);
  764. -#else
  765. -#include <sys/param.h>
  766. - printf ("m68k-sony-newsos%s\n",
  767. -#ifdef NEWSOS4
  768. - "4"
  769. -#else
  770. - ""
  771. -#endif
  772. - ); exit (0);
  773. -#endif
  774. -#endif
  775. -
  776. -#if defined (__arm) && defined (__acorn) && defined (__unix)
  777. - printf ("arm-acorn-riscix\n"); exit (0);
  778. -#endif
  779. -
  780. -#if defined (hp300) && !defined (hpux)
  781. - printf ("m68k-hp-bsd\n"); exit (0);
  782. -#endif
  783. -
  784. -#if defined (NeXT)
  785. -#if !defined (__ARCHITECTURE__)
  786. -#define __ARCHITECTURE__ "m68k"
  787. -#endif
  788. - int version;
  789. - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  790. - if (version < 4)
  791. - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  792. - else
  793. - printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  794. - exit (0);
  795. -#endif
  796. -
  797. -#if defined (MULTIMAX) || defined (n16)
  798. -#if defined (UMAXV)
  799. - printf ("ns32k-encore-sysv\n"); exit (0);
  800. -#else
  801. -#if defined (CMU)
  802. - printf ("ns32k-encore-mach\n"); exit (0);
  803. -#else
  804. - printf ("ns32k-encore-bsd\n"); exit (0);
  805. -#endif
  806. -#endif
  807. -#endif
  808. -
  809. -#if defined (__386BSD__)
  810. - printf ("i386-pc-bsd\n"); exit (0);
  811. -#endif
  812. -
  813. -#if defined (sequent)
  814. -#if defined (i386)
  815. - printf ("i386-sequent-dynix\n"); exit (0);
  816. -#endif
  817. -#if defined (ns32000)
  818. - printf ("ns32k-sequent-dynix\n"); exit (0);
  819. -#endif
  820. -#endif
  821. -
  822. -#if defined (_SEQUENT_)
  823. - struct utsname un;
  824. -
  825. - uname(&un);
  826. -
  827. - if (strncmp(un.version, "V2", 2) == 0) {
  828. - printf ("i386-sequent-ptx2\n"); exit (0);
  829. - }
  830. - if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
  831. - printf ("i386-sequent-ptx1\n"); exit (0);
  832. - }
  833. - printf ("i386-sequent-ptx\n"); exit (0);
  834. -
  835. -#endif
  836. -
  837. -#if defined (vax)
  838. -# if !defined (ultrix)
  839. -# include <sys/param.h>
  840. -# if defined (BSD)
  841. -# if BSD == 43
  842. - printf ("vax-dec-bsd4.3\n"); exit (0);
  843. -# else
  844. -# if BSD == 199006
  845. - printf ("vax-dec-bsd4.3reno\n"); exit (0);
  846. -# else
  847. - printf ("vax-dec-bsd\n"); exit (0);
  848. -# endif
  849. -# endif
  850. -# else
  851. - printf ("vax-dec-bsd\n"); exit (0);
  852. -# endif
  853. -# else
  854. - printf ("vax-dec-ultrix\n"); exit (0);
  855. -# endif
  856. -#endif
  857. -
  858. -#if defined (alliant) && defined (i860)
  859. - printf ("i860-alliant-bsd\n"); exit (0);
  860. -#endif
  861. -
  862. - exit (1);
  863. -}
  864. -EOF
  865. -
  866. -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
  867. - { echo "$SYSTEM_NAME"; exit; }
  868. -
  869. -# Apollos put the system type in the environment.
  870. -
  871. -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
  872. -
  873. -# Convex versions that predate uname can use getsysinfo(1)
  874. -
  875. -if [ -x /usr/convex/getsysinfo ]
  876. -then
  877. - case `getsysinfo -f cpu_type` in
  878. - c1*)
  879. - echo c1-convex-bsd
  880. - exit ;;
  881. - c2*)
  882. - if getsysinfo -f scalar_acc
  883. - then echo c32-convex-bsd
  884. - else echo c2-convex-bsd
  885. - fi
  886. - exit ;;
  887. - c34*)
  888. - echo c34-convex-bsd
  889. - exit ;;
  890. - c38*)
  891. - echo c38-convex-bsd
  892. - exit ;;
  893. - c4*)
  894. - echo c4-convex-bsd
  895. + x86_64:VMkernel:*:*)
  896. + echo ${UNAME_MACHINE}-unknown-esx
  897. exit ;;
  898. - esac
  899. -fi
  900. +esac
  901. cat >&2 <<EOF
  902. $0: unable to guess system type