annotate config.guess @ 1899:ab9c5467970d

Merge pull request #152 from HansH111/tracelevel2
author Matt Johnston <matt@ucc.asn.au>
date Wed, 23 Mar 2022 21:55:33 +0800
parents b63f1e803f70
children 315dbcef7293
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1 #! /bin/sh
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
2 # Attempt to guess a canonical system name.
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
3 # Copyright 1992-2021 Free Software Foundation, Inc.
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
4
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
5 timestamp='2021-01-25'
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
6
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
7 # This file is free software; you can redistribute it and/or modify it
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
8 # under the terms of the GNU General Public License as published by
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
9 # the Free Software Foundation; either version 3 of the License, or
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
10 # (at your option) any later version.
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
11 #
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
12 # This program is distributed in the hope that it will be useful, but
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
15 # General Public License for more details.
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
16 #
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
17 # You should have received a copy of the GNU General Public License
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
18 # along with this program; if not, see <https://www.gnu.org/licenses/>.
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
19 #
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
20 # As a special exception to the GNU General Public License, if you
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
21 # distribute this file as part of a program that contains a
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
22 # configuration script generated by Autoconf, you may include it under
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
23 # the same distribution terms that you use for the rest of that
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
24 # program. This Exception is an additional permission under section 7
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
25 # of the GNU General Public License, version 3 ("GPLv3").
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
26 #
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
27 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
28 #
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
29 # You can get the latest version of this script from:
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
30 # https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
31 #
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
32 # Please send patches to <[email protected]>.
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
33
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
34
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
35 me=$(echo "$0" | sed -e 's,.*/,,')
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
36
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
37 usage="\
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
38 Usage: $0 [OPTION]
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
39
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
40 Output the configuration name of the system \`$me' is run on.
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
41
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
42 Options:
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
43 -h, --help print this help, then exit
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
44 -t, --time-stamp print date of last modification, then exit
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
45 -v, --version print version number, then exit
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
46
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
47 Report bugs and patches to <[email protected]>."
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
48
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
49 version="\
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
50 GNU config.guess ($timestamp)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
51
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
52 Originally written by Per Bothner.
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
53 Copyright 1992-2021 Free Software Foundation, Inc.
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
54
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
55 This is free software; see the source for copying conditions. There is NO
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
56 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
57
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
58 help="
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
59 Try \`$me --help' for more information."
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
60
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
61 # Parse command line
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
62 while test $# -gt 0 ; do
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
63 case $1 in
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
64 --time-stamp | --time* | -t )
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
65 echo "$timestamp" ; exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
66 --version | -v )
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
67 echo "$version" ; exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
68 --help | --h* | -h )
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
69 echo "$usage"; exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
70 -- ) # Stop option processing
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
71 shift; break ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
72 - ) # Use stdin as input.
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
73 break ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
74 -* )
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
75 echo "$me: invalid option $1$help" >&2
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
76 exit 1 ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
77 * )
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
78 break ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
79 esac
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
80 done
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
81
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
82 if test $# != 0; then
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
83 echo "$me: too many arguments$help" >&2
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
84 exit 1
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
85 fi
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
86
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
87 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
88 # compiler to aid in system detection is discouraged as it requires
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
89 # temporary files to be created and, as you can see below, it is a
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
90 # headache to deal with in a portable fashion.
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
91
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
92 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
93 # use `HOST_CC' if defined, but it is deprecated.
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
94
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
95 # Portable tmp directory creation inspired by the Autoconf team.
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
96
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
97 tmp=
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
98 # shellcheck disable=SC2172
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
99 trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
100
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
101 set_cc_for_build() {
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
102 # prevent multiple calls if $tmp is already set
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
103 test "$tmp" && return 0
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
104 : "${TMPDIR=/tmp}"
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
105 # shellcheck disable=SC2039
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
106 { tmp=$( (umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null) && test -n "$tmp" && test -d "$tmp" ; } ||
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
107 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } ||
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
108 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } ||
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
109 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; }
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
110 dummy=$tmp/dummy
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
111 case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
112 ,,) echo "int x;" > "$dummy.c"
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
113 for driver in cc gcc c89 c99 ; do
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
114 if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
115 CC_FOR_BUILD="$driver"
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
116 break
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
117 fi
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
118 done
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
119 if test x"$CC_FOR_BUILD" = x ; then
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
120 CC_FOR_BUILD=no_compiler_found
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
121 fi
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
122 ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
123 ,,*) CC_FOR_BUILD=$CC ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
124 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
125 esac
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
126 }
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
127
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
128 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
129 # ([email protected] 1994-08-24)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
130 if test -f /.attbin/uname ; then
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
131 PATH=$PATH:/.attbin ; export PATH
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
132 fi
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
133
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
134 UNAME_MACHINE=$( (uname -m) 2>/dev/null) || UNAME_MACHINE=unknown
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
135 UNAME_RELEASE=$( (uname -r) 2>/dev/null) || UNAME_RELEASE=unknown
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
136 UNAME_SYSTEM=$( (uname -s) 2>/dev/null) || UNAME_SYSTEM=unknown
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
137 UNAME_VERSION=$( (uname -v) 2>/dev/null) || UNAME_VERSION=unknown
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
138
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
139 case "$UNAME_SYSTEM" in
859
4891acd7ab4f another new config.guess 2013-06-10
Matt Johnston <matt@ucc.asn.au>
parents: 792
diff changeset
140 Linux|GNU|GNU/*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
141 LIBC=unknown
859
4891acd7ab4f another new config.guess 2013-06-10
Matt Johnston <matt@ucc.asn.au>
parents: 792
diff changeset
142
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
143 set_cc_for_build
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
144 cat <<-EOF > "$dummy.c"
859
4891acd7ab4f another new config.guess 2013-06-10
Matt Johnston <matt@ucc.asn.au>
parents: 792
diff changeset
145 #include <features.h>
4891acd7ab4f another new config.guess 2013-06-10
Matt Johnston <matt@ucc.asn.au>
parents: 792
diff changeset
146 #if defined(__UCLIBC__)
4891acd7ab4f another new config.guess 2013-06-10
Matt Johnston <matt@ucc.asn.au>
parents: 792
diff changeset
147 LIBC=uclibc
4891acd7ab4f another new config.guess 2013-06-10
Matt Johnston <matt@ucc.asn.au>
parents: 792
diff changeset
148 #elif defined(__dietlibc__)
4891acd7ab4f another new config.guess 2013-06-10
Matt Johnston <matt@ucc.asn.au>
parents: 792
diff changeset
149 LIBC=dietlibc
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
150 #elif defined(__GLIBC__)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
151 LIBC=gnu
859
4891acd7ab4f another new config.guess 2013-06-10
Matt Johnston <matt@ucc.asn.au>
parents: 792
diff changeset
152 #else
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
153 #include <stdarg.h>
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
154 /* First heuristic to detect musl libc. */
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
155 #ifdef __DEFINED_va_list
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
156 LIBC=musl
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
157 #endif
859
4891acd7ab4f another new config.guess 2013-06-10
Matt Johnston <matt@ucc.asn.au>
parents: 792
diff changeset
158 #endif
4891acd7ab4f another new config.guess 2013-06-10
Matt Johnston <matt@ucc.asn.au>
parents: 792
diff changeset
159 EOF
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
160 eval "$($CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g')"
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
161
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
162 # Second heuristic to detect musl libc.
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
163 if [ "$LIBC" = unknown ] &&
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
164 command -v ldd >/dev/null &&
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
165 ldd --version 2>&1 | grep -q ^musl; then
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
166 LIBC=musl
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
167 fi
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
168
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
169 # If the system lacks a compiler, then just pick glibc.
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
170 # We could probably try harder.
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
171 if [ "$LIBC" = unknown ]; then
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
172 LIBC=gnu
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
173 fi
859
4891acd7ab4f another new config.guess 2013-06-10
Matt Johnston <matt@ucc.asn.au>
parents: 792
diff changeset
174 ;;
4891acd7ab4f another new config.guess 2013-06-10
Matt Johnston <matt@ucc.asn.au>
parents: 792
diff changeset
175 esac
4891acd7ab4f another new config.guess 2013-06-10
Matt Johnston <matt@ucc.asn.au>
parents: 792
diff changeset
176
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
177 # Note: order is significant - the case branches are not exclusive.
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
178
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
179 case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
180 *:NetBSD:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
181 # NetBSD (nbsd) targets should (where applicable) match one or
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
182 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
183 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
184 # switched to ELF, *-*-netbsd* would select the old
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
185 # object file format. This provides both forward
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
186 # compatibility and a consistent mechanism for selecting the
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
187 # object file format.
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
188 #
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
189 # Note: NetBSD doesn't particularly care about the vendor
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
190 # portion of the name. We always set it to "unknown".
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
191 UNAME_MACHINE_ARCH=$( (uname -p 2>/dev/null || \
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
192 /sbin/sysctl -n hw.machine_arch 2>/dev/null || \
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
193 /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
194 echo unknown))
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
195 case "$UNAME_MACHINE_ARCH" in
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
196 aarch64eb) machine=aarch64_be-unknown ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
197 armeb) machine=armeb-unknown ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
198 arm*) machine=arm-unknown ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
199 sh3el) machine=shl-unknown ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
200 sh3eb) machine=sh-unknown ;;
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
201 sh5el) machine=sh5le-unknown ;;
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
202 earmv*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
203 arch=$(echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,')
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
204 endian=$(echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p')
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
205 machine="${arch}${endian}"-unknown
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
206 ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
207 *) machine="$UNAME_MACHINE_ARCH"-unknown ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
208 esac
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
209 # The Operating System including object format, if it has switched
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
210 # to ELF recently (or will in the future) and ABI.
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
211 case "$UNAME_MACHINE_ARCH" in
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
212 earm*)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
213 os=netbsdelf
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
214 ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
215 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
216 set_cc_for_build
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
217 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
218 | grep -q __ELF__
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
219 then
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
220 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
221 # Return netbsd for either. FIX?
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
222 os=netbsd
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
223 else
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
224 os=netbsdelf
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
225 fi
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
226 ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
227 *)
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
228 os=netbsd
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
229 ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
230 esac
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
231 # Determine ABI tags.
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
232 case "$UNAME_MACHINE_ARCH" in
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
233 earm*)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
234 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
235 abi=$(echo "$UNAME_MACHINE_ARCH" | sed -e "$expr")
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
236 ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
237 esac
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
238 # The OS release
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
239 # Debian GNU/NetBSD machines have a different userland, and
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
240 # thus, need a distinct triplet. However, they do not need
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
241 # kernel version information, so it can be replaced with a
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
242 # suitable tag, in the style of linux-gnu.
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
243 case "$UNAME_VERSION" in
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
244 Debian*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
245 release='-gnu'
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
246 ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
247 *)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
248 release=$(echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2)
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
249 ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
250 esac
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
251 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
252 # contains redundant information, the shorter form:
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
253 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
254 echo "$machine-${os}${release}${abi-}"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
255 exit ;;
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
256 *:Bitrig:*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
257 UNAME_MACHINE_ARCH=$(arch | sed 's/Bitrig.//')
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
258 echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
259 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
260 *:OpenBSD:*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
261 UNAME_MACHINE_ARCH=$(arch | sed 's/OpenBSD.//')
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
262 echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
263 exit ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
264 *:LibertyBSD:*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
265 UNAME_MACHINE_ARCH=$(arch | sed 's/^.*BSD\.//')
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
266 echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
267 exit ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
268 *:MidnightBSD:*:*)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
269 echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
270 exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
271 *:ekkoBSD:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
272 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
273 exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
274 *:SolidBSD:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
275 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
276 exit ;;
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
277 *:OS108:*:*)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
278 echo "$UNAME_MACHINE"-unknown-os108_"$UNAME_RELEASE"
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
279 exit ;;
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
280 macppc:MirBSD:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
281 echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
282 exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
283 *:MirBSD:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
284 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
285 exit ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
286 *:Sortix:*:*)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
287 echo "$UNAME_MACHINE"-unknown-sortix
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
288 exit ;;
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
289 *:Twizzler:*:*)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
290 echo "$UNAME_MACHINE"-unknown-twizzler
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
291 exit ;;
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
292 *:Redox:*:*)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
293 echo "$UNAME_MACHINE"-unknown-redox
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
294 exit ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
295 mips:OSF1:*.*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
296 echo mips-dec-osf1
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
297 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
298 alpha:OSF1:*:*)
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
299 case $UNAME_RELEASE in
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
300 *4.0)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
301 UNAME_RELEASE=$(/usr/sbin/sizer -v | awk '{print $3}')
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
302 ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
303 *5.*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
304 UNAME_RELEASE=$(/usr/sbin/sizer -v | awk '{print $4}')
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
305 ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
306 esac
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
307 # According to Compaq, /usr/sbin/psrinfo has been available on
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
308 # OSF/1 and Tru64 systems produced since 1995. I hope that
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
309 # covers most systems running today. This code pipes the CPU
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
310 # types through head -n 1, so we only detect the type of CPU 0.
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
311 ALPHA_CPU_TYPE=$(/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1)
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
312 case "$ALPHA_CPU_TYPE" in
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
313 "EV4 (21064)")
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
314 UNAME_MACHINE=alpha ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
315 "EV4.5 (21064)")
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
316 UNAME_MACHINE=alpha ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
317 "LCA4 (21066/21068)")
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
318 UNAME_MACHINE=alpha ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
319 "EV5 (21164)")
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
320 UNAME_MACHINE=alphaev5 ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
321 "EV5.6 (21164A)")
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
322 UNAME_MACHINE=alphaev56 ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
323 "EV5.6 (21164PC)")
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
324 UNAME_MACHINE=alphapca56 ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
325 "EV5.7 (21164PC)")
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
326 UNAME_MACHINE=alphapca57 ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
327 "EV6 (21264)")
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
328 UNAME_MACHINE=alphaev6 ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
329 "EV6.7 (21264A)")
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
330 UNAME_MACHINE=alphaev67 ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
331 "EV6.8CB (21264C)")
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
332 UNAME_MACHINE=alphaev68 ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
333 "EV6.8AL (21264B)")
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
334 UNAME_MACHINE=alphaev68 ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
335 "EV6.8CX (21264D)")
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
336 UNAME_MACHINE=alphaev68 ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
337 "EV6.9A (21264/EV69A)")
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
338 UNAME_MACHINE=alphaev69 ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
339 "EV7 (21364)")
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
340 UNAME_MACHINE=alphaev7 ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
341 "EV7.9 (21364A)")
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
342 UNAME_MACHINE=alphaev79 ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
343 esac
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
344 # A Pn.n version is a patched version.
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
345 # A Vn.n version is a released version.
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
346 # A Tn.n version is a released field test version.
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
347 # A Xn.n version is an unreleased experimental baselevel.
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
348 # 1.2 uses "1.2" for uname -r.
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
349 echo "$UNAME_MACHINE"-dec-osf"$(echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz)"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
350 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
351 exitcode=$?
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
352 trap '' 0
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
353 exit $exitcode ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
354 Amiga*:UNIX_System_V:4.0:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
355 echo m68k-unknown-sysv4
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
356 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
357 *:[Aa]miga[Oo][Ss]:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
358 echo "$UNAME_MACHINE"-unknown-amigaos
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
359 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
360 *:[Mm]orph[Oo][Ss]:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
361 echo "$UNAME_MACHINE"-unknown-morphos
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
362 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
363 *:OS/390:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
364 echo i370-ibm-openedition
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
365 exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
366 *:z/VM:*:*)
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
367 echo s390-ibm-zvmoe
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
368 exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
369 *:OS400:*:*)
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
370 echo powerpc-ibm-os400
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
371 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
372 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
373 echo arm-acorn-riscix"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
374 exit ;;
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
375 arm*:riscos:*:*|arm*:RISCOS:*:*)
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
376 echo arm-unknown-riscos
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
377 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
378 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
379 echo hppa1.1-hitachi-hiuxmpp
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
380 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
381 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
382 # [email protected] (Earle F. Ake) contributed MIS and NILE.
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
383 if test "$( (/bin/universe) 2>/dev/null)" = att ; then
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
384 echo pyramid-pyramid-sysv3
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
385 else
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
386 echo pyramid-pyramid-bsd
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
387 fi
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
388 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
389 NILE*:*:*:dcosx)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
390 echo pyramid-pyramid-svr4
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
391 exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
392 DRS?6000:unix:4.0:6*)
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
393 echo sparc-icl-nx6
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
394 exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
395 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
396 case $(/usr/bin/uname -p) in
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
397 sparc) echo sparc-icl-nx7; exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
398 esac ;;
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
399 s390x:SunOS:*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
400 echo "$UNAME_MACHINE"-ibm-solaris2"$(echo "$UNAME_RELEASE" | sed -e 's/[^.]*//')"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
401 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
402 sun4H:SunOS:5.*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
403 echo sparc-hal-solaris2"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
404 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
405 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
406 echo sparc-sun-solaris2"$(echo "$UNAME_RELEASE" | sed -e 's/[^.]*//')"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
407 exit ;;
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
408 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
409 echo i386-pc-auroraux"$UNAME_RELEASE"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
410 exit ;;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
411 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
412 set_cc_for_build
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
413 SUN_ARCH=i386
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
414 # If there is a compiler, see if it is configured for 64-bit objects.
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
415 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
416 # This test works for both compilers.
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
417 if test "$CC_FOR_BUILD" != no_compiler_found; then
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
418 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
419 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
420 grep IS_64BIT_ARCH >/dev/null
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
421 then
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
422 SUN_ARCH=x86_64
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
423 fi
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
424 fi
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
425 echo "$SUN_ARCH"-pc-solaris2"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
426 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
427 sun4*:SunOS:6*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
428 # According to config.sub, this is the proper way to canonicalize
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
429 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
430 # it's likely to be more like Solaris than SunOS4.
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
431 echo sparc-sun-solaris3"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
432 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
433 sun4*:SunOS:*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
434 case "$(/usr/bin/arch -k)" in
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
435 Series*|S4*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
436 UNAME_RELEASE=$(uname -v)
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
437 ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
438 esac
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
439 # Japanese Language versions have a version number like `4.1.3-JL'.
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
440 echo sparc-sun-sunos"$(echo "$UNAME_RELEASE"|sed -e 's/-/_/')"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
441 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
442 sun3*:SunOS:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
443 echo m68k-sun-sunos"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
444 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
445 sun*:*:4.2BSD:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
446 UNAME_RELEASE=$( (sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
447 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
448 case "$(/bin/arch)" in
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
449 sun3)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
450 echo m68k-sun-sunos"$UNAME_RELEASE"
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
451 ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
452 sun4)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
453 echo sparc-sun-sunos"$UNAME_RELEASE"
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
454 ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
455 esac
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
456 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
457 aushp:SunOS:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
458 echo sparc-auspex-sunos"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
459 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
460 # The situation for MiNT is a little confusing. The machine name
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
461 # can be virtually everything (everything which is not
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
462 # "atarist" or "atariste" at least should have a processor
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
463 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
464 # to the lowercase version "mint" (or "freemint"). Finally
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
465 # the system name "TOS" denotes a system which is actually not
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
466 # MiNT. But MiNT is downward compatible to TOS, so this should
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
467 # be no problem.
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
468 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
469 echo m68k-atari-mint"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
470 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
471 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
472 echo m68k-atari-mint"$UNAME_RELEASE"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
473 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
474 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
475 echo m68k-atari-mint"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
476 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
477 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
478 echo m68k-milan-mint"$UNAME_RELEASE"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
479 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
480 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
481 echo m68k-hades-mint"$UNAME_RELEASE"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
482 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
483 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
484 echo m68k-unknown-mint"$UNAME_RELEASE"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
485 exit ;;
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
486 m68k:machten:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
487 echo m68k-apple-machten"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
488 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
489 powerpc:machten:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
490 echo powerpc-apple-machten"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
491 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
492 RISC*:Mach:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
493 echo mips-dec-mach_bsd4.3
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
494 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
495 RISC*:ULTRIX:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
496 echo mips-dec-ultrix"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
497 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
498 VAX*:ULTRIX*:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
499 echo vax-dec-ultrix"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
500 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
501 2020:CLIX:*:* | 2430:CLIX:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
502 echo clipper-intergraph-clix"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
503 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
504 mips:*:*:UMIPS | mips:*:*:RISCos)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
505 set_cc_for_build
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
506 sed 's/^ //' << EOF > "$dummy.c"
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
507 #ifdef __cplusplus
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
508 #include <stdio.h> /* for printf() prototype */
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
509 int main (int argc, char *argv[]) {
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
510 #else
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
511 int main (argc, argv) int argc; char *argv[]; {
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
512 #endif
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
513 #if defined (host_mips) && defined (MIPSEB)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
514 #if defined (SYSTYPE_SYSV)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
515 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
516 #endif
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
517 #if defined (SYSTYPE_SVR4)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
518 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
519 #endif
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
520 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
521 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
522 #endif
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
523 #endif
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
524 exit (-1);
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
525 }
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
526 EOF
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
527 $CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
528 dummyarg=$(echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p') &&
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
529 SYSTEM_NAME=$("$dummy" "$dummyarg") &&
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
530 { echo "$SYSTEM_NAME"; exit; }
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
531 echo mips-mips-riscos"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
532 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
533 Motorola:PowerMAX_OS:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
534 echo powerpc-motorola-powermax
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
535 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
536 Motorola:*:4.3:PL8-*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
537 echo powerpc-harris-powermax
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
538 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
539 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
540 echo powerpc-harris-powermax
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
541 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
542 Night_Hawk:Power_UNIX:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
543 echo powerpc-harris-powerunix
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
544 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
545 m88k:CX/UX:7*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
546 echo m88k-harris-cxux7
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
547 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
548 m88k:*:4*:R4*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
549 echo m88k-motorola-sysv4
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
550 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
551 m88k:*:3*:R3*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
552 echo m88k-motorola-sysv3
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
553 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
554 AViiON:dgux:*:*)
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
555 # DG/UX returns AViiON for all architectures
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
556 UNAME_PROCESSOR=$(/usr/bin/uname -p)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
557 if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
558 then
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
559 if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
560 test "$TARGET_BINARY_INTERFACE"x = x
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
561 then
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
562 echo m88k-dg-dgux"$UNAME_RELEASE"
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
563 else
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
564 echo m88k-dg-dguxbcs"$UNAME_RELEASE"
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
565 fi
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
566 else
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
567 echo i586-dg-dgux"$UNAME_RELEASE"
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
568 fi
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
569 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
570 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
571 echo m88k-dolphin-sysv3
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
572 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
573 M88*:*:R3*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
574 # Delta 88k system running SVR3
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
575 echo m88k-motorola-sysv3
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
576 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
577 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
578 echo m88k-tektronix-sysv3
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
579 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
580 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
581 echo m68k-tektronix-bsd
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
582 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
583 *:IRIX*:*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
584 echo mips-sgi-irix"$(echo "$UNAME_RELEASE"|sed -e 's/-/_/g')"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
585 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
586 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
587 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
588 exit ;; # Note that: echo "'$(uname -s)'" gives 'AIX '
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
589 i*86:AIX:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
590 echo i386-ibm-aix
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
591 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
592 ia64:AIX:*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
593 if test -x /usr/bin/oslevel ; then
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
594 IBM_REV=$(/usr/bin/oslevel)
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
595 else
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
596 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
597 fi
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
598 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
599 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
600 *:AIX:2:3)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
601 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
602 set_cc_for_build
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
603 sed 's/^ //' << EOF > "$dummy.c"
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
604 #include <sys/systemcfg.h>
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
605
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
606 main()
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
607 {
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
608 if (!__power_pc())
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
609 exit(1);
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
610 puts("powerpc-ibm-aix3.2.5");
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
611 exit(0);
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
612 }
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
613 EOF
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
614 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=$("$dummy")
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
615 then
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
616 echo "$SYSTEM_NAME"
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
617 else
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
618 echo rs6000-ibm-aix3.2.5
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
619 fi
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
620 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
621 echo rs6000-ibm-aix3.2.4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
622 else
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
623 echo rs6000-ibm-aix3.2
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
624 fi
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
625 exit ;;
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
626 *:AIX:*:[4567])
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
627 IBM_CPU_ID=$(/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }')
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
628 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
629 IBM_ARCH=rs6000
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
630 else
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
631 IBM_ARCH=powerpc
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
632 fi
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
633 if test -x /usr/bin/lslpp ; then
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
634 IBM_REV=$(/usr/bin/lslpp -Lqc bos.rte.libc |
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
635 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/)
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
636 else
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
637 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
638 fi
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
639 echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
640 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
641 *:AIX:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
642 echo rs6000-ibm-aix
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
643 exit ;;
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
644 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
645 echo romp-ibm-bsd4.4
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
646 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
647 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
648 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
649 exit ;; # report: romp-ibm BSD 4.3
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
650 *:BOSX:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
651 echo rs6000-bull-bosx
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
652 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
653 DPX/2?00:B.O.S.:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
654 echo m68k-bull-sysv3
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
655 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
656 9000/[34]??:4.3bsd:1.*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
657 echo m68k-hp-bsd
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
658 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
659 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
660 echo m68k-hp-bsd4.4
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
661 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
662 9000/[34678]??:HP-UX:*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
663 HPUX_REV=$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//')
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
664 case "$UNAME_MACHINE" in
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
665 9000/31?) HP_ARCH=m68000 ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
666 9000/[34]??) HP_ARCH=m68k ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
667 9000/[678][0-9][0-9])
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
668 if test -x /usr/bin/getconf; then
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
669 sc_cpu_version=$(/usr/bin/getconf SC_CPU_VERSION 2>/dev/null)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
670 sc_kernel_bits=$(/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
671 case "$sc_cpu_version" in
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
672 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
673 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
674 532) # CPU_PA_RISC2_0
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
675 case "$sc_kernel_bits" in
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
676 32) HP_ARCH=hppa2.0n ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
677 64) HP_ARCH=hppa2.0w ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
678 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
679 esac ;;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
680 esac
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
681 fi
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
682 if test "$HP_ARCH" = ""; then
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
683 set_cc_for_build
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
684 sed 's/^ //' << EOF > "$dummy.c"
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
685
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
686 #define _HPUX_SOURCE
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
687 #include <stdlib.h>
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
688 #include <unistd.h>
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
689
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
690 int main ()
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
691 {
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
692 #if defined(_SC_KERNEL_BITS)
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
693 long bits = sysconf(_SC_KERNEL_BITS);
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
694 #endif
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
695 long cpu = sysconf (_SC_CPU_VERSION);
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
696
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
697 switch (cpu)
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
698 {
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
699 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
700 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
701 case CPU_PA_RISC2_0:
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
702 #if defined(_SC_KERNEL_BITS)
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
703 switch (bits)
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
704 {
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
705 case 64: puts ("hppa2.0w"); break;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
706 case 32: puts ("hppa2.0n"); break;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
707 default: puts ("hppa2.0"); break;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
708 } break;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
709 #else /* !defined(_SC_KERNEL_BITS) */
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
710 puts ("hppa2.0"); break;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
711 #endif
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
712 default: puts ("hppa1.0"); break;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
713 }
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
714 exit (0);
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
715 }
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
716 EOF
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
717 (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=$("$dummy")
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
718 test -z "$HP_ARCH" && HP_ARCH=hppa
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
719 fi ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
720 esac
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
721 if test "$HP_ARCH" = hppa2.0w
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
722 then
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
723 set_cc_for_build
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
724
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
725 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
726 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
727 # generating 64-bit code. GNU and HP use different nomenclature:
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
728 #
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
729 # $ CC_FOR_BUILD=cc ./config.guess
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
730 # => hppa2.0w-hp-hpux11.23
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
731 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
732 # => hppa64-hp-hpux11.23
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
733
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
734 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
735 grep -q __LP64__
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
736 then
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
737 HP_ARCH=hppa2.0w
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
738 else
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
739 HP_ARCH=hppa64
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
740 fi
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
741 fi
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
742 echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
743 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
744 ia64:HP-UX:*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
745 HPUX_REV=$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//')
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
746 echo ia64-hp-hpux"$HPUX_REV"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
747 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
748 3050*:HI-UX:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
749 set_cc_for_build
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
750 sed 's/^ //' << EOF > "$dummy.c"
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
751 #include <unistd.h>
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
752 int
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
753 main ()
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
754 {
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
755 long cpu = sysconf (_SC_CPU_VERSION);
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
756 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
757 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
758 results, however. */
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
759 if (CPU_IS_PA_RISC (cpu))
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
760 {
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
761 switch (cpu)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
762 {
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
763 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
764 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
765 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
766 default: puts ("hppa-hitachi-hiuxwe2"); break;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
767 }
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
768 }
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
769 else if (CPU_IS_HP_MC68K (cpu))
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
770 puts ("m68k-hitachi-hiuxwe2");
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
771 else puts ("unknown-hitachi-hiuxwe2");
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
772 exit (0);
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
773 }
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
774 EOF
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
775 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=$("$dummy") &&
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
776 { echo "$SYSTEM_NAME"; exit; }
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
777 echo unknown-hitachi-hiuxwe2
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
778 exit ;;
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
779 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
780 echo hppa1.1-hp-bsd
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
781 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
782 9000/8??:4.3bsd:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
783 echo hppa1.0-hp-bsd
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
784 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
785 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
786 echo hppa1.0-hp-mpeix
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
787 exit ;;
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
788 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
789 echo hppa1.1-hp-osf
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
790 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
791 hp8??:OSF1:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
792 echo hppa1.0-hp-osf
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
793 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
794 i*86:OSF1:*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
795 if test -x /usr/sbin/sysversion ; then
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
796 echo "$UNAME_MACHINE"-unknown-osf1mk
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
797 else
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
798 echo "$UNAME_MACHINE"-unknown-osf1
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
799 fi
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
800 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
801 parisc*:Lites*:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
802 echo hppa1.1-hp-lites
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
803 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
804 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
805 echo c1-convex-bsd
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
806 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
807 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
808 if getsysinfo -f scalar_acc
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
809 then echo c32-convex-bsd
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
810 else echo c2-convex-bsd
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
811 fi
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
812 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
813 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
814 echo c34-convex-bsd
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
815 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
816 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
817 echo c38-convex-bsd
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
818 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
819 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
820 echo c4-convex-bsd
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
821 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
822 CRAY*Y-MP:*:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
823 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
824 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
825 CRAY*[A-Z]90:*:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
826 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
827 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
828 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
829 -e 's/\.[^.]*$/.X/'
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
830 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
831 CRAY*TS:*:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
832 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
833 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
834 CRAY*T3E:*:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
835 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
836 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
837 CRAY*SV1:*:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
838 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
839 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
840 *:UNICOS/mp:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
841 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
842 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
843 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
844 FUJITSU_PROC=$(uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
845 FUJITSU_SYS=$(uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///')
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
846 FUJITSU_REL=$(echo "$UNAME_RELEASE" | sed -e 's/ /_/')
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
847 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
848 exit ;;
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
849 5000:UNIX_System_V:4.*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
850 FUJITSU_SYS=$(uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///')
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
851 FUJITSU_REL=$(echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/')
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
852 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
853 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
854 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
855 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
856 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
857 sparc*:BSD/OS:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
858 echo sparc-unknown-bsdi"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
859 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
860 *:BSD/OS:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
861 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
862 exit ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
863 arm:FreeBSD:*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
864 UNAME_PROCESSOR=$(uname -p)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
865 set_cc_for_build
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
866 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
867 | grep -q __ARM_PCS_VFP
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
868 then
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
869 echo "${UNAME_PROCESSOR}"-unknown-freebsd"$(echo ${UNAME_RELEASE}|sed -e 's/[-(].*//')"-gnueabi
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
870 else
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
871 echo "${UNAME_PROCESSOR}"-unknown-freebsd"$(echo ${UNAME_RELEASE}|sed -e 's/[-(].*//')"-gnueabihf
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
872 fi
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
873 exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
874 *:FreeBSD:*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
875 UNAME_PROCESSOR=$(/usr/bin/uname -p)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
876 case "$UNAME_PROCESSOR" in
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
877 amd64)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
878 UNAME_PROCESSOR=x86_64 ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
879 i386)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
880 UNAME_PROCESSOR=i586 ;;
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
881 esac
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
882 echo "$UNAME_PROCESSOR"-unknown-freebsd"$(echo "$UNAME_RELEASE"|sed -e 's/[-(].*//')"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
883 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
884 i*:CYGWIN*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
885 echo "$UNAME_MACHINE"-pc-cygwin
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
886 exit ;;
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
887 *:MINGW64*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
888 echo "$UNAME_MACHINE"-pc-mingw64
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
889 exit ;;
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
890 *:MINGW*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
891 echo "$UNAME_MACHINE"-pc-mingw32
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
892 exit ;;
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
893 *:MSYS*:*)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
894 echo "$UNAME_MACHINE"-pc-msys
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
895 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
896 i*:PW*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
897 echo "$UNAME_MACHINE"-pc-pw32
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
898 exit ;;
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
899 *:Interix*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
900 case "$UNAME_MACHINE" in
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
901 x86)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
902 echo i586-pc-interix"$UNAME_RELEASE"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
903 exit ;;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
904 authenticamd | genuineintel | EM64T)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
905 echo x86_64-unknown-interix"$UNAME_RELEASE"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
906 exit ;;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
907 IA64)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
908 echo ia64-unknown-interix"$UNAME_RELEASE"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
909 exit ;;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
910 esac ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
911 i*:UWIN*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
912 echo "$UNAME_MACHINE"-pc-uwin
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
913 exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
914 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
915 echo x86_64-pc-cygwin
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
916 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
917 prep*:SunOS:5.*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
918 echo powerpcle-unknown-solaris2"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
919 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
920 *:GNU:*:*)
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
921 # the GNU system
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
922 echo "$(echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,')-unknown-$LIBC$(echo "$UNAME_RELEASE"|sed -e 's,/.*$,,')"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
923 exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
924 *:GNU/*:*:*)
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
925 # other systems with GNU libc and userland
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
926 echo "$UNAME_MACHINE-unknown-$(echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]")$(echo "$UNAME_RELEASE"|sed -e 's/[-(].*//')-$LIBC"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
927 exit ;;
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
928 *:Minix:*:*)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
929 echo "$UNAME_MACHINE"-unknown-minix
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
930 exit ;;
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
931 aarch64:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
932 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
933 exit ;;
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
934 aarch64_be:Linux:*:*)
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
935 UNAME_MACHINE=aarch64_be
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
936 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
937 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
938 alpha:Linux:*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
939 case $(sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null) in
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
940 EV5) UNAME_MACHINE=alphaev5 ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
941 EV56) UNAME_MACHINE=alphaev56 ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
942 PCA56) UNAME_MACHINE=alphapca56 ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
943 PCA57) UNAME_MACHINE=alphapca56 ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
944 EV6) UNAME_MACHINE=alphaev6 ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
945 EV67) UNAME_MACHINE=alphaev67 ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
946 EV68*) UNAME_MACHINE=alphaev68 ;;
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
947 esac
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
948 objdump --private-headers /bin/sh | grep -q ld.so.1
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
949 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
950 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
951 exit ;;
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
952 arc:Linux:*:* | arceb:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
953 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
954 exit ;;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
955 arm*:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
956 set_cc_for_build
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
957 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
958 | grep -q __ARM_EABI__
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
959 then
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
960 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
961 else
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
962 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
963 | grep -q __ARM_PCS_VFP
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
964 then
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
965 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
966 else
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
967 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
968 fi
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
969 fi
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
970 exit ;;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
971 avr32*:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
972 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
973 exit ;;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
974 cris:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
975 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
976 exit ;;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
977 crisv32:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
978 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
979 exit ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
980 e2k:Linux:*:*)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
981 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
982 exit ;;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
983 frv:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
984 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
985 exit ;;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
986 hexagon:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
987 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
988 exit ;;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
989 i*86:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
990 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
991 exit ;;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
992 ia64:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
993 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
994 exit ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
995 k1om:Linux:*:*)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
996 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
997 exit ;;
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
998 loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
999 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1000 exit ;;
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1001 m32r*:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1002 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1003 exit ;;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1004 m68*:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1005 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1006 exit ;;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1007 mips:Linux:*:* | mips64:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1008 set_cc_for_build
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1009 IS_GLIBC=0
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1010 test x"${LIBC}" = xgnu && IS_GLIBC=1
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1011 sed 's/^ //' << EOF > "$dummy.c"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1012 #undef CPU
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1013 #undef mips
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1014 #undef mipsel
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1015 #undef mips64
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1016 #undef mips64el
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1017 #if ${IS_GLIBC} && defined(_ABI64)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1018 LIBCABI=gnuabi64
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1019 #else
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1020 #if ${IS_GLIBC} && defined(_ABIN32)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1021 LIBCABI=gnuabin32
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1022 #else
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1023 LIBCABI=${LIBC}
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1024 #endif
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1025 #endif
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1026
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1027 #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1028 CPU=mipsisa64r6
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1029 #else
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1030 #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1031 CPU=mipsisa32r6
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1032 #else
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1033 #if defined(__mips64)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1034 CPU=mips64
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1035 #else
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1036 CPU=mips
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1037 #endif
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1038 #endif
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1039 #endif
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1040
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1041 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1042 MIPS_ENDIAN=el
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1043 #else
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1044 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1045 MIPS_ENDIAN=
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1046 #else
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1047 MIPS_ENDIAN=
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1048 #endif
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1049 #endif
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1050 EOF
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1051 eval "$($CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI')"
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1052 test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; }
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1053 ;;
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1054 mips64el:Linux:*:*)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1055 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1056 exit ;;
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1057 openrisc*:Linux:*:*)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1058 echo or1k-unknown-linux-"$LIBC"
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1059 exit ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1060 or32:Linux:*:* | or1k*:Linux:*:*)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1061 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1062 exit ;;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1063 padre:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1064 echo sparc-unknown-linux-"$LIBC"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1065 exit ;;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1066 parisc64:Linux:*:* | hppa64:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1067 echo hppa64-unknown-linux-"$LIBC"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1068 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1069 parisc:Linux:*:* | hppa:Linux:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1070 # Look for CPU level
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1071 case $(grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2) in
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1072 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1073 PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1074 *) echo hppa-unknown-linux-"$LIBC" ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1075 esac
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1076 exit ;;
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1077 ppc64:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1078 echo powerpc64-unknown-linux-"$LIBC"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1079 exit ;;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1080 ppc:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1081 echo powerpc-unknown-linux-"$LIBC"
859
4891acd7ab4f another new config.guess 2013-06-10
Matt Johnston <matt@ucc.asn.au>
parents: 792
diff changeset
1082 exit ;;
4891acd7ab4f another new config.guess 2013-06-10
Matt Johnston <matt@ucc.asn.au>
parents: 792
diff changeset
1083 ppc64le:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1084 echo powerpc64le-unknown-linux-"$LIBC"
859
4891acd7ab4f another new config.guess 2013-06-10
Matt Johnston <matt@ucc.asn.au>
parents: 792
diff changeset
1085 exit ;;
4891acd7ab4f another new config.guess 2013-06-10
Matt Johnston <matt@ucc.asn.au>
parents: 792
diff changeset
1086 ppcle:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1087 echo powerpcle-unknown-linux-"$LIBC"
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1088 exit ;;
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1089 riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1090 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1091 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1092 s390:Linux:*:* | s390x:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1093 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1094 exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1095 sh64*:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1096 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1097 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1098 sh*:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1099 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1100 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1101 sparc:Linux:*:* | sparc64:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1102 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1103 exit ;;
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1104 tile*:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1105 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1106 exit ;;
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1107 vax:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1108 echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1109 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1110 x86_64:Linux:*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1111 set_cc_for_build
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1112 LIBCABI=$LIBC
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1113 if test "$CC_FOR_BUILD" != no_compiler_found; then
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1114 if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1115 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1116 grep IS_X32 >/dev/null
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1117 then
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1118 LIBCABI="$LIBC"x32
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1119 fi
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1120 fi
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1121 echo "$UNAME_MACHINE"-pc-linux-"$LIBCABI"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1122 exit ;;
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1123 xtensa*:Linux:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1124 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1125 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1126 i*86:DYNIX/ptx:4*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1127 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1128 # earlier versions are messed up and put the nodename in both
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1129 # sysname and nodename.
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1130 echo i386-sequent-sysv4
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1131 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1132 i*86:UNIX_SV:4.2MP:2.*)
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1133 # Unixware is an offshoot of SVR4, but it has its own version
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1134 # number series starting with 2...
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1135 # I am not positive that other SVR4 systems won't match this,
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1136 # I just have to hope. -- rms.
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1137 # Use sysv4.2uw... so that sysv4* matches it.
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1138 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1139 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1140 i*86:OS/2:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1141 # If we were able to find `uname', then EMX Unix compatibility
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1142 # is probably installed.
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1143 echo "$UNAME_MACHINE"-pc-os2-emx
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1144 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1145 i*86:XTS-300:*:STOP)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1146 echo "$UNAME_MACHINE"-unknown-stop
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1147 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1148 i*86:atheos:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1149 echo "$UNAME_MACHINE"-unknown-atheos
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1150 exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1151 i*86:syllable:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1152 echo "$UNAME_MACHINE"-pc-syllable
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1153 exit ;;
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1154 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1155 echo i386-unknown-lynxos"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1156 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1157 i*86:*DOS:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1158 echo "$UNAME_MACHINE"-pc-msdosdjgpp
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1159 exit ;;
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1160 i*86:*:4.*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1161 UNAME_REL=$(echo "$UNAME_RELEASE" | sed 's/\/MP$//')
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1162 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1163 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1164 else
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1165 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1166 fi
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1167 exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1168 i*86:*:5:[678]*)
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1169 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1170 case $(/bin/uname -X | grep "^Machine") in
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1171 *486*) UNAME_MACHINE=i486 ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1172 *Pentium) UNAME_MACHINE=i586 ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1173 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1174 esac
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1175 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1176 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1177 i*86:*:3.2:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1178 if test -f /usr/options/cb.name; then
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1179 UNAME_REL=$(sed -n 's/.*Version //p' </usr/options/cb.name)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1180 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1181 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1182 UNAME_REL=$( (/bin/uname -X|grep Release|sed -e 's/.*= //'))
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1183 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1184 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1185 && UNAME_MACHINE=i586
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1186 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1187 && UNAME_MACHINE=i686
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1188 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1189 && UNAME_MACHINE=i686
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1190 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1191 else
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1192 echo "$UNAME_MACHINE"-pc-sysv32
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1193 fi
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1194 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1195 pc:*:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1196 # Left here for compatibility:
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1197 # uname -m prints for DJGPP always 'pc', but it prints nothing about
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1198 # the processor, so we play safe by assuming i586.
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1199 # Note: whatever this is, it MUST be the same as what config.sub
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1200 # prints for the "djgpp" host, or else GDB configure will decide that
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1201 # this is a cross-build.
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1202 echo i586-pc-msdosdjgpp
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1203 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1204 Intel:Mach:3*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1205 echo i386-pc-mach3
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1206 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1207 paragon:*:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1208 echo i860-intel-osf1
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1209 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1210 i860:*:4.*:*) # i860-SVR4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1211 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1212 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1213 else # Add other i860-SVR4 vendors below as they are discovered.
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1214 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1215 fi
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1216 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1217 mini*:CTIX:SYS*5:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1218 # "miniframe"
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1219 echo m68010-convergent-sysv
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1220 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1221 mc68k:UNIX:SYSTEM5:3.51m)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1222 echo m68k-convergent-sysv
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1223 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1224 M680?0:D-NIX:5.3:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1225 echo m68k-diab-dnix
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1226 exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1227 M68*:*:R3V[5678]*:*)
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1228 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1229 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1230 OS_REL=''
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1231 test -r /etc/.relid \
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1232 && OS_REL=.$(sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid)
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1233 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1234 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1235 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1236 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1237 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1238 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1239 && { echo i486-ncr-sysv4; exit; } ;;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1240 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1241 OS_REL='.3'
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1242 test -r /etc/.relid \
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1243 && OS_REL=.$(sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid)
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1244 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1245 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1246 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1247 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1248 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1249 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1250 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1251 echo m68k-unknown-lynxos"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1252 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1253 mc68030:UNIX_System_V:4.*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1254 echo m68k-atari-sysv4
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1255 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1256 TSUNAMI:LynxOS:2.*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1257 echo sparc-unknown-lynxos"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1258 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1259 rs6000:LynxOS:2.*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1260 echo rs6000-unknown-lynxos"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1261 exit ;;
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1262 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1263 echo powerpc-unknown-lynxos"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1264 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1265 SM[BE]S:UNIX_SV:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1266 echo mips-dde-sysv"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1267 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1268 RM*:ReliantUNIX-*:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1269 echo mips-sni-sysv4
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1270 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1271 RM*:SINIX-*:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1272 echo mips-sni-sysv4
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1273 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1274 *:SINIX-*:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1275 if uname -p 2>/dev/null >/dev/null ; then
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1276 UNAME_MACHINE=$( (uname -p) 2>/dev/null)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1277 echo "$UNAME_MACHINE"-sni-sysv4
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1278 else
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1279 echo ns32k-sni-sysv
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1280 fi
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1281 exit ;;
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1282 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1283 # says <[email protected]>
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1284 echo i586-unisys-sysv4
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1285 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1286 *:UNIX_System_V:4*:FTX*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1287 # From Gerald Hewes <[email protected]>.
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1288 # How about differentiating between stratus architectures? -djm
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1289 echo hppa1.1-stratus-sysv4
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1290 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1291 *:*:*:FTX*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1292 # From [email protected].
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1293 echo i860-stratus-sysv4
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1294 exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1295 i*86:VOS:*:*)
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1296 # From [email protected].
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1297 echo "$UNAME_MACHINE"-stratus-vos
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1298 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1299 *:VOS:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1300 # From [email protected].
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1301 echo hppa1.1-stratus-vos
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1302 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1303 mc68*:A/UX:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1304 echo m68k-apple-aux"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1305 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1306 news*:NEWS-OS:6*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1307 echo mips-sony-newsos6
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1308 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1309 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1310 if test -d /usr/nec; then
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1311 echo mips-nec-sysv"$UNAME_RELEASE"
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1312 else
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1313 echo mips-unknown-sysv"$UNAME_RELEASE"
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1314 fi
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1315 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1316 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1317 echo powerpc-be-beos
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1318 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1319 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1320 echo powerpc-apple-beos
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1321 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1322 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1323 echo i586-pc-beos
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1324 exit ;;
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1325 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1326 echo i586-pc-haiku
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1327 exit ;;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1328 x86_64:Haiku:*:*)
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1329 echo x86_64-unknown-haiku
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1330 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1331 SX-4:SUPER-UX:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1332 echo sx4-nec-superux"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1333 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1334 SX-5:SUPER-UX:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1335 echo sx5-nec-superux"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1336 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1337 SX-6:SUPER-UX:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1338 echo sx6-nec-superux"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1339 exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1340 SX-7:SUPER-UX:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1341 echo sx7-nec-superux"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1342 exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1343 SX-8:SUPER-UX:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1344 echo sx8-nec-superux"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1345 exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1346 SX-8R:SUPER-UX:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1347 echo sx8r-nec-superux"$UNAME_RELEASE"
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1348 exit ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1349 SX-ACE:SUPER-UX:*:*)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1350 echo sxace-nec-superux"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1351 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1352 Power*:Rhapsody:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1353 echo powerpc-apple-rhapsody"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1354 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1355 *:Rhapsody:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1356 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1357 exit ;;
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1358 arm64:Darwin:*:*)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1359 echo aarch64-apple-darwin"$UNAME_RELEASE"
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1360 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1361 *:Darwin:*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1362 UNAME_PROCESSOR=$(uname -p)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1363 case $UNAME_PROCESSOR in
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1364 unknown) UNAME_PROCESSOR=powerpc ;;
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1365 esac
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1366 if command -v xcode-select > /dev/null 2> /dev/null && \
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1367 ! xcode-select --print-path > /dev/null 2> /dev/null ; then
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1368 # Avoid executing cc if there is no toolchain installed as
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1369 # cc will be a stub that puts up a graphical alert
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1370 # prompting the user to install developer tools.
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1371 CC_FOR_BUILD=no_compiler_found
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1372 else
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1373 set_cc_for_build
859
4891acd7ab4f another new config.guess 2013-06-10
Matt Johnston <matt@ucc.asn.au>
parents: 792
diff changeset
1374 fi
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1375 if test "$CC_FOR_BUILD" != no_compiler_found; then
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1376 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1377 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1378 grep IS_64BIT_ARCH >/dev/null
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1379 then
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1380 case $UNAME_PROCESSOR in
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1381 i386) UNAME_PROCESSOR=x86_64 ;;
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1382 powerpc) UNAME_PROCESSOR=powerpc64 ;;
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1383 esac
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1384 fi
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1385 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1386 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1387 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1388 grep IS_PPC >/dev/null
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1389 then
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1390 UNAME_PROCESSOR=powerpc
859
4891acd7ab4f another new config.guess 2013-06-10
Matt Johnston <matt@ucc.asn.au>
parents: 792
diff changeset
1391 fi
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1392 elif test "$UNAME_PROCESSOR" = i386 ; then
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1393 # uname -m returns i386 or x86_64
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1394 UNAME_PROCESSOR=$UNAME_MACHINE
859
4891acd7ab4f another new config.guess 2013-06-10
Matt Johnston <matt@ucc.asn.au>
parents: 792
diff changeset
1395 fi
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1396 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1397 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1398 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1399 UNAME_PROCESSOR=$(uname -p)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1400 if test "$UNAME_PROCESSOR" = x86; then
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1401 UNAME_PROCESSOR=i386
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1402 UNAME_MACHINE=pc
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1403 fi
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1404 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1405 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1406 *:QNX:*:4*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1407 echo i386-pc-qnx
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1408 exit ;;
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1409 NEO-*:NONSTOP_KERNEL:*:*)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1410 echo neo-tandem-nsk"$UNAME_RELEASE"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1411 exit ;;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1412 NSE-*:NONSTOP_KERNEL:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1413 echo nse-tandem-nsk"$UNAME_RELEASE"
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1414 exit ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1415 NSR-*:NONSTOP_KERNEL:*:*)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1416 echo nsr-tandem-nsk"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1417 exit ;;
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1418 NSV-*:NONSTOP_KERNEL:*:*)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1419 echo nsv-tandem-nsk"$UNAME_RELEASE"
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1420 exit ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1421 NSX-*:NONSTOP_KERNEL:*:*)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1422 echo nsx-tandem-nsk"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1423 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1424 *:NonStop-UX:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1425 echo mips-compaq-nonstopux
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1426 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1427 BS2000:POSIX*:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1428 echo bs2000-siemens-sysv
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1429 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1430 DS/*:UNIX_System_V:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1431 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1432 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1433 *:Plan9:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1434 # "uname -m" is not consistent, so use $cputype instead. 386
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1435 # is converted to i386 for consistency with other x86
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1436 # operating systems.
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1437 # shellcheck disable=SC2154
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1438 if test "$cputype" = 386; then
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1439 UNAME_MACHINE=i386
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1440 else
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1441 UNAME_MACHINE="$cputype"
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1442 fi
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1443 echo "$UNAME_MACHINE"-unknown-plan9
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1444 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1445 *:TOPS-10:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1446 echo pdp10-unknown-tops10
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1447 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1448 *:TENEX:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1449 echo pdp10-unknown-tenex
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1450 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1451 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1452 echo pdp10-dec-tops20
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1453 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1454 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1455 echo pdp10-xkl-tops20
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1456 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1457 *:TOPS-20:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1458 echo pdp10-unknown-tops20
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1459 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1460 *:ITS:*:*)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1461 echo pdp10-unknown-its
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1462 exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1463 SEI:*:*:SEIUX)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1464 echo mips-sei-seiux"$UNAME_RELEASE"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1465 exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1466 *:DragonFly:*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1467 echo "$UNAME_MACHINE"-unknown-dragonfly"$(echo "$UNAME_RELEASE"|sed -e 's/[-(].*//')"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1468 exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1469 *:*VMS:*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1470 UNAME_MACHINE=$( (uname -p) 2>/dev/null)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1471 case "$UNAME_MACHINE" in
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1472 A*) echo alpha-dec-vms ; exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1473 I*) echo ia64-dec-vms ; exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1474 V*) echo vax-dec-vms ; exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1475 esac ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1476 *:XENIX:*:SysV)
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1477 echo i386-pc-xenix
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1478 exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1479 i*86:skyos:*:*)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1480 echo "$UNAME_MACHINE"-pc-skyos"$(echo "$UNAME_RELEASE" | sed -e 's/ .*$//')"
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1481 exit ;;
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1482 i*86:rdos:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1483 echo "$UNAME_MACHINE"-pc-rdos
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1484 exit ;;
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1485 *:AROS:*:*)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1486 echo "$UNAME_MACHINE"-unknown-aros
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1487 exit ;;
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1488 x86_64:VMkernel:*:*)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1489 echo "$UNAME_MACHINE"-unknown-esx
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1490 exit ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1491 amd64:Isilon\ OneFS:*:*)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1492 echo x86_64-unknown-onefs
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1493 exit ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1494 *:Unleashed:*:*)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1495 echo "$UNAME_MACHINE"-unknown-unleashed"$UNAME_RELEASE"
792
239ede24d54f Update config.guess and config.sub
Matt Johnston <matt@ucc.asn.au>
parents: 393
diff changeset
1496 exit ;;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1497 esac
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1498
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1499 # No uname command or uname output not recognized.
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1500 set_cc_for_build
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1501 cat > "$dummy.c" <<EOF
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1502 #ifdef _SEQUENT_
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1503 #include <sys/types.h>
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1504 #include <sys/utsname.h>
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1505 #endif
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1506 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1507 #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1508 #include <signal.h>
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1509 #if defined(_SIZE_T_) || defined(SIGLOST)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1510 #include <sys/utsname.h>
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1511 #endif
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1512 #endif
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1513 #endif
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1514 main ()
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1515 {
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1516 #if defined (sony)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1517 #if defined (MIPSEB)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1518 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1519 I don't know.... */
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1520 printf ("mips-sony-bsd\n"); exit (0);
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1521 #else
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1522 #include <sys/param.h>
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1523 printf ("m68k-sony-newsos%s\n",
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1524 #ifdef NEWSOS4
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1525 "4"
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1526 #else
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1527 ""
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1528 #endif
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1529 ); exit (0);
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1530 #endif
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1531 #endif
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1532
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1533 #if defined (NeXT)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1534 #if !defined (__ARCHITECTURE__)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1535 #define __ARCHITECTURE__ "m68k"
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1536 #endif
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1537 int version;
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1538 version=$( (hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null);
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1539 if (version < 4)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1540 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1541 else
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1542 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1543 exit (0);
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1544 #endif
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1545
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1546 #if defined (MULTIMAX) || defined (n16)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1547 #if defined (UMAXV)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1548 printf ("ns32k-encore-sysv\n"); exit (0);
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1549 #else
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1550 #if defined (CMU)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1551 printf ("ns32k-encore-mach\n"); exit (0);
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1552 #else
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1553 printf ("ns32k-encore-bsd\n"); exit (0);
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1554 #endif
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1555 #endif
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1556 #endif
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1557
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1558 #if defined (__386BSD__)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1559 printf ("i386-pc-bsd\n"); exit (0);
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1560 #endif
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1561
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1562 #if defined (sequent)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1563 #if defined (i386)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1564 printf ("i386-sequent-dynix\n"); exit (0);
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1565 #endif
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1566 #if defined (ns32000)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1567 printf ("ns32k-sequent-dynix\n"); exit (0);
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1568 #endif
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1569 #endif
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1570
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1571 #if defined (_SEQUENT_)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1572 struct utsname un;
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1573
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1574 uname(&un);
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1575 if (strncmp(un.version, "V2", 2) == 0) {
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1576 printf ("i386-sequent-ptx2\n"); exit (0);
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1577 }
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1578 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1579 printf ("i386-sequent-ptx1\n"); exit (0);
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1580 }
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1581 printf ("i386-sequent-ptx\n"); exit (0);
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1582 #endif
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1583
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1584 #if defined (vax)
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1585 #if !defined (ultrix)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1586 #include <sys/param.h>
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1587 #if defined (BSD)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1588 #if BSD == 43
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1589 printf ("vax-dec-bsd4.3\n"); exit (0);
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1590 #else
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1591 #if BSD == 199006
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1592 printf ("vax-dec-bsd4.3reno\n"); exit (0);
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1593 #else
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1594 printf ("vax-dec-bsd\n"); exit (0);
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1595 #endif
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1596 #endif
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1597 #else
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1598 printf ("vax-dec-bsd\n"); exit (0);
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1599 #endif
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1600 #else
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1601 #if defined(_SIZE_T_) || defined(SIGLOST)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1602 struct utsname un;
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1603 uname (&un);
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1604 printf ("vax-dec-ultrix%s\n", un.release); exit (0);
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1605 #else
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1606 printf ("vax-dec-ultrix\n"); exit (0);
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1607 #endif
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1608 #endif
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1609 #endif
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1610 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1611 #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1612 #if defined(_SIZE_T_) || defined(SIGLOST)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1613 struct utsname *un;
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1614 uname (&un);
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1615 printf ("mips-dec-ultrix%s\n", un.release); exit (0);
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1616 #else
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1617 printf ("mips-dec-ultrix\n"); exit (0);
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1618 #endif
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1619 #endif
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1620 #endif
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1621
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1622 #if defined (alliant) && defined (i860)
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1623 printf ("i860-alliant-bsd\n"); exit (0);
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1624 #endif
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1625
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1626 exit (1);
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1627 }
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1628 EOF
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1629
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1630 $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=$($dummy) &&
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1631 { echo "$SYSTEM_NAME"; exit; }
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1632
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1633 # Apollos put the system type in the environment.
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1634 test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; }
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1635
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1636 echo "$0: unable to guess system type" >&2
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1637
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1638 case "$UNAME_MACHINE:$UNAME_SYSTEM" in
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1639 mips:Linux | mips64:Linux)
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1640 # If we got here on MIPS GNU/Linux, output extra information.
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1641 cat >&2 <<EOF
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1642
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1643 NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1644 the system type. Please install a C compiler and try again.
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1645 EOF
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1646 ;;
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1647 esac
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1648
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1649 cat >&2 <<EOF
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1650
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1651 This script (version $timestamp), has failed to recognize the
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1652 operating system you are using. If your script is old, overwrite *all*
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1653 copies of config.guess and config.sub with the latest versions from:
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1654
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1655 https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
393
5587d151d5a2 Update to latest
Matt Johnston <matt@ucc.asn.au>
parents: 4
diff changeset
1656 and
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1657 https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1658 EOF
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1659
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1660 year=$(echo $timestamp | sed 's,-.*,,')
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1661 # shellcheck disable=SC2003
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1662 if test "$(expr "$(date +%Y)" - "$year")" -lt 3 ; then
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1663 cat >&2 <<EOF
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1664
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1665 If $0 has already been updated, send the following data and any
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1666 information you think might be pertinent to [email protected] to
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1667 provide the necessary information to handle your system.
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1668
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1669 config.guess timestamp = $timestamp
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1670
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1671 uname -m = $( (uname -m) 2>/dev/null || echo unknown)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1672 uname -r = $( (uname -r) 2>/dev/null || echo unknown)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1673 uname -s = $( (uname -s) 2>/dev/null || echo unknown)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1674 uname -v = $( (uname -v) 2>/dev/null || echo unknown)
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1675
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1676 /usr/bin/uname -p = $( (/usr/bin/uname -p) 2>/dev/null)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1677 /bin/uname -X = $( (/bin/uname -X) 2>/dev/null)
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1678
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1679 hostinfo = $( (hostinfo) 2>/dev/null)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1680 /bin/universe = $( (/bin/universe) 2>/dev/null)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1681 /usr/bin/arch -k = $( (/usr/bin/arch -k) 2>/dev/null)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1682 /bin/arch = $( (/bin/arch) 2>/dev/null)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1683 /usr/bin/oslevel = $( (/usr/bin/oslevel) 2>/dev/null)
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1684 /usr/convex/getsysinfo = $( (/usr/convex/getsysinfo) 2>/dev/null)
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1685
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1686 UNAME_MACHINE = "$UNAME_MACHINE"
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1687 UNAME_RELEASE = "$UNAME_RELEASE"
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1688 UNAME_SYSTEM = "$UNAME_SYSTEM"
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1689 UNAME_VERSION = "$UNAME_VERSION"
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1690 EOF
1813
b63f1e803f70 Update config.sub and config.guess to latest
Matt Johnston <matt@ucc.asn.au>
parents: 1644
diff changeset
1691 fi
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1692
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1693 exit 1
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1694
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1695 # Local variables:
1644
b3196c46f780 Update config.sub to 2019-01-05 and config.guess to 2019-03-04
Matt Johnston <matt@ucc.asn.au>
parents: 859
diff changeset
1696 # eval: (add-hook 'before-save-hook 'time-stamp)
4
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1697 # time-stamp-start: "timestamp='"
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1698 # time-stamp-format: "%:y-%02m-%02d"
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1699 # time-stamp-end: "'"
fe6bca95afa7 Makefile.in contains updated files required
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1700 # End: