chantra / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone
2a5b6a
--- rpm-4.11.3/config.guess.orig	2012-11-07 13:55:52.000000000 +0100
2a5b6a
+++ rpm-4.11.3/config.guess	2013-12-27 18:11:24.000000000 +0100
2a5b6a
@@ -1,14 +1,12 @@
2a5b6a
 #! /bin/sh
2a5b6a
 # Attempt to guess a canonical system name.
2a5b6a
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
2a5b6a
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
2a5b6a
-#   2011, 2012 Free Software Foundation, Inc.
2a5b6a
+#   Copyright 1992-2013 Free Software Foundation, Inc.
2a5b6a
 
2a5b6a
-timestamp='2012-02-10'
2a5b6a
+timestamp='2013-06-10'
2a5b6a
 
2a5b6a
 # This file is free software; you can redistribute it and/or modify it
2a5b6a
 # under the terms of the GNU General Public License as published by
2a5b6a
-# the Free Software Foundation; either version 2 of the License, or
2a5b6a
+# the Free Software Foundation; either version 3 of the License, or
2a5b6a
 # (at your option) any later version.
2a5b6a
 #
2a5b6a
 # This program is distributed in the hope that it will be useful, but
2a5b6a
@@ -22,19 +20,17 @@
2a5b6a
 # As a special exception to the GNU General Public License, if you
2a5b6a
 # distribute this file as part of a program that contains a
2a5b6a
 # configuration script generated by Autoconf, you may include it under
2a5b6a
-# the same distribution terms that you use for the rest of that program.
2a5b6a
-
2a5b6a
-
2a5b6a
-# Originally written by Per Bothner.  Please send patches (context
2a5b6a
-# diff format) to <config-patches@gnu.org> and include a ChangeLog
2a5b6a
-# entry.
2a5b6a
+# the same distribution terms that you use for the rest of that
2a5b6a
+# program.  This Exception is an additional permission under section 7
2a5b6a
+# of the GNU General Public License, version 3 ("GPLv3").
2a5b6a
 #
2a5b6a
-# This script attempts to guess a canonical system name similar to
2a5b6a
-# config.sub.  If it succeeds, it prints the system name on stdout, and
2a5b6a
-# exits with 0.  Otherwise, it exits with 1.
2a5b6a
+# Originally written by Per Bothner.
2a5b6a
 #
2a5b6a
 # You can get the latest version of this script from:
2a5b6a
 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
2a5b6a
+#
2a5b6a
+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
2a5b6a
+
2a5b6a
 
2a5b6a
 me=`echo "$0" | sed -e 's,.*/,,'`
2a5b6a
 
2a5b6a
@@ -54,9 +50,7 @@
2a5b6a
 GNU config.guess ($timestamp)
2a5b6a
 
2a5b6a
 Originally written by Per Bothner.
2a5b6a
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
2a5b6a
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
2a5b6a
-Free Software Foundation, Inc.
2a5b6a
+Copyright 1992-2013 Free Software Foundation, Inc.
2a5b6a
 
2a5b6a
 This is free software; see the source for copying conditions.  There is NO
2a5b6a
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
2a5b6a
@@ -138,6 +132,27 @@
2a5b6a
 UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
2a5b6a
 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
2a5b6a
 
