Blame SOURCES/isl-0.11.1-ppc64le-config.patch

25c7f1
--- isl-0.11.1/configure.jj	2012-12-10 11:58:02.000000000 +0100
25c7f1
+++ isl-0.11.1/configure	2014-04-10 20:45:59.676625289 +0200
25c7f1
@@ -7991,7 +7991,7 @@ ia64-*-hpux*)
25c7f1
   rm -rf conftest*
25c7f1
   ;;
25c7f1
 
25c7f1
-x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
25c7f1
+x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
25c7f1
 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
25c7f1
   # Find out which ABI we are using.
25c7f1
   echo 'int i;' > conftest.$ac_ext
25c7f1
@@ -8009,7 +8009,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*
25c7f1
 	  x86_64-*linux*)
25c7f1
 	    LD="${LD-ld} -m elf_i386"
25c7f1
 	    ;;
25c7f1
-	  ppc64-*linux*|powerpc64-*linux*)
25c7f1
+	  powerpc64le-*linux*)
25c7f1
+	    LD="${LD-ld} -m elf32lppclinux"
25c7f1
+	    ;;
25c7f1
+	  powerpc64-*linux*)
25c7f1
 	    LD="${LD-ld} -m elf32ppclinux"
25c7f1
 	    ;;
25c7f1
 	  s390x-*linux*)
25c7f1
@@ -8028,7 +8031,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*
25c7f1
 	  x86_64-*linux*)
25c7f1
 	    LD="${LD-ld} -m elf_x86_64"
25c7f1
 	    ;;
25c7f1
-	  ppc*-*linux*|powerpc*-*linux*)
25c7f1
+	  powerpcle-*linux*)
25c7f1
+	    LD="${LD-ld} -m elf64lppc"
25c7f1
+	    ;;
25c7f1
+	  powerpc-*linux*)
25c7f1
 	    LD="${LD-ld} -m elf64ppc"
25c7f1
 	    ;;
25c7f1
 	  s390*-*linux*|s390*-*tpf*)
25c7f1
--- isl-0.11.1/config.sub.jj	2014-04-10 20:44:52.000000000 +0200
25c7f1
+++ isl-0.11.1/config.sub	2014-04-10 10:38:39.203978206 +0200
25c7f1
@@ -1,24 +1,18 @@
25c7f1
 #! /bin/sh
25c7f1
 # Configuration validation subroutine script.
25c7f1
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
25c7f1
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
25c7f1
-#   2011, 2012 Free Software Foundation, Inc.
25c7f1
-
25c7f1
-timestamp='2012-04-18'
25c7f1
-
25c7f1
-# This file is (in principle) common to ALL GNU software.
25c7f1
-# The presence of a machine in this file suggests that SOME GNU software
25c7f1
-# can handle that machine.  It does not imply ALL GNU software can.
25c7f1
-#
25c7f1
-# This file is free software; you can redistribute it and/or modify
25c7f1
-# it under the terms of the GNU General Public License as published by
25c7f1
-# the Free Software Foundation; either version 2 of the License, or
25c7f1
+#   Copyright 1992-2013 Free Software Foundation, Inc.
25c7f1
+
25c7f1
+timestamp='2013-10-01'
25c7f1
+
25c7f1
+# This file is free software; you can redistribute it and/or modify it
25c7f1
+# under the terms of the GNU General Public License as published by
25c7f1
+# the Free Software Foundation; either version 3 of the License, or
25c7f1
 # (at your option) any later version.
25c7f1
 #
25c7f1
-# This program is distributed in the hope that it will be useful,
25c7f1
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
25c7f1
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25c7f1
-# GNU General Public License for more details.
25c7f1
+# This program is distributed in the hope that it will be useful, but
25c7f1
+# WITHOUT ANY WARRANTY; without even the implied warranty of
25c7f1
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25c7f1
+# General Public License for more details.
25c7f1
 #
25c7f1
 # You should have received a copy of the GNU General Public License
25c7f1
 # along with this program; if not, see <http://www.gnu.org/licenses/>.
