aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Elliston1999-04-08 00:13:14 +0000
committerBen Elliston1999-04-08 00:13:14 +0000
commit68f396540f47d6cc73c486e38a1704d301d0e4af (patch)
tree925ecab2c59c067aabeb9cad94fba6b310a8b857
parent539eedecc07b992fdf0b2f0c300d5d186dcecebc (diff)
downloademacs-68f396540f47d6cc73c486e38a1704d301d0e4af.tar.gz
emacs-68f396540f47d6cc73c486e38a1704d301d0e4af.zip
Merge recent additions from autoconf source tree.
-rwxr-xr-xconfig.guess70
-rwxr-xr-xconfig.sub32
2 files changed, 78 insertions, 24 deletions
diff --git a/config.guess b/config.guess
index eb1dd54836f..a1b76ce2f4c 100755
--- a/config.guess
+++ b/config.guess
@@ -36,6 +36,20 @@
36# (but try to keep the structure clean). 36# (but try to keep the structure clean).
37# 37#
38 38
39# Use $HOST_CC if defined. $CC may point to a cross-compiler
40if test x"$CC_FOR_BUILD" = x; then
41 if test x"$HOST_CC" != x; then
42 CC_FOR_BUILD="$HOST_CC"
43 else
44 if test x"$CC" != x; then
45 CC_FOR_BUILD="$CC"
46 else
47 CC_FOR_BUILD=cc
48 fi
49 fi
50fi
51
52
39# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 53# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
40# (ghazi@noc.rutgers.edu 8/24/94.) 54# (ghazi@noc.rutgers.edu 8/24/94.)
41if (test -f /.attbin/uname) >/dev/null 2>&1 ; then 55if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
@@ -78,7 +92,7 @@ main:
78 ret \$31,(\$26),1 92 ret \$31,(\$26),1
79 .end main 93 .end main
80EOF 94EOF
81 ${CC-cc} $dummy.s -o $dummy 2>/dev/null 95 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
82 if test "$?" = 0 ; then 96 if test "$?" = 0 ; then
83 ./$dummy 97 ./$dummy
84 case "$?" in 98 case "$?" in
@@ -203,6 +217,32 @@ EOF
203 atari*:OpenBSD:*:*) 217 atari*:OpenBSD:*:*)
204 echo m68k-unknown-openbsd${UNAME_RELEASE} 218 echo m68k-unknown-openbsd${UNAME_RELEASE}
205 exit 0 ;; 219 exit 0 ;;
220 # The situation for MiNT is a little confusing. The machine name
221 # can be virtually everything (everything which is not
222 # "atarist" or "atariste" at least should have a processor
223 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
224 # to the lowercase version "mint" (or "freemint"). Finally
225 # the system name "TOS" denotes a system which is actually not
226 # MiNT. But MiNT is downward compatible to TOS, so this should
227 # be no problem.
228 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
229 echo m68k-atari-mint${UNAME_RELEASE}
230 exit 0 ;;
231 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
232 echo m68k-atari-mint${UNAME_RELEASE}
233 exit 0 ;;
234 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
235 echo m68k-atari-mint${UNAME_RELEASE}
236 exit 0 ;;
237 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
238 echo m68k-milan-mint${UNAME_RELEASE}
239 exit 0 ;;
240 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
241 echo m68k-hades-mint${UNAME_RELEASE}
242 exit 0 ;;
243 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
244 echo m68k-unknown-mint${UNAME_RELEASE}
245 exit 0 ;;
206 sun3*:NetBSD:*:*) 246 sun3*:NetBSD:*:*)
207 echo m68k-sun-netbsd${UNAME_RELEASE} 247 echo m68k-sun-netbsd${UNAME_RELEASE}
208 exit 0 ;; 248 exit 0 ;;
@@ -236,7 +276,7 @@ EOF
236 VAX*:ULTRIX*:*:*) 276 VAX*:ULTRIX*:*:*)
237 echo vax-dec-ultrix${UNAME_RELEASE} 277 echo vax-dec-ultrix${UNAME_RELEASE}
238 exit 0 ;; 278 exit 0 ;;
239 2020:CLIX:*:*) 279 2020:CLIX:*:* | 2430:CLIX:*:*)
240 echo clipper-intergraph-clix${UNAME_RELEASE} 280 echo clipper-intergraph-clix${UNAME_RELEASE}
241 exit 0 ;; 281 exit 0 ;;
242 mips:*:*:UMIPS | mips:*:*:RISCos) 282 mips:*:*:UMIPS | mips:*:*:RISCos)
@@ -260,7 +300,7 @@ EOF
260 exit (-1); 300 exit (-1);
261 } 301 }
262EOF 302EOF
263 ${CC-cc} $dummy.c -o $dummy \ 303 $CC_FOR_BUILD $dummy.c -o $dummy \
264 && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 304 && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
265 && rm $dummy.c $dummy && exit 0 305 && rm $dummy.c $dummy && exit 0
266 rm -f $dummy.c $dummy 306 rm -f $dummy.c $dummy
@@ -326,7 +366,7 @@ EOF
326 exit(0); 366 exit(0);
327 } 367 }
328EOF 368EOF
329 ${CC-cc} $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 369 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0
330 rm -f $dummy.c $dummy 370 rm -f $dummy.c $dummy
331 echo rs6000-ibm-aix3.2.5 371 echo rs6000-ibm-aix3.2.5
332 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 372 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
@@ -406,7 +446,7 @@ EOF
406 exit (0); 446 exit (0);
407 } 447 }
408EOF 448EOF
409 (${CC-cc} $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy` 449 ($CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy`
410 rm -f $dummy.c $dummy 450 rm -f $dummy.c $dummy
411 esac 451 esac
412 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 452 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
@@ -438,7 +478,7 @@ EOF
438 exit (0); 478 exit (0);
439 } 479 }
440EOF 480EOF
441 ${CC-cc} $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 481 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0
442 rm -f $dummy.c $dummy 482 rm -f $dummy.c $dummy
443 echo unknown-hitachi-hiuxwe2 483 echo unknown-hitachi-hiuxwe2
444 exit 0 ;; 484 exit 0 ;;
@@ -451,9 +491,6 @@ EOF
451 *9??*:MPE*:*:*) 491 *9??*:MPE*:*:*)
452 echo hppa1.0-hp-mpeix 492 echo hppa1.0-hp-mpeix
453 exit 0 ;; 493 exit 0 ;;
454 *9??*:MPE*:*:*)
455 echo hppa1.0-hp-mpeix
456 exit 0 ;;
457 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 494 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
458 echo hppa1.1-hp-osf 495 echo hppa1.1-hp-osf
459 exit 0 ;; 496 exit 0 ;;
@@ -534,7 +571,7 @@ EOF
534 *:FreeBSD:*:*) 571 *:FreeBSD:*:*)
535 if test -x /usr/bin/objformat; then 572 if test -x /usr/bin/objformat; then
536 if test "elf" = "`/usr/bin/objformat`"; then 573 if test "elf" = "`/usr/bin/objformat`"; then
537 echo ${UNAME_MACHINE}-unknown-freebsdelf`echo${UNAME_RELEASE}|sed -e 's/[-_].*//'` 574 echo ${UNAME_MACHINE}-unknown-freebsdelf`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
538 exit 0 575 exit 0
539 fi 576 fi
540 fi 577 fi
@@ -570,8 +607,9 @@ EOF
570 esac 607 esac
571 608
572 # The BFD linker knows what the default object file format is, so 609 # The BFD linker knows what the default object file format is, so
573 # first see if it will tell us. 610 # first see if it will tell us. cd to the root directory to prevent
574 ld_help_string=`ld --help 2>&1` 611 # problems with other programs or directories called `ld' in the path.
612 ld_help_string=`cd /; ld --help 2>&1`
575 ld_supported_emulations=`echo $ld_help_string \ 613 ld_supported_emulations=`echo $ld_help_string \
576 | sed -ne '/supported emulations:/!d 614 | sed -ne '/supported emulations:/!d
577 s/[ ][ ]*/ /g 615 s/[ ][ ]*/ /g
@@ -606,7 +644,7 @@ EOF
606 .end main 644 .end main
607EOF 645EOF
608 LIBC="" 646 LIBC=""
609 ${CC-cc} $dummy.s -o $dummy 2>/dev/null 647 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
610 if test "$?" = 0 ; then 648 if test "$?" = 0 ; then
611 ./$dummy 649 ./$dummy
612 case "$?" in 650 case "$?" in
@@ -651,7 +689,7 @@ EOF
651 return 0; 689 return 0;
652} 690}
653EOF 691EOF
654 ${CC-cc} $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 692 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
655 rm -f $dummy.c $dummy 693 rm -f $dummy.c $dummy
656 else 694 else
657 # Either a pre-BFD a.out linker (linux-gnuoldld) 695 # Either a pre-BFD a.out linker (linux-gnuoldld)
@@ -694,7 +732,7 @@ EOF
694 return 0; 732 return 0;
695} 733}
696EOF 734EOF
697 ${CC-cc} $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 735 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
698 rm -f $dummy.c $dummy 736 rm -f $dummy.c $dummy
699 fi ;; 737 fi ;;
700# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions 738# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
@@ -958,7 +996,7 @@ main ()
958} 996}
959EOF 997EOF
960 998
961${CC-cc} $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy && exit 0 999$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy && exit 0
962rm -f $dummy.c $dummy 1000rm -f $dummy.c $dummy
963 1001
964# Apollos put the system type in the environment. 1002# Apollos put the system type in the environment.
diff --git a/config.sub b/config.sub
index a5095410a75..692de9b61de 100755
--- a/config.sub
+++ b/config.sub
@@ -151,11 +151,12 @@ case $basic_machine in
151 # Some are omitted here because they have special meanings below. 151 # Some are omitted here because they have special meanings below.
152 tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ 152 tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
153 | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ 153 | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
154 | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 | hppa2.0 \ 154 | 580 | i960 | h8300 \
155 | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \ 155 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w \
156 | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \ 156 | alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \
157 | mips64 | mipsel | mips64el | mips64orion | mips64orionel \ 157 | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \
158 | mipstx39 | mipstx39el \ 158 | 1750a | dsp16xx | pdp11 | mips64 | mipsel | mips64el \
159 | mips64orion | mips64orionel | mipstx39 | mipstx39el \
159 | sparc | sparclet | sparclite | sparc64 | v850) 160 | sparc | sparclet | sparclite | sparc64 | v850)
160 basic_machine=$basic_machine-unknown 161 basic_machine=$basic_machine-unknown
161 ;; 162 ;;
@@ -175,9 +176,11 @@ case $basic_machine in
175 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ 176 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
176 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ 177 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
177 | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \ 178 | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \
178 | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* \ 179 | xmp-* | ymp-* \
179 | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \ 180 | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
180 | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \ 181 | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67] \
182 | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
183 | clipper-* | orion-* \
181 | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ 184 | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
182 | sparc64-* | mips64-* | mipsel-* \ 185 | sparc64-* | mips64-* | mipsel-* \
183 | mips64el-* | mips64orion-* | mips64orionel-* \ 186 | mips64el-* | mips64orion-* | mips64orionel-* \
@@ -628,6 +631,10 @@ case $basic_machine in
628 xps | xps100) 631 xps | xps100)
629 basic_machine=xps100-honeywell 632 basic_machine=xps100-honeywell
630 ;; 633 ;;
634 *mint | *MiNT)
635 basic_machine=m68k-atari
636 os=-mint
637 ;;
631 none) 638 none)
632 basic_machine=none-none 639 basic_machine=none-none
633 os=-none 640 os=-none
@@ -788,6 +795,9 @@ case $os in
788 -xenix) 795 -xenix)
789 os=-xenix 796 os=-xenix
790 ;; 797 ;;
798 -*mint | -*MiNT)
799 os=-mint
800 ;;
791 -none) 801 -none)
792 ;; 802 ;;
793 *) 803 *)
@@ -912,6 +922,9 @@ case $basic_machine in
912 f301-fujitsu) 922 f301-fujitsu)
913 os=-uxpv 923 os=-uxpv
914 ;; 924 ;;
925 *-atari*)
926 os=-mint
927 ;;
915 *) 928 *)
916 os=-none 929 os=-none
917 ;; 930 ;;
@@ -969,6 +982,9 @@ case $basic_machine in
969 -aux*) 982 -aux*)
970 vendor=apple 983 vendor=apple
971 ;; 984 ;;
985 -*mint | -*MiNT)
986 vendor=atari
987 ;;
972 esac 988 esac
973 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 989 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
974 ;; 990 ;;