aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2018-07-17 09:26:39 -0700
committerPaul Eggert2018-07-17 09:27:05 -0700
commit04599bb1b219b236356ba3393a23e1c1dd8c541b (patch)
tree152d6e81c4d8f4443f1c4464c36696218c3dfc86
parent00fa9467339271fcaeabd08301b72f0fd802e03a (diff)
downloademacs-04599bb1b219b236356ba3393a23e1c1dd8c541b.tar.gz
emacs-04599bb1b219b236356ba3393a23e1c1dd8c541b.zip
Update from Gnulib
This causes config.guess to assume support for shell functions, a safe assumption nowadays. * build-aux/config.guess, build-aux/config.sub: Copy from Gnulib.
-rwxr-xr-xbuild-aux/config.guess80
-rwxr-xr-xbuild-aux/config.sub6
2 files changed, 44 insertions, 42 deletions
diff --git a/build-aux/config.guess b/build-aux/config.guess
index 2b79f6d837b..ced991e4177 100755
--- a/build-aux/config.guess
+++ b/build-aux/config.guess
@@ -2,7 +2,7 @@
2# Attempt to guess a canonical system name. 2# Attempt to guess a canonical system name.
3# Copyright 1992-2018 Free Software Foundation, Inc. 3# Copyright 1992-2018 Free Software Foundation, Inc.
4 4
5timestamp='2018-07-06' 5timestamp='2018-07-13'
6 6
7# This file is free software; you can redistribute it and/or modify it 7# This file is free software; you can redistribute it and/or modify it
8# under the terms of the GNU General Public License as published by 8# under the terms of the GNU General Public License as published by
@@ -84,8 +84,6 @@ if test $# != 0; then
84 exit 1 84 exit 1
85fi 85fi
86 86
87trap 'exit 1' 1 2 15
88
89# CC_FOR_BUILD -- compiler used by this script. Note that the use of a 87# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
90# compiler to aid in system detection is discouraged as it requires 88# compiler to aid in system detection is discouraged as it requires
91# temporary files to be created and, as you can see below, it is a 89# temporary files to be created and, as you can see below, it is a
@@ -96,30 +94,35 @@ trap 'exit 1' 1 2 15
96 94
97# Portable tmp directory creation inspired by the Autoconf team. 95# Portable tmp directory creation inspired by the Autoconf team.
98 96
99set_cc_for_build=' 97tmp=
100trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 98# shellcheck disable=SC2172
101trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 99trap 'test -z "$tmp" || rm -fr "$tmp"' 1 2 13 15
102: ${TMPDIR=/tmp} ; 100trap 'exitcode=$?; test -z "$tmp" || rm -fr "$tmp"; exit $exitcode' 0
103 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 101
104 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp 2>/dev/null) ; } || 102set_cc_for_build() {
105 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || 103 : "${TMPDIR=/tmp}"
106 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 104 # shellcheck disable=SC2039
107dummy=$tmp/dummy ; 105 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
108tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 106 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } ||
109case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in 107 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } ||
110 ,,) echo "int x;" > "$dummy.c" ; 108 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; }
111 for c in cc gcc c89 c99 ; do 109 dummy=$tmp/dummy
112 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then 110 case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
113 CC_FOR_BUILD="$c"; break ; 111 ,,) echo "int x;" > "$dummy.c"
114 fi ; 112 for driver in cc gcc c89 c99 ; do
115 done ; 113 if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
116 if test x"$CC_FOR_BUILD" = x ; then 114 CC_FOR_BUILD="$driver"
117 CC_FOR_BUILD=no_compiler_found ; 115 break
118 fi 116 fi
119 ;; 117 done
120 ,,*) CC_FOR_BUILD=$CC ;; 118 if test x"$CC_FOR_BUILD" = x ; then
121 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 119 CC_FOR_BUILD=no_compiler_found
122esac ; set_cc_for_build= ;' 120 fi
121 ;;
122 ,,*) CC_FOR_BUILD=$CC ;;
123 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
124 esac
125}
123 126
124# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 127# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
125# (ghazi@noc.rutgers.edu 1994-08-24) 128# (ghazi@noc.rutgers.edu 1994-08-24)
@@ -138,7 +141,7 @@ Linux|GNU|GNU/*)
138 # We could probably try harder. 141 # We could probably try harder.
139 LIBC=gnu 142 LIBC=gnu
140 143
141 eval "$set_cc_for_build" 144 set_cc_for_build
142 cat <<-EOF > "$dummy.c" 145 cat <<-EOF > "$dummy.c"
143 #include <features.h> 146 #include <features.h>
144 #if defined(__UCLIBC__) 147 #if defined(__UCLIBC__)
@@ -199,7 +202,7 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
199 os=netbsdelf 202 os=netbsdelf
200 ;; 203 ;;
201 arm*|i386|m68k|ns32k|sh3*|sparc|vax) 204 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
202 eval "$set_cc_for_build" 205 set_cc_for_build
203 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 206 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
204 | grep -q __ELF__ 207 | grep -q __ELF__
205 then 208 then
@@ -389,7 +392,7 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
389 echo i386-pc-auroraux"$UNAME_RELEASE" 392 echo i386-pc-auroraux"$UNAME_RELEASE"
390 exit ;; 393 exit ;;
391 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 394 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
392 eval "$set_cc_for_build" 395 set_cc_for_build
393 SUN_ARCH=i386 396 SUN_ARCH=i386
394 # If there is a compiler, see if it is configured for 64-bit objects. 397 # If there is a compiler, see if it is configured for 64-bit objects.
395 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. 398 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
@@ -482,7 +485,7 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
482 echo clipper-intergraph-clix"$UNAME_RELEASE" 485 echo clipper-intergraph-clix"$UNAME_RELEASE"
483 exit ;; 486 exit ;;
484 mips:*:*:UMIPS | mips:*:*:RISCos) 487 mips:*:*:UMIPS | mips:*:*:RISCos)
485 eval "$set_cc_for_build" 488 set_cc_for_build
486 sed 's/^ //' << EOF > "$dummy.c" 489 sed 's/^ //' << EOF > "$dummy.c"
487#ifdef __cplusplus 490#ifdef __cplusplus
488#include <stdio.h> /* for printf() prototype */ 491#include <stdio.h> /* for printf() prototype */
@@ -579,7 +582,7 @@ EOF
579 exit ;; 582 exit ;;
580 *:AIX:2:3) 583 *:AIX:2:3)
581 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 584 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
582 eval "$set_cc_for_build" 585 set_cc_for_build
583 sed 's/^ //' << EOF > "$dummy.c" 586 sed 's/^ //' << EOF > "$dummy.c"
584 #include <sys/systemcfg.h> 587 #include <sys/systemcfg.h>
585 588
@@ -660,7 +663,7 @@ EOF
660 esac 663 esac
661 fi 664 fi
662 if [ "$HP_ARCH" = "" ]; then 665 if [ "$HP_ARCH" = "" ]; then
663 eval "$set_cc_for_build" 666 set_cc_for_build
664 sed 's/^ //' << EOF > "$dummy.c" 667 sed 's/^ //' << EOF > "$dummy.c"
665 668
666 #define _HPUX_SOURCE 669 #define _HPUX_SOURCE
@@ -700,7 +703,7 @@ EOF
700 esac 703 esac
701 if [ "$HP_ARCH" = hppa2.0w ] 704 if [ "$HP_ARCH" = hppa2.0w ]
702 then 705 then
703 eval "$set_cc_for_build" 706 set_cc_for_build
704 707
705 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 708 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
706 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 709 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
@@ -726,7 +729,7 @@ EOF
726 echo ia64-hp-hpux"$HPUX_REV" 729 echo ia64-hp-hpux"$HPUX_REV"
727 exit ;; 730 exit ;;
728 3050*:HI-UX:*:*) 731 3050*:HI-UX:*:*)
729 eval "$set_cc_for_build" 732 set_cc_for_build
730 sed 's/^ //' << EOF > "$dummy.c" 733 sed 's/^ //' << EOF > "$dummy.c"
731 #include <unistd.h> 734 #include <unistd.h>
732 int 735 int
@@ -922,7 +925,7 @@ EOF
922 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 925 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
923 exit ;; 926 exit ;;
924 arm*:Linux:*:*) 927 arm*:Linux:*:*)
925 eval "$set_cc_for_build" 928 set_cc_for_build
926 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 929 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
927 | grep -q __ARM_EABI__ 930 | grep -q __ARM_EABI__
928 then 931 then
@@ -971,7 +974,7 @@ EOF
971 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 974 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
972 exit ;; 975 exit ;;
973 mips:Linux:*:* | mips64:Linux:*:*) 976 mips:Linux:*:* | mips64:Linux:*:*)
974 eval "$set_cc_for_build" 977 set_cc_for_build
975 sed 's/^ //' << EOF > "$dummy.c" 978 sed 's/^ //' << EOF > "$dummy.c"
976 #undef CPU 979 #undef CPU
977 #undef ${UNAME_MACHINE} 980 #undef ${UNAME_MACHINE}
@@ -1285,7 +1288,7 @@ EOF
1285 exit ;; 1288 exit ;;
1286 *:Darwin:*:*) 1289 *:Darwin:*:*)
1287 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1290 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1288 eval "$set_cc_for_build" 1291 set_cc_for_build
1289 if test "$UNAME_PROCESSOR" = unknown ; then 1292 if test "$UNAME_PROCESSOR" = unknown ; then
1290 UNAME_PROCESSOR=powerpc 1293 UNAME_PROCESSOR=powerpc
1291 fi 1294 fi
@@ -1358,6 +1361,7 @@ EOF
1358 # "uname -m" is not consistent, so use $cputype instead. 386 1361 # "uname -m" is not consistent, so use $cputype instead. 386
1359 # is converted to i386 for consistency with other x86 1362 # is converted to i386 for consistency with other x86
1360 # operating systems. 1363 # operating systems.
1364 # shellcheck disable=SC2154
1361 if test "$cputype" = 386; then 1365 if test "$cputype" = 386; then
1362 UNAME_MACHINE=i386 1366 UNAME_MACHINE=i386
1363 else 1367 else
diff --git a/build-aux/config.sub b/build-aux/config.sub
index c95acc681d1..64f9b14b55b 100755
--- a/build-aux/config.sub
+++ b/build-aux/config.sub
@@ -2,7 +2,7 @@
2# Configuration validation subroutine script. 2# Configuration validation subroutine script.
3# Copyright 1992-2018 Free Software Foundation, Inc. 3# Copyright 1992-2018 Free Software Foundation, Inc.
4 4
5timestamp='2018-07-03' 5timestamp='2018-07-13'
6 6
7# This file is free software; you can redistribute it and/or modify it 7# This file is free software; you can redistribute it and/or modify it
8# under the terms of the GNU General Public License as published by 8# under the terms of the GNU General Public License as published by
@@ -739,6 +739,7 @@ case $basic_machine in
739 | mipsr5900-* | mipsr5900el-* \ 739 | mipsr5900-* | mipsr5900el-* \
740 | mipstx39-* | mipstx39el-* \ 740 | mipstx39-* | mipstx39el-* \
741 | mmix-* \ 741 | mmix-* \
742 | moxie-* \
742 | mt-* \ 743 | mt-* \
743 | msp430-* \ 744 | msp430-* \
744 | nds32-* | nds32le-* | nds32be-* \ 745 | nds32-* | nds32le-* | nds32be-* \
@@ -1263,9 +1264,6 @@ case $basic_machine in
1263 pmac | pmac-mpw) 1264 pmac | pmac-mpw)
1264 basic_machine=powerpc-apple 1265 basic_machine=powerpc-apple
1265 ;; 1266 ;;
1266 *-unknown)
1267 # Make sure to match an already-canonicalized machine name.
1268 ;;
1269 *) 1267 *)
1270 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 1268 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
1271 exit 1 1269 exit 1