aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Elliston1999-05-17 06:32:15 +0000
committerBen Elliston1999-05-17 06:32:15 +0000
commitc3b4b83fad62ee1a98085d497e70aaea363bd65e (patch)
treed6605331fc2b190e18beee7ca99bf2a265c34158
parent94c34f7a7412723a1d1049e11a9e650a31e1173b (diff)
downloademacs-c3b4b83fad62ee1a98085d497e70aaea363bd65e.tar.gz
emacs-c3b4b83fad62ee1a98085d497e70aaea363bd65e.zip
Merge recent additions from autoconf source tree.
(synchronise with EGCS source tree, as well).
-rwxr-xr-xconfig.guess87
1 files changed, 70 insertions, 17 deletions
diff --git a/config.guess b/config.guess
index a1b76ce2f4c..0715de7a1fb 100755
--- a/config.guess
+++ b/config.guess
@@ -1,6 +1,7 @@
1#! /bin/sh 1#! /bin/sh
2# Attempt to guess a canonical system name. 2# Attempt to guess a canonical system name.
3# Copyright (C) 1992, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc. 3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999
4# Free Software Foundation, Inc.
4# 5#
5# This file is free software; you can redistribute it and/or modify it 6# This file is free software; you can redistribute it and/or modify it
6# under the terms of the GNU General Public License as published by 7# under the terms of the GNU General Public License as published by
@@ -114,7 +115,13 @@ EOF
114 esac 115 esac
115 fi 116 fi
116 rm -f $dummy.s $dummy 117 rm -f $dummy.s $dummy
117 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]` 118 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
119 exit 0 ;;
120 Alpha\ *:Windows_NT*:*)
121 # How do we know it's Interix rather than the generic POSIX subsystem?
122 # Should we change UNAME_MACHINE based on the output of uname instead
123 # of the specific Alpha model?
124 echo alpha-pc-interix
118 exit 0 ;; 125 exit 0 ;;
119 21064:Windows_NT:50:3) 126 21064:Windows_NT:50:3)
120 echo alpha-dec-winnt3.5 127 echo alpha-dec-winnt3.5
@@ -158,7 +165,7 @@ EOF
158 SR2?01:HI-UX/MPP:*:*) 165 SR2?01:HI-UX/MPP:*:*)
159 echo hppa1.1-hitachi-hiuxmpp 166 echo hppa1.1-hitachi-hiuxmpp
160 exit 0;; 167 exit 0;;
161 Pyramid*:OSx*:*:*|MIS*:OSx*:*:*|MIS*:SMP_DC-OSx*:*:*) 168 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
162 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 169 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
163 if test "`(/bin/universe) 2>/dev/null`" = att ; then 170 if test "`(/bin/universe) 2>/dev/null`" = att ; then
164 echo pyramid-pyramid-sysv3 171 echo pyramid-pyramid-sysv3
@@ -414,7 +421,7 @@ EOF
414 case "${UNAME_MACHINE}" in 421 case "${UNAME_MACHINE}" in
415 9000/31? ) HP_ARCH=m68000 ;; 422 9000/31? ) HP_ARCH=m68000 ;;
416 9000/[34]?? ) HP_ARCH=m68k ;; 423 9000/[34]?? ) HP_ARCH=m68k ;;
417 9000/6?? | 9000/7?? | 9000/80[024] | 9000/8?[136790] | 9000/892 ) 424 9000/[678][0-9][0-9])
418 sed 's/^ //' << EOF >$dummy.c 425 sed 's/^ //' << EOF >$dummy.c
419 #include <stdlib.h> 426 #include <stdlib.h>
420 #include <unistd.h> 427 #include <unistd.h>
@@ -488,7 +495,7 @@ EOF
488 9000/8??:4.3bsd:*:*) 495 9000/8??:4.3bsd:*:*)
489 echo hppa1.0-hp-bsd 496 echo hppa1.0-hp-bsd
490 exit 0 ;; 497 exit 0 ;;
491 *9??*:MPE*:*:*) 498 *9??*:MPE/iX:*:*)
492 echo hppa1.0-hp-mpeix 499 echo hppa1.0-hp-mpeix
493 exit 0 ;; 500 exit 0 ;;
494 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 501 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
@@ -507,6 +514,9 @@ EOF
507 parisc*:Lites*:*:*) 514 parisc*:Lites*:*:*)
508 echo hppa1.1-hp-lites 515 echo hppa1.1-hp-lites
509 exit 0 ;; 516 exit 0 ;;
517 hppa*:OpenBSD:*:*)
518 echo hppa-unknown-openbsd
519 exit 0 ;;
510 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 520 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
511 echo c1-convex-bsd 521 echo c1-convex-bsd
512 exit 0 ;; 522 exit 0 ;;
@@ -546,7 +556,7 @@ EOF
546 echo cray2-cray-unicos 556 echo cray2-cray-unicos
547 exit 0 ;; 557 exit 0 ;;
548 F300:UNIX_System_V:*:*) 558 F300:UNIX_System_V:*:*)
549 FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'` 559 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
550 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 560 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
551 echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 561 echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
552 exit 0 ;; 562 exit 0 ;;
@@ -559,12 +569,12 @@ EOF
559 hp300:OpenBSD:*:*) 569 hp300:OpenBSD:*:*)
560 echo m68k-unknown-openbsd${UNAME_RELEASE} 570 echo m68k-unknown-openbsd${UNAME_RELEASE}
561 exit 0 ;; 571 exit 0 ;;
562 sparc*:BSD/OS:*:*)
563 echo sparc-unknown-bsdi${UNAME_RELEASE}
564 exit 0 ;;
565 i?86:BSD/386:*:* | i?86:BSD/OS:*:*) 572 i?86:BSD/386:*:* | i?86:BSD/OS:*:*)
566 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 573 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
567 exit 0 ;; 574 exit 0 ;;
575 sparc*:BSD/OS:*:*)
576 echo sparc-unknown-bsdi${UNAME_RELEASE}
577 exit 0 ;;
568 *:BSD/OS:*:*) 578 *:BSD/OS:*:*)
569 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 579 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
570 exit 0 ;; 580 exit 0 ;;
@@ -589,6 +599,15 @@ EOF
589 i*:MINGW*:*) 599 i*:MINGW*:*)
590 echo ${UNAME_MACHINE}-pc-mingw32 600 echo ${UNAME_MACHINE}-pc-mingw32
591 exit 0 ;; 601 exit 0 ;;
602 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
603 # How do we know it's Interix rather than the generic POSIX subsystem?
604 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
605 # UNAME_MACHINE based on the output of uname instead of i386?
606 echo i386-pc-interix
607 exit 0 ;;
608 i*:UWIN*:*)
609 echo ${UNAME_MACHINE}-pc-uwin
610 exit 0 ;;
592 p*:CYGWIN*:*) 611 p*:CYGWIN*:*)
593 echo powerpcle-unknown-cygwin 612 echo powerpcle-unknown-cygwin
594 exit 0 ;; 613 exit 0 ;;
@@ -622,7 +641,36 @@ EOF
622 sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; 641 sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
623 armlinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; 642 armlinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
624 m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; 643 m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
625 elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;; 644 elf32ppc)
645 # Determine Lib Version
646 cat >dummy.c <<EOF
647#include <features.h>
648#if defined(__GLIBC__)
649extern char __libc_version[];
650extern char __libc_release[];
651#endif
652main(argc, argv)
653 int argc;
654 char *argv[];
655{
656#if defined(__GLIBC__)
657 printf("%s %s\n", __libc_version, __libc_release);
658#else
659 printf("unkown\n");
660#endif
661 return 0;
662}
663EOF
664 LIBC=""
665 ${CC-cc} dummy.c -o dummy 2>/dev/null
666 if test "$?" = 0 ; then
667 ./dummy | grep 1\.99 > /dev/null
668 if test "$?" = 0 ; then
669 LIBC="libc1"
670 fi
671 fi
672 rm -f dummy.c dummy
673 echo powerpc-unknown-linux-gnu${LIBC} ; exit 0 ;;
626 esac 674 esac
627 675
628 if test "${UNAME_MACHINE}" = "alpha" ; then 676 if test "${UNAME_MACHINE}" = "alpha" ; then
@@ -755,6 +803,14 @@ EOF
755 echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} 803 echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
756 fi 804 fi
757 exit 0 ;; 805 exit 0 ;;
806 i?86:*:5:7*)
807 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
808 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
809 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null && UNAME_MACHINE=i586
810 (/bin/uname -X|egrep '^Machine.*Pent.*II' >/dev/null && UNAME_MACHINE=i686
811 (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) && UNAME_MACHINE=i585
812 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}${UNAME_VERSION}-sysv${UNAME_RELEASE}
813 exit 0 ;;
758 i?86:*:3.2:*) 814 i?86:*:3.2:*)
759 if test -f /usr/options/cb.name; then 815 if test -f /usr/options/cb.name; then
760 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 816 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
@@ -764,18 +820,15 @@ EOF
764 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 820 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
765 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ 821 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
766 && UNAME_MACHINE=i586 822 && UNAME_MACHINE=i586
823 (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
824 && UNAME_MACHINE=i686
825 (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
826 && UNAME_MACHINE=i686
767 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 827 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
768 else 828 else
769 echo ${UNAME_MACHINE}-pc-sysv32 829 echo ${UNAME_MACHINE}-pc-sysv32
770 fi 830 fi
771 exit 0 ;; 831 exit 0 ;;
772 i?86:UnixWare:*:*)
773 if /bin/uname -X 2>/dev/null >/dev/null ; then
774 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
775 && UNAME_MACHINE=i586
776 fi
777 echo ${UNAME_MACHINE}-unixware-${UNAME_RELEASE}-${UNAME_VERSION}
778 exit 0 ;;
779 pc:*:*:*) 832 pc:*:*:*)
780 # uname -m prints for DJGPP always 'pc', but it prints nothing about 833 # uname -m prints for DJGPP always 'pc', but it prints nothing about
781 # the processor, so we play safe by assuming i386. 834 # the processor, so we play safe by assuming i386.