diff options
author | Ben Gamari <ben@smart-cactus.org> | 2017-07-21 17:59:22 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-07-23 10:40:59 -0400 |
commit | ee1047e2283a3f628fd0d91df0e9eb955bb0994d (patch) | |
tree | cee11132fab740203182d7b0bc4568b83e4befee /config.guess | |
parent | c1d9690619ea38bad3b9aa529d72d10c6206f2e9 (diff) | |
download | haskell-ee1047e2283a3f628fd0d91df0e9eb955bb0994d.tar.gz |
Update autoconf scripts
Scripts taken from autoconf 81497f5aaf50a12a9fe0cba30ef18bda46b62959
Diffstat (limited to 'config.guess')
-rwxr-xr-x | config.guess | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/config.guess b/config.guess index faa63aa942..07785f5451 100755 --- a/config.guess +++ b/config.guess @@ -2,7 +2,7 @@ # Attempt to guess a canonical system name. # Copyright 1992-2017 Free Software Foundation, Inc. -timestamp='2017-05-11' +timestamp='2017-07-19' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -1304,14 +1304,21 @@ EOF if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then if [ "$CC_FOR_BUILD" != no_compiler_found ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ - (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ - grep IS_64BIT_ARCH >/dev/null + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi + # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc + if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_PPC >/dev/null + then + UNAME_PROCESSOR=powerpc + fi fi elif test "$UNAME_PROCESSOR" = i386 ; then # Avoid executing cc on OS X 10.9, as it ships with a stub @@ -1422,8 +1429,8 @@ cat >&2 <<EOF $0: unable to guess system type This script (version $timestamp), has failed to recognize the -operating system you are using. If your script is old, overwrite -config.guess and config.sub with the latest versions from: +operating system you are using. If your script is old, overwrite *all* +copies of config.guess and config.sub with the latest versions from: http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess and |