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