cygwin: w3m

authored by Marko Durkovic and committed by Rok Garbas d917f8c7 feef088b

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