alexk / rpms / rpm

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