25c7f1
@@ -26,11 +20,12 @@ timestamp='2012-04-18'
25c7f1
 # As a special exception to the GNU General Public License, if you
25c7f1
 # distribute this file as part of a program that contains a
25c7f1
 # configuration script generated by Autoconf, you may include it under
25c7f1
-# the same distribution terms that you use for the rest of that program.
25c7f1
+# the same distribution terms that you use for the rest of that
25c7f1
+# program.  This Exception is an additional permission under section 7
25c7f1
+# of the GNU General Public License, version 3 ("GPLv3").
25c7f1
 
25c7f1
 
25c7f1
-# Please send patches to <config-patches@gnu.org>.  Submit a context
25c7f1
-# diff and a properly formatted GNU ChangeLog entry.
25c7f1
+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
25c7f1
 #
25c7f1
 # Configuration subroutine to validate and canonicalize a configuration type.
25c7f1
 # Supply the specified configuration type as an argument.
25c7f1
@@ -73,9 +68,7 @@ Report bugs and patches to 
25c7f1
 version="\
25c7f1
 GNU config.sub ($timestamp)
25c7f1
 
25c7f1
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
25c7f1
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
25c7f1
-Free Software Foundation, Inc.
25c7f1
+Copyright 1992-2013 Free Software Foundation, Inc.
25c7f1
 
25c7f1
 This is free software; see the source for copying conditions.  There is NO
25c7f1
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
25c7f1
@@ -123,7 +116,7 @@ esac
25c7f1
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
25c7f1
 case $maybe_os in
25c7f1
   nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
25c7f1
-  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
25c7f1
+  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
25c7f1
   knetbsd*-gnu* | netbsd*-gnu* | \
25c7f1
   kopensolaris*-gnu* | \
25c7f1
   storm-chaos* | os2-emx* | rtmk-nova*)
25c7f1
@@ -156,7 +149,7 @@ case $os in
25c7f1
 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
25c7f1
 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
25c7f1
 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
25c7f1
-	-apple | -axis | -knuth | -cray | -microblaze)
25c7f1
+	-apple | -axis | -knuth | -cray | -microblaze*)
25c7f1
 		os=
25c7f1
 		basic_machine=$1
25c7f1
 		;;
25c7f1
@@ -259,10 +252,12 @@ case $basic_machine in
25c7f1
 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
25c7f1
 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
25c7f1
 	| am33_2.0 \
25c7f1
-	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
25c7f1
-        | be32 | be64 \
25c7f1
+	| arc | arceb \
25c7f1
+	| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
25c7f1
+	| avr | avr32 \
25c7f1
+	| be32 | be64 \
25c7f1
 	| bfin \
25c7f1
-	| c4x | clipper \
25c7f1
+	| c4x | c8051 | clipper \
25c7f1
 	| d10v | d30v | dlx | dsp16xx \
25c7f1
 	| epiphany \
25c7f1
 	| fido | fr30 | frv \
25c7f1
@@ -270,10 +265,11 @@ case $basic_machine in
25c7f1
 	| hexagon \
25c7f1
 	| i370 | i860 | i960 | ia64 \
25c7f1
 	| ip2k | iq2000 \
25c7f1
+	| k1om \
25c7f1
 	| le32 | le64 \
25c7f1
 	| lm32 \
25c7f1
 	| m32c | m32r | m32rle | m68000 | m68k | m88k \
25c7f1
-	| maxq | mb | microblaze | mcore | mep | metag \
25c7f1
+	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
25c7f1
 	| mips | mipsbe | mipseb | mipsel | mipsle \
25c7f1
 	| mips16 \
25c7f1
 	| mips64 | mips64el \
25c7f1
@@ -291,16 +287,17 @@ case $basic_machine in
25c7f1
 	| mipsisa64r2 | mipsisa64r2el \
25c7f1
 	| mipsisa64sb1 | mipsisa64sb1el \
25c7f1
 	| mipsisa64sr71k | mipsisa64sr71kel \
