clusterlb 0.1.6 → 0.1.7

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