2a5b6a
+case "${UNAME_SYSTEM}" in
2a5b6a
+Linux|GNU|GNU/*)
2a5b6a
+	# If the system lacks a compiler, then just pick glibc.
2a5b6a
+	# We could probably try harder.
2a5b6a
+	LIBC=gnu
2a5b6a
+
2a5b6a
+	eval $set_cc_for_build
2a5b6a
+	cat <<-EOF > $dummy.c
2a5b6a
+	#include <features.h>
2a5b6a
+	#if defined(__UCLIBC__)
2a5b6a
+	LIBC=uclibc
2a5b6a
+	#elif defined(__dietlibc__)
2a5b6a
+	LIBC=dietlibc
2a5b6a
+	#else
2a5b6a
+	LIBC=gnu
2a5b6a
+	#endif
2a5b6a
+	EOF
2a5b6a
+	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
2a5b6a
+	;;
2a5b6a
+esac
2a5b6a
+
2a5b6a
 # Note: order is significant - the case branches are not exclusive.
2a5b6a
 
2a5b6a
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
2a5b6a
@@ -200,6 +215,10 @@
2a5b6a
 	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
2a5b6a
 	echo "${machine}-${os}${release}"
2a5b6a
 	exit ;;
2a5b6a
+    *:Bitrig:*:*)
2a5b6a
+	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
2a5b6a
+	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
2a5b6a
+	exit ;;
2a5b6a
     *:OpenBSD:*:*)
2a5b6a
 	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
2a5b6a
 	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
2a5b6a
@@ -302,7 +321,7 @@
2a5b6a
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
2a5b6a
 	echo arm-acorn-riscix${UNAME_RELEASE}
2a5b6a
 	exit ;;
2a5b6a
-    arm:riscos:*:*|arm:RISCOS:*:*)
2a5b6a
+    arm*:riscos:*:*|arm*:RISCOS:*:*)
2a5b6a
 	echo arm-unknown-riscos
2a5b6a
 	exit ;;
2a5b6a
     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
2a5b6a
@@ -801,6 +820,9 @@
2a5b6a
     i*:CYGWIN*:*)
2a5b6a
 	echo ${UNAME_MACHINE}-pc-cygwin
2a5b6a
 	exit ;;
2a5b6a
+    *:MINGW64*:*)
2a5b6a
+	echo ${UNAME_MACHINE}-pc-mingw64
2a5b6a
+	exit ;;
2a5b6a
     *:MINGW*:*)
2a5b6a
 	echo ${UNAME_MACHINE}-pc-mingw32
2a5b6a
 	exit ;;
2a5b6a
@@ -852,21 +874,21 @@
2a5b6a
 	exit ;;
2a5b6a
     *:GNU:*:*)
2a5b6a
 	# the GNU system
2a5b6a
-	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
2a5b6a
+	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
2a5b6a
 	exit ;;
2a5b6a
     *:GNU/*:*:*)
2a5b6a
 	# other systems with GNU libc and userland
2a5b6a
-	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
2a5b6a
+	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     i*86:Minix:*:*)
2a5b6a
 	echo ${UNAME_MACHINE}-pc-minix
2a5b6a
 	exit ;;
2a5b6a
     aarch64:Linux:*:*)
2a5b6a
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
2a5b6a
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     aarch64_be:Linux:*:*)
2a5b6a
 	UNAME_MACHINE=aarch64_be
2a5b6a
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
2a5b6a
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     alpha:Linux:*:*)
2a5b6a
 	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
2a5b6a
@@ -879,59 +901,54 @@
2a5b6a
 	  EV68*) UNAME_MACHINE=alphaev68 ;;
2a5b6a
 	esac
2a5b6a
 	objdump --private-headers /bin/sh | grep -q ld.so.1
2a5b6a
-	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
2a5b6a
-	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
2a5b6a
+	if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
2a5b6a
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2a5b6a
+	exit ;;
2a5b6a
+    arc:Linux:*:* | arceb:Linux:*:*)
2a5b6a
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     arm*:Linux:*:*)
2a5b6a
 	eval $set_cc_for_build
2a5b6a
 	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
2a5b6a
 	    | grep -q __ARM_EABI__
2a5b6a
 	then
2a5b6a
-	    echo ${UNAME_MACHINE}-unknown-linux-gnu
2a5b6a
+	    echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2a5b6a
 	else
2a5b6a
 	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
2a5b6a
 		| grep -q __ARM_PCS_VFP
2a5b6a
 	    then
2a5b6a
-		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
2a5b6a
+		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
2a5b6a
 	    else
2a5b6a
-		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
2a5b6a
+		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
2a5b6a
 	    fi
2a5b6a
 	fi
2a5b6a
 	exit ;;
2a5b6a
     avr32*:Linux:*:*)
2a5b6a
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
2a5b6a
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     cris:Linux:*:*)
2a5b6a
-	echo ${UNAME_MACHINE}-axis-linux-gnu
2a5b6a
+	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     crisv32:Linux:*:*)
2a5b6a
-	echo ${UNAME_MACHINE}-axis-linux-gnu
2a5b6a
+	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     frv:Linux:*:*)
2a5b6a
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
2a5b6a
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     hexagon:Linux:*:*)
2a5b6a
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
2a5b6a
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     i*86:Linux:*:*)
2a5b6a
-	LIBC=gnu
2a5b6a
-	eval $set_cc_for_build
2a5b6a
-	sed 's/^	//' << EOF >$dummy.c
2a5b6a
-	#ifdef __dietlibc__
2a5b6a
-	LIBC=dietlibc
2a5b6a
-	#endif
2a5b6a
-EOF
2a5b6a
-	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
2a5b6a
-	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
2a5b6a
+	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     ia64:Linux:*:*)
2a5b6a
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
2a5b6a
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     m32r*:Linux:*:*)
2a5b6a
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
2a5b6a
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     m68*:Linux:*:*)
2a5b6a
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
2a5b6a
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     mips:Linux:*:* | mips64:Linux:*:*)
2a5b6a
 	eval $set_cc_for_build
2a5b6a
@@ -950,54 +967,63 @@
2a5b6a
 	#endif
2a5b6a
 EOF
2a5b6a
 	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
2a5b6a
-	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
2a5b6a
+	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
2a5b6a
 	;;
2a5b6a
+    or1k:Linux:*:*)
2a5b6a
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2a5b6a
+	exit ;;
2a5b6a
     or32:Linux:*:*)
2a5b6a
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
2a5b6a
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     padre:Linux:*:*)
2a5b6a
-	echo sparc-unknown-linux-gnu
2a5b6a
+	echo sparc-unknown-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     parisc64:Linux:*:* | hppa64:Linux:*:*)
2a5b6a
-	echo hppa64-unknown-linux-gnu
2a5b6a
+	echo hppa64-unknown-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     parisc:Linux:*:* | hppa:Linux:*:*)
2a5b6a
 	# Look for CPU level
2a5b6a
 	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
2a5b6a
-	  PA7*) echo hppa1.1-unknown-linux-gnu ;;
2a5b6a
-	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
2a5b6a
-	  *)    echo hppa-unknown-linux-gnu ;;
2a5b6a
+	  PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
2a5b6a
+	  PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
2a5b6a
+	  *)    echo hppa-unknown-linux-${LIBC} ;;
2a5b6a
 	esac
2a5b6a
 	exit ;;
2a5b6a
     ppc64:Linux:*:*)
2a5b6a
-	echo powerpc64-unknown-linux-gnu
2a5b6a
+	echo powerpc64-unknown-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     ppc:Linux:*:*)
2a5b6a
-	echo powerpc-unknown-linux-gnu
2a5b6a
+	echo powerpc-unknown-linux-${LIBC}
2a5b6a
+	exit ;;
2a5b6a
+    ppc64le:Linux:*:*)
2a5b6a
+	echo powerpc64le-unknown-linux-${LIBC}
2a5b6a
+	exit ;;
2a5b6a
+    ppcle:Linux:*:*)
2a5b6a
+	echo powerpcle-unknown-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     s390:Linux:*:* | s390x:Linux:*:*)
2a5b6a
-	echo ${UNAME_MACHINE}-ibm-linux
2a5b6a
+	echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     sh64*:Linux:*:*)
2a5b6a
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
2a5b6a
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     sh*:Linux:*:*)
2a5b6a
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
2a5b6a
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     sparc:Linux:*:* | sparc64:Linux:*:*)
2a5b6a
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
2a5b6a
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     tile*:Linux:*:*)
2a5b6a
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
2a5b6a
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     vax:Linux:*:*)
2a5b6a
-	echo ${UNAME_MACHINE}-dec-linux-gnu
2a5b6a
+	echo ${UNAME_MACHINE}-dec-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     x86_64:Linux:*:*)
2a5b6a
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
2a5b6a
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     xtensa*:Linux:*:*)
2a5b6a
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
2a5b6a
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
2a5b6a
 	exit ;;
2a5b6a
     i*86:DYNIX/ptx:4*:*)
2a5b6a
 	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
2a5b6a
@@ -1201,6 +1227,9 @@
2a5b6a
     BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
2a5b6a
 	echo i586-pc-haiku
2a5b6a
 	exit ;;
2a5b6a
+    x86_64:Haiku:*:*)
2a5b6a
+	echo x86_64-unknown-haiku
2a5b6a
+	exit ;;
2a5b6a
     SX-4:SUPER-UX:*:*)
2a5b6a
 	echo sx4-nec-superux${UNAME_RELEASE}
2a5b6a
 	exit ;;
2a5b6a
@@ -1227,19 +1256,21 @@
2a5b6a
 	exit ;;
2a5b6a
     *:Darwin:*:*)
2a5b6a
 	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
2a5b6a
-	case $UNAME_PROCESSOR in
2a5b6a
-	    i386)
2a5b6a
-		eval $set_cc_for_build
2a5b6a
-		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
2a5b6a
-		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
2a5b6a
-		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
2a5b6a
-		      grep IS_64BIT_ARCH >/dev/null
2a5b6a
-		  then
2a5b6a
-		      UNAME_PROCESSOR="x86_64"
2a5b6a
-		  fi
2a5b6a
-		fi ;;
2a5b6a
-	    unknown) UNAME_PROCESSOR=powerpc ;;
2a5b6a
-	esac
2a5b6a
+	eval $set_cc_for_build
2a5b6a
+	if test "$UNAME_PROCESSOR" = unknown ; then
2a5b6a
+	    UNAME_PROCESSOR=powerpc
2a5b6a
+	fi
2a5b6a
+	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
2a5b6a
+	    if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
2a5b6a
+		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
2a5b6a
+		grep IS_64BIT_ARCH >/dev/null
2a5b6a
+	    then
2a5b6a
+		case $UNAME_PROCESSOR in
2a5b6a
+		    i386) UNAME_PROCESSOR=x86_64 ;;
2a5b6a
+		    powerpc) UNAME_PROCESSOR=powerpc64 ;;
2a5b6a
+		esac
2a5b6a
+	    fi
2a5b6a
+	fi
2a5b6a
 	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
2a5b6a
 	exit ;;
2a5b6a
     *:procnto*:*:* | *:QNX:[0123456789]*:*)
2a5b6a
@@ -1256,7 +1287,7 @@
2a5b6a
     NEO-?:NONSTOP_KERNEL:*:*)
2a5b6a
 	echo neo-tandem-nsk${UNAME_RELEASE}
2a5b6a
 	exit ;;
2a5b6a
-    NSE-?:NONSTOP_KERNEL:*:*)
2a5b6a
+    NSE-*:NONSTOP_KERNEL:*:*)
2a5b6a
 	echo nse-tandem-nsk${UNAME_RELEASE}
2a5b6a
 	exit ;;
2a5b6a
     NSR-?:NONSTOP_KERNEL:*:*)
2a5b6a
@@ -1330,9 +1361,6 @@
2a5b6a
 	exit ;;
2a5b6a
 esac
2a5b6a
 
2a5b6a
-#echo '(No uname command or uname output not recognized.)' 1>&2
2a5b6a
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
2a5b6a
-
2a5b6a
 eval $set_cc_for_build
2a5b6a
 cat >$dummy.c <
2a5b6a
 #ifdef _SEQUENT_