25c7f1
+	| mipsr5900 | mipsr5900el \
25c7f1
 	| mipstx39 | mipstx39el \
25c7f1
 	| mn10200 | mn10300 \
25c7f1
 	| moxie \
25c7f1
 	| mt \
25c7f1
 	| msp430 \
25c7f1
 	| nds32 | nds32le | nds32be \
25c7f1
-	| nios | nios2 \
25c7f1
+	| nios | nios2 | nios2eb | nios2el \
25c7f1
 	| ns16k | ns32k \
25c7f1
 	| open8 \
25c7f1
-	| or32 \
25c7f1
+	| or1k | or32 \
25c7f1
 	| pdp10 | pdp11 | pj | pjl \
25c7f1
 	| powerpc | powerpc64 | powerpc64le | powerpcle \
25c7f1
 	| pyramid \
25c7f1
@@ -328,7 +325,7 @@ case $basic_machine in
25c7f1
 	c6x)
25c7f1
 		basic_machine=tic6x-unknown
25c7f1
 		;;
25c7f1
-	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
25c7f1
+	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
25c7f1
 		basic_machine=$basic_machine-unknown
25c7f1
 		os=-none
25c7f1
 		;;
25c7f1
@@ -370,13 +367,13 @@ case $basic_machine in
25c7f1
 	| aarch64-* | aarch64_be-* \
25c7f1
 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
25c7f1
 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
25c7f1
-	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
25c7f1
+	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
25c7f1
 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
25c7f1
 	| avr-* | avr32-* \
25c7f1
 	| be32-* | be64-* \
25c7f1
 	| bfin-* | bs2000-* \
25c7f1
 	| c[123]* | c30-* | [cjt]90-* | c4x-* \
25c7f1
-	| clipper-* | craynv-* | cydra-* \
25c7f1
+	| c8051-* | clipper-* | craynv-* | cydra-* \
25c7f1
 	| d10v-* | d30v-* | dlx-* \
25c7f1
 	| elxsi-* \
25c7f1
 	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
25c7f1
@@ -385,11 +382,13 @@ case $basic_machine in
25c7f1
 	| hexagon-* \
25c7f1
 	| i*86-* | i860-* | i960-* | ia64-* \
25c7f1
 	| ip2k-* | iq2000-* \
25c7f1
+	| k1om-* \
25c7f1
 	| le32-* | le64-* \
25c7f1
 	| lm32-* \
25c7f1
 	| m32c-* | m32r-* | m32rle-* \
25c7f1
 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
25c7f1
-	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
25c7f1
+	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
25c7f1
+	| microblaze-* | microblazeel-* \
25c7f1
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
25c7f1
 	| mips16-* \
25c7f1
 	| mips64-* | mips64el-* \
25c7f1
@@ -407,12 +406,13 @@ case $basic_machine in
25c7f1
 	| mipsisa64r2-* | mipsisa64r2el-* \
25c7f1
 	| mipsisa64sb1-* | mipsisa64sb1el-* \
25c7f1
 	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
25c7f1
+	| mipsr5900-* | mipsr5900el-* \
25c7f1
 	| mipstx39-* | mipstx39el-* \
25c7f1
 	| mmix-* \
25c7f1
 	| mt-* \
25c7f1
 	| msp430-* \
25c7f1
 	| nds32-* | nds32le-* | nds32be-* \
25c7f1
-	| nios-* | nios2-* \
25c7f1
+	| nios-* | nios2-* | nios2eb-* | nios2el-* \
25c7f1
 	| none-* | np1-* | ns16k-* | ns32k-* \
25c7f1
 	| open8-* \
25c7f1
 	| orion-* \
25c7f1
@@ -788,11 +788,15 @@ case $basic_machine in
25c7f1
 		basic_machine=ns32k-utek
25c7f1
 		os=-sysv
25c7f1
 		;;
25c7f1
-	microblaze)
25c7f1
+	microblaze*)
25c7f1
 		basic_machine=microblaze-xilinx
25c7f1
 		;;
