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