OLD | NEW |
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, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 | 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, |
5 # Free Software Foundation, Inc. | 5 # Inc. |
6 | 6 |
7 timestamp='2008-01-08' | 7 timestamp='2007-07-22' |
8 | 8 |
9 # This file is free software; you can redistribute it and/or modify it | 9 # This file is free software; you can redistribute it and/or modify it |
10 # under the terms of the GNU General Public License as published by | 10 # under the terms of the GNU General Public License as published by |
11 # the Free Software Foundation; either version 2 of the License, or | 11 # the Free Software Foundation; either version 2 of the License, or |
12 # (at your option) any later version. | 12 # (at your option) any later version. |
13 # | 13 # |
14 # This program is distributed in the hope that it will be useful, but | 14 # This program is distributed in the hope that it will be useful, but |
15 # WITHOUT ANY WARRANTY; without even the implied warranty of | 15 # WITHOUT ANY WARRANTY; without even the implied warranty of |
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
17 # General Public License for more details. | 17 # General Public License for more details. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 -h, --help print this help, then exit | 49 -h, --help print this help, then exit |
50 -t, --time-stamp print date of last modification, then exit | 50 -t, --time-stamp print date of last modification, then exit |
51 -v, --version print version number, then exit | 51 -v, --version print version number, then exit |
52 | 52 |
53 Report bugs and patches to <config-patches@gnu.org>." | 53 Report bugs and patches to <config-patches@gnu.org>." |
54 | 54 |
55 version="\ | 55 version="\ |
56 GNU config.guess ($timestamp) | 56 GNU config.guess ($timestamp) |
57 | 57 |
58 Originally written by Per Bothner. | 58 Originally written by Per Bothner. |
59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, | 59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
2003, 2004, 2005 |
60 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | 60 Free Software Foundation, Inc. |
61 | 61 |
62 This is free software; see the source for copying conditions. There is NO | 62 This is free software; see the source for copying conditions. There is NO |
63 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | 63 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
64 | 64 |
65 help=" | 65 help=" |
66 Try \`$me --help' for more information." | 66 Try \`$me --help' for more information." |
67 | 67 |
68 # Parse command line | 68 # Parse command line |
69 while test $# -gt 0 ; do | 69 while test $# -gt 0 ; do |
70 case $1 in | 70 case $1 in |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 echo "$SYSTEM_NAME" | 525 echo "$SYSTEM_NAME" |
526 else | 526 else |
527 echo rs6000-ibm-aix3.2.5 | 527 echo rs6000-ibm-aix3.2.5 |
528 fi | 528 fi |
529 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then | 529 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then |
530 echo rs6000-ibm-aix3.2.4 | 530 echo rs6000-ibm-aix3.2.4 |
531 else | 531 else |
532 echo rs6000-ibm-aix3.2 | 532 echo rs6000-ibm-aix3.2 |
533 fi | 533 fi |
534 exit ;; | 534 exit ;; |
535 *:AIX:*:[456]) | 535 *:AIX:*:[45]) |
536 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk
'{ print $1 }'` | 536 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk
'{ print $1 }'` |
537 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; t
hen | 537 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; t
hen |
538 IBM_ARCH=rs6000 | 538 IBM_ARCH=rs6000 |
539 else | 539 else |
540 IBM_ARCH=powerpc | 540 IBM_ARCH=powerpc |
541 fi | 541 fi |
542 if [ -x /usr/bin/oslevel ] ; then | 542 if [ -x /usr/bin/oslevel ] ; then |
543 IBM_REV=`/usr/bin/oslevel` | 543 IBM_REV=`/usr/bin/oslevel` |
544 else | 544 else |
545 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | 545 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 echo ${UNAME_MACHINE}-pc-pw32 | 792 echo ${UNAME_MACHINE}-pc-pw32 |
793 exit ;; | 793 exit ;; |
794 *:Interix*:[3456]*) | 794 *:Interix*:[3456]*) |
795 case ${UNAME_MACHINE} in | 795 case ${UNAME_MACHINE} in |
796 x86) | 796 x86) |
797 echo i586-pc-interix${UNAME_RELEASE} | 797 echo i586-pc-interix${UNAME_RELEASE} |
798 exit ;; | 798 exit ;; |
799 EM64T | authenticamd) | 799 EM64T | authenticamd) |
800 echo x86_64-unknown-interix${UNAME_RELEASE} | 800 echo x86_64-unknown-interix${UNAME_RELEASE} |
801 exit ;; | 801 exit ;; |
802 IA64) | |
803 echo ia64-unknown-interix${UNAME_RELEASE} | |
804 exit ;; | |
805 esac ;; | 802 esac ;; |
806 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) | 803 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
807 echo i${UNAME_MACHINE}-pc-mks | 804 echo i${UNAME_MACHINE}-pc-mks |
808 exit ;; | 805 exit ;; |
809 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) | 806 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) |
810 # How do we know it's Interix rather than the generic POSIX subsystem? | 807 # How do we know it's Interix rather than the generic POSIX subsystem? |
811 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we | 808 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we |
812 # UNAME_MACHINE based on the output of uname instead of i386? | 809 # UNAME_MACHINE based on the output of uname instead of i386? |
813 echo i586-pc-interix | 810 echo i586-pc-interix |
814 exit ;; | 811 exit ;; |
(...skipping 14 matching lines...) Expand all Loading... |
829 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNA
ME_RELEASE}|sed -e 's,/.*$,,'` | 826 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNA
ME_RELEASE}|sed -e 's,/.*$,,'` |
830 exit ;; | 827 exit ;; |
831 *:GNU/*:*:*) | 828 *:GNU/*:*:*) |
832 # other systems with GNU libc and userland | 829 # other systems with GNU libc and userland |
833 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,'
| tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu | 830 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,'
| tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu |
834 exit ;; | 831 exit ;; |
835 i*86:Minix:*:*) | 832 i*86:Minix:*:*) |
836 echo ${UNAME_MACHINE}-pc-minix | 833 echo ${UNAME_MACHINE}-pc-minix |
837 exit ;; | 834 exit ;; |
838 arm*:Linux:*:*) | 835 arm*:Linux:*:*) |
839 » eval $set_cc_for_build | 836 » echo ${UNAME_MACHINE}-unknown-linux-gnu |
840 » if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | |
841 » | grep -q __ARM_EABI__ | |
842 » then | |
843 » echo ${UNAME_MACHINE}-unknown-linux-gnu | |
844 » else | |
845 » echo ${UNAME_MACHINE}-unknown-linux-gnueabi | |
846 » fi | |
847 exit ;; | 837 exit ;; |
848 avr32*:Linux:*:*) | 838 avr32*:Linux:*:*) |
849 echo ${UNAME_MACHINE}-unknown-linux-gnu | 839 echo ${UNAME_MACHINE}-unknown-linux-gnu |
850 exit ;; | 840 exit ;; |
851 cris:Linux:*:*) | 841 cris:Linux:*:*) |
852 echo cris-axis-linux-gnu | 842 echo cris-axis-linux-gnu |
853 exit ;; | 843 exit ;; |
854 crisv32:Linux:*:*) | 844 crisv32:Linux:*:*) |
855 echo crisv32-axis-linux-gnu | 845 echo crisv32-axis-linux-gnu |
856 exit ;; | 846 exit ;; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
957 exit ;; | 947 exit ;; |
958 sparc:Linux:*:* | sparc64:Linux:*:*) | 948 sparc:Linux:*:* | sparc64:Linux:*:*) |
959 echo ${UNAME_MACHINE}-unknown-linux-gnu | 949 echo ${UNAME_MACHINE}-unknown-linux-gnu |
960 exit ;; | 950 exit ;; |
961 vax:Linux:*:*) | 951 vax:Linux:*:*) |
962 echo ${UNAME_MACHINE}-dec-linux-gnu | 952 echo ${UNAME_MACHINE}-dec-linux-gnu |
963 exit ;; | 953 exit ;; |
964 x86_64:Linux:*:*) | 954 x86_64:Linux:*:*) |
965 echo x86_64-unknown-linux-gnu | 955 echo x86_64-unknown-linux-gnu |
966 exit ;; | 956 exit ;; |
967 xtensa*:Linux:*:*) | 957 xtensa:Linux:*:*) |
968 » echo ${UNAME_MACHINE}-unknown-linux-gnu | 958 » echo xtensa-unknown-linux-gnu |
969 exit ;; | 959 exit ;; |
970 i*86:Linux:*:*) | 960 i*86:Linux:*:*) |
971 # The BFD linker knows what the default object file format is, so | 961 # The BFD linker knows what the default object file format is, so |
972 # first see if it will tell us. cd to the root directory to prevent | 962 # first see if it will tell us. cd to the root directory to prevent |
973 # problems with other programs or directories called `ld' in the path. | 963 # problems with other programs or directories called `ld' in the path. |
974 # Set LC_ALL=C to ensure ld outputs messages in English. | 964 # Set LC_ALL=C to ensure ld outputs messages in English. |
975 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | 965 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ |
976 | sed -ne '/supported targets:/!d | 966 | sed -ne '/supported targets:/!d |
977 s/[ ][ ]*/ /g | 967 s/[ ][ ]*/ /g |
978 s/.*supported targets: *// | 968 s/.*supported targets: *// |
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1517 EOF | 1507 EOF |
1518 | 1508 |
1519 exit 1 | 1509 exit 1 |
1520 | 1510 |
1521 # Local variables: | 1511 # Local variables: |
1522 # eval: (add-hook 'write-file-hooks 'time-stamp) | 1512 # eval: (add-hook 'write-file-hooks 'time-stamp) |
1523 # time-stamp-start: "timestamp='" | 1513 # time-stamp-start: "timestamp='" |
1524 # time-stamp-format: "%:y-%02m-%02d" | 1514 # time-stamp-format: "%:y-%02m-%02d" |
1525 # time-stamp-end: "'" | 1515 # time-stamp-end: "'" |
1526 # End: | 1516 # End: |
OLD | NEW |