25c7f1
+	mingw64)
25c7f1
+		basic_machine=x86_64-pc
25c7f1
+		os=-mingw64
25c7f1
+		;;
25c7f1
 	mingw32)
25c7f1
-		basic_machine=i386-pc
25c7f1
+		basic_machine=i686-pc
25c7f1
 		os=-mingw32
25c7f1
 		;;
25c7f1
 	mingw32ce)
25c7f1
@@ -828,7 +832,7 @@ case $basic_machine in
25c7f1
 		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
25c7f1
 		;;
25c7f1
 	msys)
25c7f1
-		basic_machine=i386-pc
25c7f1
+		basic_machine=i686-pc
25c7f1
 		os=-msys
25c7f1
 		;;
25c7f1
 	mvs)
25c7f1
@@ -1019,7 +1023,11 @@ case $basic_machine in
25c7f1
 		basic_machine=i586-unknown
25c7f1
 		os=-pw32
25c7f1
 		;;
25c7f1
-	rdos)
25c7f1
+	rdos | rdos64)
25c7f1
+		basic_machine=x86_64-pc
25c7f1
+		os=-rdos
25c7f1
+		;;
25c7f1
+	rdos32)
25c7f1
 		basic_machine=i386-pc
25c7f1
 		os=-rdos
25c7f1
 		;;
25c7f1
@@ -1346,21 +1354,21 @@ case $os in
25c7f1
 	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
25c7f1
 	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
25c7f1
 	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
25c7f1
-	      | -sym* | -kopensolaris* \
25c7f1
+	      | -sym* | -kopensolaris* | -plan9* \
25c7f1
 	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
25c7f1
 	      | -aos* | -aros* \
25c7f1
 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
25c7f1
 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
25c7f1
 	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
25c7f1
-	      | -openbsd* | -solidbsd* \
25c7f1
+	      | -bitrig* | -openbsd* | -solidbsd* \
25c7f1
 	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
25c7f1
 	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
25c7f1
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
25c7f1
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
25c7f1
 	      | -chorusos* | -chorusrdb* | -cegcc* \
25c7f1
 	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
25c7f1
-	      | -mingw32* | -linux-gnu* | -linux-android* \
25c7f1
-	      | -linux-newlib* | -linux-uclibc* \
25c7f1
+	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
25c7f1
+	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
25c7f1
 	      | -uxpv* | -beos* | -mpeix* | -udk* \
25c7f1
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
25c7f1
 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
25c7f1
@@ -1492,9 +1500,6 @@ case $os in
25c7f1
 	-aros*)
25c7f1
 		os=-aros
25c7f1
 		;;
25c7f1
-	-kaos*)
25c7f1
-		os=-kaos
25c7f1
-		;;
25c7f1
 	-zvmoe)
25c7f1
 		os=-zvmoe
25c7f1
 		;;
25c7f1
@@ -1543,6 +1548,9 @@ case $basic_machine in
25c7f1
 	c4x-* | tic4x-*)
25c7f1
 		os=-coff
25c7f1
 		;;
25c7f1
+	c8051-*)
25c7f1
+		os=-elf
25c7f1
+		;;
25c7f1
 	hexagon-*)
25c7f1
 		os=-elf
25c7f1
 		;;
25c7f1
@@ -1586,6 +1594,9 @@ case $basic_machine in
25c7f1
 	mips*-*)
25c7f1
 		os=-elf
25c7f1
 		;;
25c7f1
+	or1k-*)
25c7f1
+		os=-elf
25c7f1
+		;;
25c7f1
 	or32-*)
25c7f1
 		os=-coff
25c7f1
 		;;
25c7f1
--- isl-0.11.1/config.guess.jj	2014-04-10 20:44:52.000000000 +0200
25c7f1
+++ isl-0.11.1/config.guess	2014-04-10 10:38:36.329993540 +0200
25c7f1
@@ -1,14 +1,12 @@
25c7f1
 #! /bin/sh
25c7f1
 # Attempt to guess a canonical system name.
25c7f1
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
25c7f1
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
25c7f1
-#   2011, 2012 Free Software Foundation, Inc.
25c7f1
+#   Copyright 1992-2013 Free Software Foundation, Inc.
25c7f1
 
25c7f1
-timestamp='2012-06-10'
25c7f1
+timestamp='2013-06-10'
25c7f1
 
25c7f1
 # This file is free software; you can redistribute it and/or modify it
25c7f1
 # under the terms of the GNU General Public License as published by
25c7f1
-# the Free Software Foundation; either version 2 of the License, or
25c7f1
+# the Free Software Foundation; either version 3 of the License, or
25c7f1
 # (at your option) any later version.
25c7f1
 #
25c7f1
 # This program is distributed in the hope that it will be useful, but
25c7f1
@@ -22,19 +20,17 @@ timestamp='2012-06-10'
25c7f1
 # As a special exception to the GNU General Public License, if you
25c7f1
 # distribute this file as part of a program that contains a
25c7f1
 # configuration script generated by Autoconf, you may include it under
25c7f1
-# the same distribution terms that you use for the rest of that program.
25c7f1
-
25c7f1
-
25c7f1
-# Originally written by Per Bothner.  Please send patches (context
25c7f1
-# diff format) to <config-patches@gnu.org> and include a ChangeLog
25c7f1
-# entry.
25c7f1
+# the same distribution terms that you use for the rest of that
25c7f1
+# program.  This Exception is an additional permission under section 7
25c7f1
+# of the GNU General Public License, version 3 ("GPLv3").
25c7f1
 #
25c7f1
-# This script attempts to guess a canonical system name similar to
25c7f1
-# config.sub.  If it succeeds, it prints the system name on stdout, and
25c7f1
-# exits with 0.  Otherwise, it exits with 1.
25c7f1
+# Originally written by Per Bothner.
25c7f1
 #
25c7f1
 # You can get the latest version of this script from:
25c7f1
 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
25c7f1
+#
25c7f1
+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
25c7f1
+
25c7f1
 
25c7f1
 me=`echo "$0" | sed -e 's,.*/,,'`
25c7f1
 
25c7f1
@@ -54,9 +50,7 @@ version="\
25c7f1
 GNU config.guess ($timestamp)
25c7f1
 
25c7f1
 Originally written by Per Bothner.
25c7f1
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
25c7f1
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
25c7f1
-Free Software Foundation, Inc.
25c7f1
+Copyright 1992-2013 Free Software Foundation, Inc.
25c7f1
 
25c7f1
 This is free software; see the source for copying conditions.  There is NO
25c7f1
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
25c7f1
@@ -138,6 +132,27 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` |
25c7f1
 UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
25c7f1
 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
25c7f1
 
25c7f1
+case "${UNAME_SYSTEM}" in
25c7f1
+Linux|GNU|GNU/*)
25c7f1
+	# If the system lacks a compiler, then just pick glibc.
25c7f1
+	# We could probably try harder.
25c7f1
+	LIBC=gnu
25c7f1
+
25c7f1
+	eval $set_cc_for_build
25c7f1
+	cat <<-EOF > $dummy.c
25c7f1
+	#include <features.h>
25c7f1
+	#if defined(__UCLIBC__)
25c7f1
+	LIBC=uclibc
25c7f1
+	#elif defined(__dietlibc__)
25c7f1
+	LIBC=dietlibc
25c7f1
+	#else
25c7f1
+	LIBC=gnu
25c7f1
+	#endif
25c7f1
+	EOF
25c7f1
+	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
25c7f1
+	;;
25c7f1
+esac
25c7f1
+
25c7f1
 # Note: order is significant - the case branches are not exclusive.
25c7f1
 
25c7f1
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
25c7f1
@@ -200,6 +215,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
25c7f1
 	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
25c7f1
 	echo "${machine}-${os}${release}"
25c7f1
 	exit ;;
25c7f1
+    *:Bitrig:*:*)
25c7f1
+	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
25c7f1
+	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
25c7f1
+	exit ;;
25c7f1
     *:OpenBSD:*:*)
25c7f1
 	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
25c7f1
 	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
25c7f1
@@ -302,7 +321,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
25c7f1
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
25c7f1
 	echo arm-acorn-riscix${UNAME_RELEASE}
25c7f1
 	exit ;;
25c7f1
-    arm:riscos:*:*|arm:RISCOS:*:*)
25c7f1
+    arm*:riscos:*:*|arm*:RISCOS:*:*)
25c7f1
 	echo arm-unknown-riscos
25c7f1
 	exit ;;
25c7f1
     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
25c7f1
@@ -801,6 +820,9 @@ EOF
25c7f1
     i*:CYGWIN*:*)
25c7f1
 	echo ${UNAME_MACHINE}-pc-cygwin
25c7f1
 	exit ;;
25c7f1
+    *:MINGW64*:*)
25c7f1
+	echo ${UNAME_MACHINE}-pc-mingw64
25c7f1
+	exit ;;
25c7f1
     *:MINGW*:*)
25c7f1
 	echo ${UNAME_MACHINE}-pc-mingw32
25c7f1
 	exit ;;
25c7f1
@@ -852,21 +874,21 @@ EOF
25c7f1
 	exit ;;
25c7f1
     *:GNU:*:*)
25c7f1
 	# the GNU system
25c7f1
-	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
25c7f1
+	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
25c7f1
 	exit ;;
25c7f1
     *:GNU/*:*:*)
25c7f1
 	# other systems with GNU libc and userland
25c7f1
-	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
25c7f1
+	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
25c7f1
 	exit ;;
25c7f1
     i*86:Minix:*:*)
25c7f1
 	echo ${UNAME_MACHINE}-pc-minix
25c7f1
 	exit ;;
25c7f1
     aarch64:Linux:*:*)
25c7f1
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
25c7f1
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     aarch64_be:Linux:*:*)
25c7f1
 	UNAME_MACHINE=aarch64_be
25c7f1
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
25c7f1
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     alpha:Linux:*:*)
25c7f1
 	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
25c7f1
@@ -879,59 +901,54 @@ EOF
25c7f1
 	  EV68*) UNAME_MACHINE=alphaev68 ;;
25c7f1
 	esac
25c7f1
 	objdump --private-headers /bin/sh | grep -q ld.so.1
25c7f1
-	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
25c7f1
-	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
25c7f1
+	if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
25c7f1
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
25c7f1
+	exit ;;
25c7f1
+    arc:Linux:*:* | arceb:Linux:*:*)
25c7f1
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     arm*:Linux:*:*)
25c7f1
 	eval $set_cc_for_build
25c7f1
 	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
25c7f1
 	    | grep -q __ARM_EABI__
25c7f1
 	then
25c7f1
-	    echo ${UNAME_MACHINE}-unknown-linux-gnu
25c7f1
+	    echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
25c7f1
 	else
25c7f1
 	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
25c7f1
 		| grep -q __ARM_PCS_VFP
25c7f1
 	    then
25c7f1
-		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
25c7f1
+		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
25c7f1
 	    else
25c7f1
-		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
25c7f1
+		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
25c7f1
 	    fi
25c7f1
 	fi
25c7f1
 	exit ;;
25c7f1
     avr32*:Linux:*:*)
25c7f1
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
25c7f1
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     cris:Linux:*:*)
25c7f1
-	echo ${UNAME_MACHINE}-axis-linux-gnu
25c7f1
+	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     crisv32:Linux:*:*)
25c7f1
-	echo ${UNAME_MACHINE}-axis-linux-gnu
25c7f1
+	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     frv:Linux:*:*)
25c7f1
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
25c7f1
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     hexagon:Linux:*:*)
25c7f1
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
25c7f1
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     i*86:Linux:*:*)
25c7f1
-	LIBC=gnu
25c7f1
-	eval $set_cc_for_build
25c7f1
-	sed 's/^	//' << EOF >$dummy.c
25c7f1
-	#ifdef __dietlibc__
25c7f1
-	LIBC=dietlibc
25c7f1
-	#endif
25c7f1
-EOF
25c7f1
-	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
25c7f1
-	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
25c7f1
+	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     ia64:Linux:*:*)
25c7f1
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
25c7f1
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     m32r*:Linux:*:*)
25c7f1
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
25c7f1
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     m68*:Linux:*:*)
25c7f1
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
25c7f1
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     mips:Linux:*:* | mips64:Linux:*:*)
25c7f1
 	eval $set_cc_for_build
25c7f1
@@ -950,54 +967,63 @@ EOF
25c7f1
 	#endif
25c7f1
 EOF
25c7f1
 	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
25c7f1
-	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
25c7f1
+	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
25c7f1
 	;;
25c7f1
+    or1k:Linux:*:*)
25c7f1
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
25c7f1
+	exit ;;
25c7f1
     or32:Linux:*:*)
25c7f1
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
25c7f1
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     padre:Linux:*:*)
25c7f1
-	echo sparc-unknown-linux-gnu
25c7f1
+	echo sparc-unknown-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     parisc64:Linux:*:* | hppa64:Linux:*:*)
25c7f1
-	echo hppa64-unknown-linux-gnu
25c7f1
+	echo hppa64-unknown-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     parisc:Linux:*:* | hppa:Linux:*:*)
25c7f1
 	# Look for CPU level
25c7f1
 	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
25c7f1
-	  PA7*) echo hppa1.1-unknown-linux-gnu ;;
25c7f1
-	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
25c7f1
-	  *)    echo hppa-unknown-linux-gnu ;;
25c7f1
+	  PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
25c7f1
+	  PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
25c7f1
+	  *)    echo hppa-unknown-linux-${LIBC} ;;
25c7f1
 	esac
25c7f1
 	exit ;;
25c7f1
     ppc64:Linux:*:*)
25c7f1
-	echo powerpc64-unknown-linux-gnu
25c7f1
+	echo powerpc64-unknown-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     ppc:Linux:*:*)
25c7f1
-	echo powerpc-unknown-linux-gnu
25c7f1
+	echo powerpc-unknown-linux-${LIBC}
25c7f1
+	exit ;;
25c7f1
+    ppc64le:Linux:*:*)
25c7f1
+	echo powerpc64le-unknown-linux-${LIBC}
25c7f1
+	exit ;;
25c7f1
+    ppcle:Linux:*:*)
25c7f1
+	echo powerpcle-unknown-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     s390:Linux:*:* | s390x:Linux:*:*)
25c7f1
-	echo ${UNAME_MACHINE}-ibm-linux
25c7f1
+	echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     sh64*:Linux:*:*)
25c7f1
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
25c7f1
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     sh*:Linux:*:*)
25c7f1
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
25c7f1
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     sparc:Linux:*:* | sparc64:Linux:*:*)
25c7f1
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
25c7f1
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     tile*:Linux:*:*)
25c7f1
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
25c7f1
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     vax:Linux:*:*)
25c7f1
-	echo ${UNAME_MACHINE}-dec-linux-gnu
25c7f1
+	echo ${UNAME_MACHINE}-dec-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     x86_64:Linux:*:*)
25c7f1
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
25c7f1
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     xtensa*:Linux:*:*)
25c7f1
-	echo ${UNAME_MACHINE}-unknown-linux-gnu
25c7f1
+	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
25c7f1
 	exit ;;
25c7f1
     i*86:DYNIX/ptx:4*:*)
25c7f1
 	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
25c7f1
@@ -1201,6 +1227,9 @@ EOF
25c7f1
     BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
25c7f1
 	echo i586-pc-haiku
25c7f1
 	exit ;;
25c7f1
+    x86_64:Haiku:*:*)
25c7f1
+	echo x86_64-unknown-haiku
25c7f1
+	exit ;;
25c7f1
     SX-4:SUPER-UX:*:*)
25c7f1
 	echo sx4-nec-superux${UNAME_RELEASE}
25c7f1
 	exit ;;
25c7f1
@@ -1227,19 +1256,21 @@ EOF
25c7f1
 	exit ;;
25c7f1
     *:Darwin:*:*)
25c7f1
 	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
25c7f1
-	case $UNAME_PROCESSOR in
25c7f1
-	    i386)
25c7f1
-		eval $set_cc_for_build
25c7f1
-		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
25c7f1
-		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
25c7f1
-		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
25c7f1
-		      grep IS_64BIT_ARCH >/dev/null
25c7f1
-		  then
25c7f1
-		      UNAME_PROCESSOR="x86_64"
25c7f1
-		  fi
25c7f1
-		fi ;;
25c7f1
-	    unknown) UNAME_PROCESSOR=powerpc ;;
25c7f1
-	esac
25c7f1
+	eval $set_cc_for_build
25c7f1
+	if test "$UNAME_PROCESSOR" = unknown ; then
25c7f1
+	    UNAME_PROCESSOR=powerpc
25c7f1
+	fi
25c7f1
+	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
25c7f1
+	    if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
25c7f1
+		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
25c7f1
+		grep IS_64BIT_ARCH >/dev/null
25c7f1
+	    then
25c7f1
+		case $UNAME_PROCESSOR in
25c7f1
+		    i386) UNAME_PROCESSOR=x86_64 ;;
25c7f1
+		    powerpc) UNAME_PROCESSOR=powerpc64 ;;
25c7f1
+		esac
25c7f1
+	    fi
25c7f1
+	fi
25c7f1
 	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
25c7f1
 	exit ;;
25c7f1
     *:procnto*:*:* | *:QNX:[0123456789]*:*)
25c7f1
@@ -1330,9 +1361,6 @@ EOF
25c7f1
 	exit ;;
25c7f1
 esac
25c7f1
 
25c7f1
-#echo '(No uname command or uname output not recognized.)' 1>&2
25c7f1
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
25c7f1
-
25c7f1
 eval $set_cc_for_build
25c7f1
 cat >$dummy.c <
25c7f1
 #ifdef _SEQUENT_
25c7f1
--- isl-0.11.1/m4/libtool.m4.jj	2011-11-24 13:37:42.000000000 +0100
25c7f1
+++ isl-0.11.1/m4/libtool.m4	2014-04-10 20:45:52.524663864 +0200
25c7f1
@@ -1268,7 +1268,7 @@ ia64-*-hpux*)
25c7f1
   rm -rf conftest*
25c7f1
   ;;
25c7f1
 
25c7f1
-x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
25c7f1
+x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
25c7f1
 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
25c7f1
   # Find out which ABI we are using.
25c7f1
   echo 'int i;' > conftest.$ac_ext
25c7f1
@@ -1282,7 +1282,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*
25c7f1
 	  x86_64-*linux*)
25c7f1
 	    LD="${LD-ld} -m elf_i386"
25c7f1
 	    ;;
25c7f1
-	  ppc64-*linux*|powerpc64-*linux*)
25c7f1
+	  powerpc64le-*linux*)
25c7f1
+	    LD="${LD-ld} -m elf32lppclinux"
25c7f1
+	    ;;
25c7f1
+	  powerpc64-*linux*)
25c7f1
 	    LD="${LD-ld} -m elf32ppclinux"
25c7f1
 	    ;;
25c7f1
 	  s390x-*linux*)
25c7f1
@@ -1301,7 +1304,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*
25c7f1
 	  x86_64-*linux*)
25c7f1
 	    LD="${LD-ld} -m elf_x86_64"
25c7f1
 	    ;;
25c7f1
-	  ppc*-*linux*|powerpc*-*linux*)
25c7f1
+	  powerpcle-*linux*)
25c7f1
+	    LD="${LD-ld} -m elf64lppc"
25c7f1
+	    ;;
25c7f1
+	  powerpc-*linux*)
25c7f1
 	    LD="${LD-ld} -m elf64ppc"
25c7f1
 	    ;;
25c7f1
 	  s390*-*linux*|s390*-*tpf*)