Merge lp:~indicator-applet-developers/ubuntu/precise/libindicator/upstream into lp:~ubuntu-desktop/libindicator/ubuntu
- Precise (12.04)
- upstream
- Merge into ubuntu
Proposed by
Charles Kerr
Status: | Merged |
---|---|
Merged at revision: | 393 |
Proposed branch: | lp:~indicator-applet-developers/ubuntu/precise/libindicator/upstream |
Merge into: | lp:~ubuntu-desktop/libindicator/ubuntu |
Diff against target: |
13521 lines (+39/-13315) 14 files modified
ChangeLog (+12/-0) INSTALL (+7/-2) Makefile.in (+1/-3) compile (+0/-143) config.guess (+0/-1502) config.sub (+0/-1714) configure (+10/-10) configure.ac (+1/-1) debian/changelog (+7/-0) depcomp (+0/-630) install-sh (+0/-520) libindicator/indicator-image-helper.c (+1/-1) ltmain.sh (+0/-8413) missing (+0/-376) |
To merge this branch: | bzr merge lp:~indicator-applet-developers/ubuntu/precise/libindicator/upstream |
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ken VanDine | Pending | ||
Review via email: mp+101594@code.launchpad.net |
Commit message
Description of the change
libindicator 0.5.0
* Better handling of invalid images in image_helper_
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'ChangeLog' | |||
2 | --- ChangeLog 2012-04-04 19:35:30 +0000 | |||
3 | +++ ChangeLog 2012-04-11 15:58:20 +0000 | |||
4 | @@ -1,5 +1,17 @@ | |||
5 | 1 | # Generated by Makefile. Do not edit. | 1 | # Generated by Makefile. Do not edit. |
6 | 2 | 2 | ||
7 | 3 | 2012-04-11 Charles Kerr <charles.kerr@canonical.com> | ||
8 | 4 | |||
9 | 5 | 0.5.0 | ||
10 | 6 | |||
11 | 7 | 2012-04-11 Charles Kerr <charles.kerr@canonical.com> | ||
12 | 8 | |||
13 | 9 | merge lp:~charlesk/libindicator/lp-946408 to safeguard against invalid images being passed to indicator_image_helper_update() | ||
14 | 10 | |||
15 | 11 | 2012-04-11 Charles Kerr <charles.kerr@canonical.com> | ||
16 | 12 | |||
17 | 13 | in indicator_image_helper_update(), test the image argument with GTK_IS_IMAGE before using it. | ||
18 | 14 | |||
19 | 3 | 2012-04-04 Ted Gould <ted@gould.cx> | 15 | 2012-04-04 Ted Gould <ted@gould.cx> |
20 | 4 | 16 | ||
21 | 5 | 0.4.95 | 17 | 0.4.95 |
22 | 6 | 18 | ||
23 | === modified file 'INSTALL' | |||
24 | --- INSTALL 2012-04-04 19:34:11 +0000 | |||
25 | +++ INSTALL 2012-04-11 15:58:20 +0000 | |||
26 | @@ -1,8 +1,8 @@ | |||
27 | 1 | Installation Instructions | 1 | Installation Instructions |
28 | 2 | ************************* | 2 | ************************* |
29 | 3 | 3 | ||
32 | 4 | Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, | 4 | Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation, |
33 | 5 | 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | 5 | Inc. |
34 | 6 | 6 | ||
35 | 7 | Copying and distribution of this file, with or without modification, | 7 | Copying and distribution of this file, with or without modification, |
36 | 8 | are permitted in any medium without royalty provided the copyright | 8 | are permitted in any medium without royalty provided the copyright |
37 | @@ -226,6 +226,11 @@ | |||
38 | 226 | 226 | ||
39 | 227 | and if that doesn't work, install pre-built binaries of GCC for HP-UX. | 227 | and if that doesn't work, install pre-built binaries of GCC for HP-UX. |
40 | 228 | 228 | ||
41 | 229 | HP-UX `make' updates targets which have the same time stamps as | ||
42 | 230 | their prerequisites, which makes it generally unusable when shipped | ||
43 | 231 | generated files such as `configure' are involved. Use GNU `make' | ||
44 | 232 | instead. | ||
45 | 233 | |||
46 | 229 | On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot | 234 | On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot |
47 | 230 | parse its `<wchar.h>' header file. The option `-nodtk' can be used as | 235 | parse its `<wchar.h>' header file. The option `-nodtk' can be used as |
48 | 231 | a workaround. If GNU CC is not installed, it is therefore recommended | 236 | a workaround. If GNU CC is not installed, it is therefore recommended |
49 | 232 | 237 | ||
50 | === modified file 'Makefile.in' | |||
51 | --- Makefile.in 2012-04-04 19:35:30 +0000 | |||
52 | +++ Makefile.in 2012-04-11 15:58:20 +0000 | |||
53 | @@ -43,9 +43,7 @@ | |||
54 | 43 | $(top_srcdir)/Makefile.am.coverage $(top_srcdir)/configure \ | 43 | $(top_srcdir)/Makefile.am.coverage $(top_srcdir)/configure \ |
55 | 44 | AUTHORS COPYING ChangeLog INSTALL NEWS build-aux/compile \ | 44 | AUTHORS COPYING ChangeLog INSTALL NEWS build-aux/compile \ |
56 | 45 | build-aux/config.guess build-aux/config.sub build-aux/depcomp \ | 45 | build-aux/config.guess build-aux/config.sub build-aux/depcomp \ |
60 | 46 | build-aux/install-sh build-aux/ltmain.sh build-aux/missing \ | 46 | build-aux/install-sh build-aux/ltmain.sh build-aux/missing |
58 | 47 | compile config.guess config.sub depcomp install-sh ltmain.sh \ | ||
59 | 48 | missing | ||
61 | 49 | subdir = . | 47 | subdir = . |
62 | 50 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | 48 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
63 | 51 | am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ | 49 | am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ |
64 | 52 | 50 | ||
65 | === removed file 'compile' | |||
66 | --- compile 2012-04-04 19:34:11 +0000 | |||
67 | +++ compile 1970-01-01 00:00:00 +0000 | |||
68 | @@ -1,143 +0,0 @@ | |||
69 | 1 | #! /bin/sh | ||
70 | 2 | # Wrapper for compilers which do not understand `-c -o'. | ||
71 | 3 | |||
72 | 4 | scriptversion=2009-10-06.20; # UTC | ||
73 | 5 | |||
74 | 6 | # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software | ||
75 | 7 | # Foundation, Inc. | ||
76 | 8 | # Written by Tom Tromey <tromey@cygnus.com>. | ||
77 | 9 | # | ||
78 | 10 | # This program is free software; you can redistribute it and/or modify | ||
79 | 11 | # it under the terms of the GNU General Public License as published by | ||
80 | 12 | # the Free Software Foundation; either version 2, or (at your option) | ||
81 | 13 | # any later version. | ||
82 | 14 | # | ||
83 | 15 | # This program is distributed in the hope that it will be useful, | ||
84 | 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
85 | 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
86 | 18 | # GNU General Public License for more details. | ||
87 | 19 | # | ||
88 | 20 | # You should have received a copy of the GNU General Public License | ||
89 | 21 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
90 | 22 | |||
91 | 23 | # As a special exception to the GNU General Public License, if you | ||
92 | 24 | # distribute this file as part of a program that contains a | ||
93 | 25 | # configuration script generated by Autoconf, you may include it under | ||
94 | 26 | # the same distribution terms that you use for the rest of that program. | ||
95 | 27 | |||
96 | 28 | # This file is maintained in Automake, please report | ||
97 | 29 | # bugs to <bug-automake@gnu.org> or send patches to | ||
98 | 30 | # <automake-patches@gnu.org>. | ||
99 | 31 | |||
100 | 32 | case $1 in | ||
101 | 33 | '') | ||
102 | 34 | echo "$0: No command. Try \`$0 --help' for more information." 1>&2 | ||
103 | 35 | exit 1; | ||
104 | 36 | ;; | ||
105 | 37 | -h | --h*) | ||
106 | 38 | cat <<\EOF | ||
107 | 39 | Usage: compile [--help] [--version] PROGRAM [ARGS] | ||
108 | 40 | |||
109 | 41 | Wrapper for compilers which do not understand `-c -o'. | ||
110 | 42 | Remove `-o dest.o' from ARGS, run PROGRAM with the remaining | ||
111 | 43 | arguments, and rename the output as expected. | ||
112 | 44 | |||
113 | 45 | If you are trying to build a whole package this is not the | ||
114 | 46 | right script to run: please start by reading the file `INSTALL'. | ||
115 | 47 | |||
116 | 48 | Report bugs to <bug-automake@gnu.org>. | ||
117 | 49 | EOF | ||
118 | 50 | exit $? | ||
119 | 51 | ;; | ||
120 | 52 | -v | --v*) | ||
121 | 53 | echo "compile $scriptversion" | ||
122 | 54 | exit $? | ||
123 | 55 | ;; | ||
124 | 56 | esac | ||
125 | 57 | |||
126 | 58 | ofile= | ||
127 | 59 | cfile= | ||
128 | 60 | eat= | ||
129 | 61 | |||
130 | 62 | for arg | ||
131 | 63 | do | ||
132 | 64 | if test -n "$eat"; then | ||
133 | 65 | eat= | ||
134 | 66 | else | ||
135 | 67 | case $1 in | ||
136 | 68 | -o) | ||
137 | 69 | # configure might choose to run compile as `compile cc -o foo foo.c'. | ||
138 | 70 | # So we strip `-o arg' only if arg is an object. | ||
139 | 71 | eat=1 | ||
140 | 72 | case $2 in | ||
141 | 73 | *.o | *.obj) | ||
142 | 74 | ofile=$2 | ||
143 | 75 | ;; | ||
144 | 76 | *) | ||
145 | 77 | set x "$@" -o "$2" | ||
146 | 78 | shift | ||
147 | 79 | ;; | ||
148 | 80 | esac | ||
149 | 81 | ;; | ||
150 | 82 | *.c) | ||
151 | 83 | cfile=$1 | ||
152 | 84 | set x "$@" "$1" | ||
153 | 85 | shift | ||
154 | 86 | ;; | ||
155 | 87 | *) | ||
156 | 88 | set x "$@" "$1" | ||
157 | 89 | shift | ||
158 | 90 | ;; | ||
159 | 91 | esac | ||
160 | 92 | fi | ||
161 | 93 | shift | ||
162 | 94 | done | ||
163 | 95 | |||
164 | 96 | if test -z "$ofile" || test -z "$cfile"; then | ||
165 | 97 | # If no `-o' option was seen then we might have been invoked from a | ||
166 | 98 | # pattern rule where we don't need one. That is ok -- this is a | ||
167 | 99 | # normal compilation that the losing compiler can handle. If no | ||
168 | 100 | # `.c' file was seen then we are probably linking. That is also | ||
169 | 101 | # ok. | ||
170 | 102 | exec "$@" | ||
171 | 103 | fi | ||
172 | 104 | |||
173 | 105 | # Name of file we expect compiler to create. | ||
174 | 106 | cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` | ||
175 | 107 | |||
176 | 108 | # Create the lock directory. | ||
177 | 109 | # Note: use `[/\\:.-]' here to ensure that we don't use the same name | ||
178 | 110 | # that we are using for the .o file. Also, base the name on the expected | ||
179 | 111 | # object file name, since that is what matters with a parallel build. | ||
180 | 112 | lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d | ||
181 | 113 | while true; do | ||
182 | 114 | if mkdir "$lockdir" >/dev/null 2>&1; then | ||
183 | 115 | break | ||
184 | 116 | fi | ||
185 | 117 | sleep 1 | ||
186 | 118 | done | ||
187 | 119 | # FIXME: race condition here if user kills between mkdir and trap. | ||
188 | 120 | trap "rmdir '$lockdir'; exit 1" 1 2 15 | ||
189 | 121 | |||
190 | 122 | # Run the compile. | ||
191 | 123 | "$@" | ||
192 | 124 | ret=$? | ||
193 | 125 | |||
194 | 126 | if test -f "$cofile"; then | ||
195 | 127 | test "$cofile" = "$ofile" || mv "$cofile" "$ofile" | ||
196 | 128 | elif test -f "${cofile}bj"; then | ||
197 | 129 | test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" | ||
198 | 130 | fi | ||
199 | 131 | |||
200 | 132 | rmdir "$lockdir" | ||
201 | 133 | exit $ret | ||
202 | 134 | |||
203 | 135 | # Local Variables: | ||
204 | 136 | # mode: shell-script | ||
205 | 137 | # sh-indentation: 2 | ||
206 | 138 | # eval: (add-hook 'write-file-hooks 'time-stamp) | ||
207 | 139 | # time-stamp-start: "scriptversion=" | ||
208 | 140 | # time-stamp-format: "%:y-%02m-%02d.%02H" | ||
209 | 141 | # time-stamp-time-zone: "UTC" | ||
210 | 142 | # time-stamp-end: "; # UTC" | ||
211 | 143 | # End: | ||
212 | 144 | 0 | ||
213 | === removed file 'config.guess' | |||
214 | --- config.guess 2012-04-04 19:34:11 +0000 | |||
215 | +++ config.guess 1970-01-01 00:00:00 +0000 | |||
216 | @@ -1,1502 +0,0 @@ | |||
217 | 1 | #! /bin/sh | ||
218 | 2 | # Attempt to guess a canonical system name. | ||
219 | 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | ||
220 | 4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 | ||
221 | 5 | # Free Software Foundation, Inc. | ||
222 | 6 | |||
223 | 7 | timestamp='2009-12-30' | ||
224 | 8 | |||
225 | 9 | # This file is free software; you can redistribute it and/or modify it | ||
226 | 10 | # under the terms of the GNU General Public License as published by | ||
227 | 11 | # the Free Software Foundation; either version 2 of the License, or | ||
228 | 12 | # (at your option) any later version. | ||
229 | 13 | # | ||
230 | 14 | # This program is distributed in the hope that it will be useful, but | ||
231 | 15 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
232 | 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
233 | 17 | # General Public License for more details. | ||
234 | 18 | # | ||
235 | 19 | # You should have received a copy of the GNU General Public License | ||
236 | 20 | # along with this program; if not, write to the Free Software | ||
237 | 21 | # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA | ||
238 | 22 | # 02110-1301, USA. | ||
239 | 23 | # | ||
240 | 24 | # As a special exception to the GNU General Public License, if you | ||
241 | 25 | # distribute this file as part of a program that contains a | ||
242 | 26 | # configuration script generated by Autoconf, you may include it under | ||
243 | 27 | # the same distribution terms that you use for the rest of that program. | ||
244 | 28 | |||
245 | 29 | |||
246 | 30 | # Originally written by Per Bothner. Please send patches (context | ||
247 | 31 | # diff format) to <config-patches@gnu.org> and include a ChangeLog | ||
248 | 32 | # entry. | ||
249 | 33 | # | ||
250 | 34 | # This script attempts to guess a canonical system name similar to | ||
251 | 35 | # config.sub. If it succeeds, it prints the system name on stdout, and | ||
252 | 36 | # exits with 0. Otherwise, it exits with 1. | ||
253 | 37 | # | ||
254 | 38 | # You can get the latest version of this script from: | ||
255 | 39 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD | ||
256 | 40 | |||
257 | 41 | me=`echo "$0" | sed -e 's,.*/,,'` | ||
258 | 42 | |||
259 | 43 | usage="\ | ||
260 | 44 | Usage: $0 [OPTION] | ||
261 | 45 | |||
262 | 46 | Output the configuration name of the system \`$me' is run on. | ||
263 | 47 | |||
264 | 48 | Operation modes: | ||
265 | 49 | -h, --help print this help, then exit | ||
266 | 50 | -t, --time-stamp print date of last modification, then exit | ||
267 | 51 | -v, --version print version number, then exit | ||
268 | 52 | |||
269 | 53 | Report bugs and patches to <config-patches@gnu.org>." | ||
270 | 54 | |||
271 | 55 | version="\ | ||
272 | 56 | GNU config.guess ($timestamp) | ||
273 | 57 | |||
274 | 58 | Originally written by Per Bothner. | ||
275 | 59 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | ||
276 | 60 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free | ||
277 | 61 | Software Foundation, Inc. | ||
278 | 62 | |||
279 | 63 | This is free software; see the source for copying conditions. There is NO | ||
280 | 64 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | ||
281 | 65 | |||
282 | 66 | help=" | ||
283 | 67 | Try \`$me --help' for more information." | ||
284 | 68 | |||
285 | 69 | # Parse command line | ||
286 | 70 | while test $# -gt 0 ; do | ||
287 | 71 | case $1 in | ||
288 | 72 | --time-stamp | --time* | -t ) | ||
289 | 73 | echo "$timestamp" ; exit ;; | ||
290 | 74 | --version | -v ) | ||
291 | 75 | echo "$version" ; exit ;; | ||
292 | 76 | --help | --h* | -h ) | ||
293 | 77 | echo "$usage"; exit ;; | ||
294 | 78 | -- ) # Stop option processing | ||
295 | 79 | shift; break ;; | ||
296 | 80 | - ) # Use stdin as input. | ||
297 | 81 | break ;; | ||
298 | 82 | -* ) | ||
299 | 83 | echo "$me: invalid option $1$help" >&2 | ||
300 | 84 | exit 1 ;; | ||
301 | 85 | * ) | ||
302 | 86 | break ;; | ||
303 | 87 | esac | ||
304 | 88 | done | ||
305 | 89 | |||
306 | 90 | if test $# != 0; then | ||
307 | 91 | echo "$me: too many arguments$help" >&2 | ||
308 | 92 | exit 1 | ||
309 | 93 | fi | ||
310 | 94 | |||
311 | 95 | trap 'exit 1' 1 2 15 | ||
312 | 96 | |||
313 | 97 | # CC_FOR_BUILD -- compiler used by this script. Note that the use of a | ||
314 | 98 | # compiler to aid in system detection is discouraged as it requires | ||
315 | 99 | # temporary files to be created and, as you can see below, it is a | ||
316 | 100 | # headache to deal with in a portable fashion. | ||
317 | 101 | |||
318 | 102 | # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still | ||
319 | 103 | # use `HOST_CC' if defined, but it is deprecated. | ||
320 | 104 | |||
321 | 105 | # Portable tmp directory creation inspired by the Autoconf team. | ||
322 | 106 | |||
323 | 107 | set_cc_for_build=' | ||
324 | 108 | trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; | ||
325 | 109 | trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; | ||
326 | 110 | : ${TMPDIR=/tmp} ; | ||
327 | 111 | { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || | ||
328 | 112 | { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || | ||
329 | 113 | { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || | ||
330 | 114 | { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; | ||
331 | 115 | dummy=$tmp/dummy ; | ||
332 | 116 | tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; | ||
333 | 117 | case $CC_FOR_BUILD,$HOST_CC,$CC in | ||
334 | 118 | ,,) echo "int x;" > $dummy.c ; | ||
335 | 119 | for c in cc gcc c89 c99 ; do | ||
336 | 120 | if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then | ||
337 | 121 | CC_FOR_BUILD="$c"; break ; | ||
338 | 122 | fi ; | ||
339 | 123 | done ; | ||
340 | 124 | if test x"$CC_FOR_BUILD" = x ; then | ||
341 | 125 | CC_FOR_BUILD=no_compiler_found ; | ||
342 | 126 | fi | ||
343 | 127 | ;; | ||
344 | 128 | ,,*) CC_FOR_BUILD=$CC ;; | ||
345 | 129 | ,*,*) CC_FOR_BUILD=$HOST_CC ;; | ||
346 | 130 | esac ; set_cc_for_build= ;' | ||
347 | 131 | |||
348 | 132 | # This is needed to find uname on a Pyramid OSx when run in the BSD universe. | ||
349 | 133 | # (ghazi@noc.rutgers.edu 1994-08-24) | ||
350 | 134 | if (test -f /.attbin/uname) >/dev/null 2>&1 ; then | ||
351 | 135 | PATH=$PATH:/.attbin ; export PATH | ||
352 | 136 | fi | ||
353 | 137 | |||
354 | 138 | UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown | ||
355 | 139 | UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown | ||
356 | 140 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown | ||
357 | 141 | UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown | ||
358 | 142 | |||
359 | 143 | # Note: order is significant - the case branches are not exclusive. | ||
360 | 144 | |||
361 | 145 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | ||
362 | 146 | *:NetBSD:*:*) | ||
363 | 147 | # NetBSD (nbsd) targets should (where applicable) match one or | ||
364 | 148 | # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, | ||
365 | 149 | # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently | ||
366 | 150 | # switched to ELF, *-*-netbsd* would select the old | ||
367 | 151 | # object file format. This provides both forward | ||
368 | 152 | # compatibility and a consistent mechanism for selecting the | ||
369 | 153 | # object file format. | ||
370 | 154 | # | ||
371 | 155 | # Note: NetBSD doesn't particularly care about the vendor | ||
372 | 156 | # portion of the name. We always set it to "unknown". | ||
373 | 157 | sysctl="sysctl -n hw.machine_arch" | ||
374 | 158 | UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ | ||
375 | 159 | /usr/sbin/$sysctl 2>/dev/null || echo unknown)` | ||
376 | 160 | case "${UNAME_MACHINE_ARCH}" in | ||
377 | 161 | armeb) machine=armeb-unknown ;; | ||
378 | 162 | arm*) machine=arm-unknown ;; | ||
379 | 163 | sh3el) machine=shl-unknown ;; | ||
380 | 164 | sh3eb) machine=sh-unknown ;; | ||
381 | 165 | sh5el) machine=sh5le-unknown ;; | ||
382 | 166 | *) machine=${UNAME_MACHINE_ARCH}-unknown ;; | ||
383 | 167 | esac | ||
384 | 168 | # The Operating System including object format, if it has switched | ||
385 | 169 | # to ELF recently, or will in the future. | ||
386 | 170 | case "${UNAME_MACHINE_ARCH}" in | ||
387 | 171 | arm*|i386|m68k|ns32k|sh3*|sparc|vax) | ||
388 | 172 | eval $set_cc_for_build | ||
389 | 173 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | ||
390 | 174 | | grep -q __ELF__ | ||
391 | 175 | then | ||
392 | 176 | # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). | ||
393 | 177 | # Return netbsd for either. FIX? | ||
394 | 178 | os=netbsd | ||
395 | 179 | else | ||
396 | 180 | os=netbsdelf | ||
397 | 181 | fi | ||
398 | 182 | ;; | ||
399 | 183 | *) | ||
400 | 184 | os=netbsd | ||
401 | 185 | ;; | ||
402 | 186 | esac | ||
403 | 187 | # The OS release | ||
404 | 188 | # Debian GNU/NetBSD machines have a different userland, and | ||
405 | 189 | # thus, need a distinct triplet. However, they do not need | ||
406 | 190 | # kernel version information, so it can be replaced with a | ||
407 | 191 | # suitable tag, in the style of linux-gnu. | ||
408 | 192 | case "${UNAME_VERSION}" in | ||
409 | 193 | Debian*) | ||
410 | 194 | release='-gnu' | ||
411 | 195 | ;; | ||
412 | 196 | *) | ||
413 | 197 | release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | ||
414 | 198 | ;; | ||
415 | 199 | esac | ||
416 | 200 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: | ||
417 | 201 | # contains redundant information, the shorter form: | ||
418 | 202 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. | ||
419 | 203 | echo "${machine}-${os}${release}" | ||
420 | 204 | exit ;; | ||
421 | 205 | *:OpenBSD:*:*) | ||
422 | 206 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` | ||
423 | 207 | echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} | ||
424 | 208 | exit ;; | ||
425 | 209 | *:ekkoBSD:*:*) | ||
426 | 210 | echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} | ||
427 | 211 | exit ;; | ||
428 | 212 | *:SolidBSD:*:*) | ||
429 | 213 | echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} | ||
430 | 214 | exit ;; | ||
431 | 215 | macppc:MirBSD:*:*) | ||
432 | 216 | echo powerpc-unknown-mirbsd${UNAME_RELEASE} | ||
433 | 217 | exit ;; | ||
434 | 218 | *:MirBSD:*:*) | ||
435 | 219 | echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} | ||
436 | 220 | exit ;; | ||
437 | 221 | alpha:OSF1:*:*) | ||
438 | 222 | case $UNAME_RELEASE in | ||
439 | 223 | *4.0) | ||
440 | 224 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` | ||
441 | 225 | ;; | ||
442 | 226 | *5.*) | ||
443 | 227 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` | ||
444 | 228 | ;; | ||
445 | 229 | esac | ||
446 | 230 | # According to Compaq, /usr/sbin/psrinfo has been available on | ||
447 | 231 | # OSF/1 and Tru64 systems produced since 1995. I hope that | ||
448 | 232 | # covers most systems running today. This code pipes the CPU | ||
449 | 233 | # types through head -n 1, so we only detect the type of CPU 0. | ||
450 | 234 | ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` | ||
451 | 235 | case "$ALPHA_CPU_TYPE" in | ||
452 | 236 | "EV4 (21064)") | ||
453 | 237 | UNAME_MACHINE="alpha" ;; | ||
454 | 238 | "EV4.5 (21064)") | ||
455 | 239 | UNAME_MACHINE="alpha" ;; | ||
456 | 240 | "LCA4 (21066/21068)") | ||
457 | 241 | UNAME_MACHINE="alpha" ;; | ||
458 | 242 | "EV5 (21164)") | ||
459 | 243 | UNAME_MACHINE="alphaev5" ;; | ||
460 | 244 | "EV5.6 (21164A)") | ||
461 | 245 | UNAME_MACHINE="alphaev56" ;; | ||
462 | 246 | "EV5.6 (21164PC)") | ||
463 | 247 | UNAME_MACHINE="alphapca56" ;; | ||
464 | 248 | "EV5.7 (21164PC)") | ||
465 | 249 | UNAME_MACHINE="alphapca57" ;; | ||
466 | 250 | "EV6 (21264)") | ||
467 | 251 | UNAME_MACHINE="alphaev6" ;; | ||
468 | 252 | "EV6.7 (21264A)") | ||
469 | 253 | UNAME_MACHINE="alphaev67" ;; | ||
470 | 254 | "EV6.8CB (21264C)") | ||
471 | 255 | UNAME_MACHINE="alphaev68" ;; | ||
472 | 256 | "EV6.8AL (21264B)") | ||
473 | 257 | UNAME_MACHINE="alphaev68" ;; | ||
474 | 258 | "EV6.8CX (21264D)") | ||
475 | 259 | UNAME_MACHINE="alphaev68" ;; | ||
476 | 260 | "EV6.9A (21264/EV69A)") | ||
477 | 261 | UNAME_MACHINE="alphaev69" ;; | ||
478 | 262 | "EV7 (21364)") | ||
479 | 263 | UNAME_MACHINE="alphaev7" ;; | ||
480 | 264 | "EV7.9 (21364A)") | ||
481 | 265 | UNAME_MACHINE="alphaev79" ;; | ||
482 | 266 | esac | ||
483 | 267 | # A Pn.n version is a patched version. | ||
484 | 268 | # A Vn.n version is a released version. | ||
485 | 269 | # A Tn.n version is a released field test version. | ||
486 | 270 | # A Xn.n version is an unreleased experimental baselevel. | ||
487 | 271 | # 1.2 uses "1.2" for uname -r. | ||
488 | 272 | echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | ||
489 | 273 | exit ;; | ||
490 | 274 | Alpha\ *:Windows_NT*:*) | ||
491 | 275 | # How do we know it's Interix rather than the generic POSIX subsystem? | ||
492 | 276 | # Should we change UNAME_MACHINE based on the output of uname instead | ||
493 | 277 | # of the specific Alpha model? | ||
494 | 278 | echo alpha-pc-interix | ||
495 | 279 | exit ;; | ||
496 | 280 | 21064:Windows_NT:50:3) | ||
497 | 281 | echo alpha-dec-winnt3.5 | ||
498 | 282 | exit ;; | ||
499 | 283 | Amiga*:UNIX_System_V:4.0:*) | ||
500 | 284 | echo m68k-unknown-sysv4 | ||
501 | 285 | exit ;; | ||
502 | 286 | *:[Aa]miga[Oo][Ss]:*:*) | ||
503 | 287 | echo ${UNAME_MACHINE}-unknown-amigaos | ||
504 | 288 | exit ;; | ||
505 | 289 | *:[Mm]orph[Oo][Ss]:*:*) | ||
506 | 290 | echo ${UNAME_MACHINE}-unknown-morphos | ||
507 | 291 | exit ;; | ||
508 | 292 | *:OS/390:*:*) | ||
509 | 293 | echo i370-ibm-openedition | ||
510 | 294 | exit ;; | ||
511 | 295 | *:z/VM:*:*) | ||
512 | 296 | echo s390-ibm-zvmoe | ||
513 | 297 | exit ;; | ||
514 | 298 | *:OS400:*:*) | ||
515 | 299 | echo powerpc-ibm-os400 | ||
516 | 300 | exit ;; | ||
517 | 301 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) | ||
518 | 302 | echo arm-acorn-riscix${UNAME_RELEASE} | ||
519 | 303 | exit ;; | ||
520 | 304 | arm:riscos:*:*|arm:RISCOS:*:*) | ||
521 | 305 | echo arm-unknown-riscos | ||
522 | 306 | exit ;; | ||
523 | 307 | SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) | ||
524 | 308 | echo hppa1.1-hitachi-hiuxmpp | ||
525 | 309 | exit ;; | ||
526 | 310 | Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) | ||
527 | 311 | # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. | ||
528 | 312 | if test "`(/bin/universe) 2>/dev/null`" = att ; then | ||
529 | 313 | echo pyramid-pyramid-sysv3 | ||
530 | 314 | else | ||
531 | 315 | echo pyramid-pyramid-bsd | ||
532 | 316 | fi | ||
533 | 317 | exit ;; | ||
534 | 318 | NILE*:*:*:dcosx) | ||
535 | 319 | echo pyramid-pyramid-svr4 | ||
536 | 320 | exit ;; | ||
537 | 321 | DRS?6000:unix:4.0:6*) | ||
538 | 322 | echo sparc-icl-nx6 | ||
539 | 323 | exit ;; | ||
540 | 324 | DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) | ||
541 | 325 | case `/usr/bin/uname -p` in | ||
542 | 326 | sparc) echo sparc-icl-nx7; exit ;; | ||
543 | 327 | esac ;; | ||
544 | 328 | s390x:SunOS:*:*) | ||
545 | 329 | echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | ||
546 | 330 | exit ;; | ||
547 | 331 | sun4H:SunOS:5.*:*) | ||
548 | 332 | echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | ||
549 | 333 | exit ;; | ||
550 | 334 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) | ||
551 | 335 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | ||
552 | 336 | exit ;; | ||
553 | 337 | i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) | ||
554 | 338 | echo i386-pc-auroraux${UNAME_RELEASE} | ||
555 | 339 | exit ;; | ||
556 | 340 | i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) | ||
557 | 341 | eval $set_cc_for_build | ||
558 | 342 | SUN_ARCH="i386" | ||
559 | 343 | # If there is a compiler, see if it is configured for 64-bit objects. | ||
560 | 344 | # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. | ||
561 | 345 | # This test works for both compilers. | ||
562 | 346 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | ||
563 | 347 | if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ | ||
564 | 348 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | ||
565 | 349 | grep IS_64BIT_ARCH >/dev/null | ||
566 | 350 | then | ||
567 | 351 | SUN_ARCH="x86_64" | ||
568 | 352 | fi | ||
569 | 353 | fi | ||
570 | 354 | echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | ||
571 | 355 | exit ;; | ||
572 | 356 | sun4*:SunOS:6*:*) | ||
573 | 357 | # According to config.sub, this is the proper way to canonicalize | ||
574 | 358 | # SunOS6. Hard to guess exactly what SunOS6 will be like, but | ||
575 | 359 | # it's likely to be more like Solaris than SunOS4. | ||
576 | 360 | echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | ||
577 | 361 | exit ;; | ||
578 | 362 | sun4*:SunOS:*:*) | ||
579 | 363 | case "`/usr/bin/arch -k`" in | ||
580 | 364 | Series*|S4*) | ||
581 | 365 | UNAME_RELEASE=`uname -v` | ||
582 | 366 | ;; | ||
583 | 367 | esac | ||
584 | 368 | # Japanese Language versions have a version number like `4.1.3-JL'. | ||
585 | 369 | echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` | ||
586 | 370 | exit ;; | ||
587 | 371 | sun3*:SunOS:*:*) | ||
588 | 372 | echo m68k-sun-sunos${UNAME_RELEASE} | ||
589 | 373 | exit ;; | ||
590 | 374 | sun*:*:4.2BSD:*) | ||
591 | 375 | UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` | ||
592 | 376 | test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 | ||
593 | 377 | case "`/bin/arch`" in | ||
594 | 378 | sun3) | ||
595 | 379 | echo m68k-sun-sunos${UNAME_RELEASE} | ||
596 | 380 | ;; | ||
597 | 381 | sun4) | ||
598 | 382 | echo sparc-sun-sunos${UNAME_RELEASE} | ||
599 | 383 | ;; | ||
600 | 384 | esac | ||
601 | 385 | exit ;; | ||
602 | 386 | aushp:SunOS:*:*) | ||
603 | 387 | echo sparc-auspex-sunos${UNAME_RELEASE} | ||
604 | 388 | exit ;; | ||
605 | 389 | # The situation for MiNT is a little confusing. The machine name | ||
606 | 390 | # can be virtually everything (everything which is not | ||
607 | 391 | # "atarist" or "atariste" at least should have a processor | ||
608 | 392 | # > m68000). The system name ranges from "MiNT" over "FreeMiNT" | ||
609 | 393 | # to the lowercase version "mint" (or "freemint"). Finally | ||
610 | 394 | # the system name "TOS" denotes a system which is actually not | ||
611 | 395 | # MiNT. But MiNT is downward compatible to TOS, so this should | ||
612 | 396 | # be no problem. | ||
613 | 397 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) | ||
614 | 398 | echo m68k-atari-mint${UNAME_RELEASE} | ||
615 | 399 | exit ;; | ||
616 | 400 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) | ||
617 | 401 | echo m68k-atari-mint${UNAME_RELEASE} | ||
618 | 402 | exit ;; | ||
619 | 403 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) | ||
620 | 404 | echo m68k-atari-mint${UNAME_RELEASE} | ||
621 | 405 | exit ;; | ||
622 | 406 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) | ||
623 | 407 | echo m68k-milan-mint${UNAME_RELEASE} | ||
624 | 408 | exit ;; | ||
625 | 409 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) | ||
626 | 410 | echo m68k-hades-mint${UNAME_RELEASE} | ||
627 | 411 | exit ;; | ||
628 | 412 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) | ||
629 | 413 | echo m68k-unknown-mint${UNAME_RELEASE} | ||
630 | 414 | exit ;; | ||
631 | 415 | m68k:machten:*:*) | ||
632 | 416 | echo m68k-apple-machten${UNAME_RELEASE} | ||
633 | 417 | exit ;; | ||
634 | 418 | powerpc:machten:*:*) | ||
635 | 419 | echo powerpc-apple-machten${UNAME_RELEASE} | ||
636 | 420 | exit ;; | ||
637 | 421 | RISC*:Mach:*:*) | ||
638 | 422 | echo mips-dec-mach_bsd4.3 | ||
639 | 423 | exit ;; | ||
640 | 424 | RISC*:ULTRIX:*:*) | ||
641 | 425 | echo mips-dec-ultrix${UNAME_RELEASE} | ||
642 | 426 | exit ;; | ||
643 | 427 | VAX*:ULTRIX*:*:*) | ||
644 | 428 | echo vax-dec-ultrix${UNAME_RELEASE} | ||
645 | 429 | exit ;; | ||
646 | 430 | 2020:CLIX:*:* | 2430:CLIX:*:*) | ||
647 | 431 | echo clipper-intergraph-clix${UNAME_RELEASE} | ||
648 | 432 | exit ;; | ||
649 | 433 | mips:*:*:UMIPS | mips:*:*:RISCos) | ||
650 | 434 | eval $set_cc_for_build | ||
651 | 435 | sed 's/^ //' << EOF >$dummy.c | ||
652 | 436 | #ifdef __cplusplus | ||
653 | 437 | #include <stdio.h> /* for printf() prototype */ | ||
654 | 438 | int main (int argc, char *argv[]) { | ||
655 | 439 | #else | ||
656 | 440 | int main (argc, argv) int argc; char *argv[]; { | ||
657 | 441 | #endif | ||
658 | 442 | #if defined (host_mips) && defined (MIPSEB) | ||
659 | 443 | #if defined (SYSTYPE_SYSV) | ||
660 | 444 | printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); | ||
661 | 445 | #endif | ||
662 | 446 | #if defined (SYSTYPE_SVR4) | ||
663 | 447 | printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); | ||
664 | 448 | #endif | ||
665 | 449 | #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) | ||
666 | 450 | printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); | ||
667 | 451 | #endif | ||
668 | 452 | #endif | ||
669 | 453 | exit (-1); | ||
670 | 454 | } | ||
671 | 455 | EOF | ||
672 | 456 | $CC_FOR_BUILD -o $dummy $dummy.c && | ||
673 | 457 | dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && | ||
674 | 458 | SYSTEM_NAME=`$dummy $dummyarg` && | ||
675 | 459 | { echo "$SYSTEM_NAME"; exit; } | ||
676 | 460 | echo mips-mips-riscos${UNAME_RELEASE} | ||
677 | 461 | exit ;; | ||
678 | 462 | Motorola:PowerMAX_OS:*:*) | ||
679 | 463 | echo powerpc-motorola-powermax | ||
680 | 464 | exit ;; | ||
681 | 465 | Motorola:*:4.3:PL8-*) | ||
682 | 466 | echo powerpc-harris-powermax | ||
683 | 467 | exit ;; | ||
684 | 468 | Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) | ||
685 | 469 | echo powerpc-harris-powermax | ||
686 | 470 | exit ;; | ||
687 | 471 | Night_Hawk:Power_UNIX:*:*) | ||
688 | 472 | echo powerpc-harris-powerunix | ||
689 | 473 | exit ;; | ||
690 | 474 | m88k:CX/UX:7*:*) | ||
691 | 475 | echo m88k-harris-cxux7 | ||
692 | 476 | exit ;; | ||
693 | 477 | m88k:*:4*:R4*) | ||
694 | 478 | echo m88k-motorola-sysv4 | ||
695 | 479 | exit ;; | ||
696 | 480 | m88k:*:3*:R3*) | ||
697 | 481 | echo m88k-motorola-sysv3 | ||
698 | 482 | exit ;; | ||
699 | 483 | AViiON:dgux:*:*) | ||
700 | 484 | # DG/UX returns AViiON for all architectures | ||
701 | 485 | UNAME_PROCESSOR=`/usr/bin/uname -p` | ||
702 | 486 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] | ||
703 | 487 | then | ||
704 | 488 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ | ||
705 | 489 | [ ${TARGET_BINARY_INTERFACE}x = x ] | ||
706 | 490 | then | ||
707 | 491 | echo m88k-dg-dgux${UNAME_RELEASE} | ||
708 | 492 | else | ||
709 | 493 | echo m88k-dg-dguxbcs${UNAME_RELEASE} | ||
710 | 494 | fi | ||
711 | 495 | else | ||
712 | 496 | echo i586-dg-dgux${UNAME_RELEASE} | ||
713 | 497 | fi | ||
714 | 498 | exit ;; | ||
715 | 499 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) | ||
716 | 500 | echo m88k-dolphin-sysv3 | ||
717 | 501 | exit ;; | ||
718 | 502 | M88*:*:R3*:*) | ||
719 | 503 | # Delta 88k system running SVR3 | ||
720 | 504 | echo m88k-motorola-sysv3 | ||
721 | 505 | exit ;; | ||
722 | 506 | XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) | ||
723 | 507 | echo m88k-tektronix-sysv3 | ||
724 | 508 | exit ;; | ||
725 | 509 | Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) | ||
726 | 510 | echo m68k-tektronix-bsd | ||
727 | 511 | exit ;; | ||
728 | 512 | *:IRIX*:*:*) | ||
729 | 513 | echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` | ||
730 | 514 | exit ;; | ||
731 | 515 | ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. | ||
732 | 516 | echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id | ||
733 | 517 | exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' | ||
734 | 518 | i*86:AIX:*:*) | ||
735 | 519 | echo i386-ibm-aix | ||
736 | 520 | exit ;; | ||
737 | 521 | ia64:AIX:*:*) | ||
738 | 522 | if [ -x /usr/bin/oslevel ] ; then | ||
739 | 523 | IBM_REV=`/usr/bin/oslevel` | ||
740 | 524 | else | ||
741 | 525 | IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | ||
742 | 526 | fi | ||
743 | 527 | echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} | ||
744 | 528 | exit ;; | ||
745 | 529 | *:AIX:2:3) | ||
746 | 530 | if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then | ||
747 | 531 | eval $set_cc_for_build | ||
748 | 532 | sed 's/^ //' << EOF >$dummy.c | ||
749 | 533 | #include <sys/systemcfg.h> | ||
750 | 534 | |||
751 | 535 | main() | ||
752 | 536 | { | ||
753 | 537 | if (!__power_pc()) | ||
754 | 538 | exit(1); | ||
755 | 539 | puts("powerpc-ibm-aix3.2.5"); | ||
756 | 540 | exit(0); | ||
757 | 541 | } | ||
758 | 542 | EOF | ||
759 | 543 | if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` | ||
760 | 544 | then | ||
761 | 545 | echo "$SYSTEM_NAME" | ||
762 | 546 | else | ||
763 | 547 | echo rs6000-ibm-aix3.2.5 | ||
764 | 548 | fi | ||
765 | 549 | elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then | ||
766 | 550 | echo rs6000-ibm-aix3.2.4 | ||
767 | 551 | else | ||
768 | 552 | echo rs6000-ibm-aix3.2 | ||
769 | 553 | fi | ||
770 | 554 | exit ;; | ||
771 | 555 | *:AIX:*:[456]) | ||
772 | 556 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` | ||
773 | 557 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then | ||
774 | 558 | IBM_ARCH=rs6000 | ||
775 | 559 | else | ||
776 | 560 | IBM_ARCH=powerpc | ||
777 | 561 | fi | ||
778 | 562 | if [ -x /usr/bin/oslevel ] ; then | ||
779 | 563 | IBM_REV=`/usr/bin/oslevel` | ||
780 | 564 | else | ||
781 | 565 | IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | ||
782 | 566 | fi | ||
783 | 567 | echo ${IBM_ARCH}-ibm-aix${IBM_REV} | ||
784 | 568 | exit ;; | ||
785 | 569 | *:AIX:*:*) | ||
786 | 570 | echo rs6000-ibm-aix | ||
787 | 571 | exit ;; | ||
788 | 572 | ibmrt:4.4BSD:*|romp-ibm:BSD:*) | ||
789 | 573 | echo romp-ibm-bsd4.4 | ||
790 | 574 | exit ;; | ||
791 | 575 | ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and | ||
792 | 576 | echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to | ||
793 | 577 | exit ;; # report: romp-ibm BSD 4.3 | ||
794 | 578 | *:BOSX:*:*) | ||
795 | 579 | echo rs6000-bull-bosx | ||
796 | 580 | exit ;; | ||
797 | 581 | DPX/2?00:B.O.S.:*:*) | ||
798 | 582 | echo m68k-bull-sysv3 | ||
799 | 583 | exit ;; | ||
800 | 584 | 9000/[34]??:4.3bsd:1.*:*) | ||
801 | 585 | echo m68k-hp-bsd | ||
802 | 586 | exit ;; | ||
803 | 587 | hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) | ||
804 | 588 | echo m68k-hp-bsd4.4 | ||
805 | 589 | exit ;; | ||
806 | 590 | 9000/[34678]??:HP-UX:*:*) | ||
807 | 591 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | ||
808 | 592 | case "${UNAME_MACHINE}" in | ||
809 | 593 | 9000/31? ) HP_ARCH=m68000 ;; | ||
810 | 594 | 9000/[34]?? ) HP_ARCH=m68k ;; | ||
811 | 595 | 9000/[678][0-9][0-9]) | ||
812 | 596 | if [ -x /usr/bin/getconf ]; then | ||
813 | 597 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` | ||
814 | 598 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` | ||
815 | 599 | case "${sc_cpu_version}" in | ||
816 | 600 | 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 | ||
817 | 601 | 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 | ||
818 | 602 | 532) # CPU_PA_RISC2_0 | ||
819 | 603 | case "${sc_kernel_bits}" in | ||
820 | 604 | 32) HP_ARCH="hppa2.0n" ;; | ||
821 | 605 | 64) HP_ARCH="hppa2.0w" ;; | ||
822 | 606 | '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 | ||
823 | 607 | esac ;; | ||
824 | 608 | esac | ||
825 | 609 | fi | ||
826 | 610 | if [ "${HP_ARCH}" = "" ]; then | ||
827 | 611 | eval $set_cc_for_build | ||
828 | 612 | sed 's/^ //' << EOF >$dummy.c | ||
829 | 613 | |||
830 | 614 | #define _HPUX_SOURCE | ||
831 | 615 | #include <stdlib.h> | ||
832 | 616 | #include <unistd.h> | ||
833 | 617 | |||
834 | 618 | int main () | ||
835 | 619 | { | ||
836 | 620 | #if defined(_SC_KERNEL_BITS) | ||
837 | 621 | long bits = sysconf(_SC_KERNEL_BITS); | ||
838 | 622 | #endif | ||
839 | 623 | long cpu = sysconf (_SC_CPU_VERSION); | ||
840 | 624 | |||
841 | 625 | switch (cpu) | ||
842 | 626 | { | ||
843 | 627 | case CPU_PA_RISC1_0: puts ("hppa1.0"); break; | ||
844 | 628 | case CPU_PA_RISC1_1: puts ("hppa1.1"); break; | ||
845 | 629 | case CPU_PA_RISC2_0: | ||
846 | 630 | #if defined(_SC_KERNEL_BITS) | ||
847 | 631 | switch (bits) | ||
848 | 632 | { | ||
849 | 633 | case 64: puts ("hppa2.0w"); break; | ||
850 | 634 | case 32: puts ("hppa2.0n"); break; | ||
851 | 635 | default: puts ("hppa2.0"); break; | ||
852 | 636 | } break; | ||
853 | 637 | #else /* !defined(_SC_KERNEL_BITS) */ | ||
854 | 638 | puts ("hppa2.0"); break; | ||
855 | 639 | #endif | ||
856 | 640 | default: puts ("hppa1.0"); break; | ||
857 | 641 | } | ||
858 | 642 | exit (0); | ||
859 | 643 | } | ||
860 | 644 | EOF | ||
861 | 645 | (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` | ||
862 | 646 | test -z "$HP_ARCH" && HP_ARCH=hppa | ||
863 | 647 | fi ;; | ||
864 | 648 | esac | ||
865 | 649 | if [ ${HP_ARCH} = "hppa2.0w" ] | ||
866 | 650 | then | ||
867 | 651 | eval $set_cc_for_build | ||
868 | 652 | |||
869 | 653 | # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating | ||
870 | 654 | # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler | ||
871 | 655 | # generating 64-bit code. GNU and HP use different nomenclature: | ||
872 | 656 | # | ||
873 | 657 | # $ CC_FOR_BUILD=cc ./config.guess | ||
874 | 658 | # => hppa2.0w-hp-hpux11.23 | ||
875 | 659 | # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess | ||
876 | 660 | # => hppa64-hp-hpux11.23 | ||
877 | 661 | |||
878 | 662 | if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | | ||
879 | 663 | grep -q __LP64__ | ||
880 | 664 | then | ||
881 | 665 | HP_ARCH="hppa2.0w" | ||
882 | 666 | else | ||
883 | 667 | HP_ARCH="hppa64" | ||
884 | 668 | fi | ||
885 | 669 | fi | ||
886 | 670 | echo ${HP_ARCH}-hp-hpux${HPUX_REV} | ||
887 | 671 | exit ;; | ||
888 | 672 | ia64:HP-UX:*:*) | ||
889 | 673 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | ||
890 | 674 | echo ia64-hp-hpux${HPUX_REV} | ||
891 | 675 | exit ;; | ||
892 | 676 | 3050*:HI-UX:*:*) | ||
893 | 677 | eval $set_cc_for_build | ||
894 | 678 | sed 's/^ //' << EOF >$dummy.c | ||
895 | 679 | #include <unistd.h> | ||
896 | 680 | int | ||
897 | 681 | main () | ||
898 | 682 | { | ||
899 | 683 | long cpu = sysconf (_SC_CPU_VERSION); | ||
900 | 684 | /* The order matters, because CPU_IS_HP_MC68K erroneously returns | ||
901 | 685 | true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct | ||
902 | 686 | results, however. */ | ||
903 | 687 | if (CPU_IS_PA_RISC (cpu)) | ||
904 | 688 | { | ||
905 | 689 | switch (cpu) | ||
906 | 690 | { | ||
907 | 691 | case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; | ||
908 | 692 | case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; | ||
909 | 693 | case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; | ||
910 | 694 | default: puts ("hppa-hitachi-hiuxwe2"); break; | ||
911 | 695 | } | ||
912 | 696 | } | ||
913 | 697 | else if (CPU_IS_HP_MC68K (cpu)) | ||
914 | 698 | puts ("m68k-hitachi-hiuxwe2"); | ||
915 | 699 | else puts ("unknown-hitachi-hiuxwe2"); | ||
916 | 700 | exit (0); | ||
917 | 701 | } | ||
918 | 702 | EOF | ||
919 | 703 | $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && | ||
920 | 704 | { echo "$SYSTEM_NAME"; exit; } | ||
921 | 705 | echo unknown-hitachi-hiuxwe2 | ||
922 | 706 | exit ;; | ||
923 | 707 | 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) | ||
924 | 708 | echo hppa1.1-hp-bsd | ||
925 | 709 | exit ;; | ||
926 | 710 | 9000/8??:4.3bsd:*:*) | ||
927 | 711 | echo hppa1.0-hp-bsd | ||
928 | 712 | exit ;; | ||
929 | 713 | *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) | ||
930 | 714 | echo hppa1.0-hp-mpeix | ||
931 | 715 | exit ;; | ||
932 | 716 | hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) | ||
933 | 717 | echo hppa1.1-hp-osf | ||
934 | 718 | exit ;; | ||
935 | 719 | hp8??:OSF1:*:*) | ||
936 | 720 | echo hppa1.0-hp-osf | ||
937 | 721 | exit ;; | ||
938 | 722 | i*86:OSF1:*:*) | ||
939 | 723 | if [ -x /usr/sbin/sysversion ] ; then | ||
940 | 724 | echo ${UNAME_MACHINE}-unknown-osf1mk | ||
941 | 725 | else | ||
942 | 726 | echo ${UNAME_MACHINE}-unknown-osf1 | ||
943 | 727 | fi | ||
944 | 728 | exit ;; | ||
945 | 729 | parisc*:Lites*:*:*) | ||
946 | 730 | echo hppa1.1-hp-lites | ||
947 | 731 | exit ;; | ||
948 | 732 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) | ||
949 | 733 | echo c1-convex-bsd | ||
950 | 734 | exit ;; | ||
951 | 735 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) | ||
952 | 736 | if getsysinfo -f scalar_acc | ||
953 | 737 | then echo c32-convex-bsd | ||
954 | 738 | else echo c2-convex-bsd | ||
955 | 739 | fi | ||
956 | 740 | exit ;; | ||
957 | 741 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) | ||
958 | 742 | echo c34-convex-bsd | ||
959 | 743 | exit ;; | ||
960 | 744 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) | ||
961 | 745 | echo c38-convex-bsd | ||
962 | 746 | exit ;; | ||
963 | 747 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) | ||
964 | 748 | echo c4-convex-bsd | ||
965 | 749 | exit ;; | ||
966 | 750 | CRAY*Y-MP:*:*:*) | ||
967 | 751 | echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | ||
968 | 752 | exit ;; | ||
969 | 753 | CRAY*[A-Z]90:*:*:*) | ||
970 | 754 | echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | ||
971 | 755 | | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ | ||
972 | 756 | -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ | ||
973 | 757 | -e 's/\.[^.]*$/.X/' | ||
974 | 758 | exit ;; | ||
975 | 759 | CRAY*TS:*:*:*) | ||
976 | 760 | echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | ||
977 | 761 | exit ;; | ||
978 | 762 | CRAY*T3E:*:*:*) | ||
979 | 763 | echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | ||
980 | 764 | exit ;; | ||
981 | 765 | CRAY*SV1:*:*:*) | ||
982 | 766 | echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | ||
983 | 767 | exit ;; | ||
984 | 768 | *:UNICOS/mp:*:*) | ||
985 | 769 | echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | ||
986 | 770 | exit ;; | ||
987 | 771 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) | ||
988 | 772 | FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | ||
989 | 773 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | ||
990 | 774 | FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` | ||
991 | 775 | echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | ||
992 | 776 | exit ;; | ||
993 | 777 | 5000:UNIX_System_V:4.*:*) | ||
994 | 778 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | ||
995 | 779 | FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` | ||
996 | 780 | echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | ||
997 | 781 | exit ;; | ||
998 | 782 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) | ||
999 | 783 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} | ||
1000 | 784 | exit ;; | ||
1001 | 785 | sparc*:BSD/OS:*:*) | ||
1002 | 786 | echo sparc-unknown-bsdi${UNAME_RELEASE} | ||
1003 | 787 | exit ;; | ||
1004 | 788 | *:BSD/OS:*:*) | ||
1005 | 789 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} | ||
1006 | 790 | exit ;; | ||
1007 | 791 | *:FreeBSD:*:*) | ||
1008 | 792 | case ${UNAME_MACHINE} in | ||
1009 | 793 | pc98) | ||
1010 | 794 | echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | ||
1011 | 795 | amd64) | ||
1012 | 796 | echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | ||
1013 | 797 | *) | ||
1014 | 798 | echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | ||
1015 | 799 | esac | ||
1016 | 800 | exit ;; | ||
1017 | 801 | i*:CYGWIN*:*) | ||
1018 | 802 | echo ${UNAME_MACHINE}-pc-cygwin | ||
1019 | 803 | exit ;; | ||
1020 | 804 | *:MINGW*:*) | ||
1021 | 805 | echo ${UNAME_MACHINE}-pc-mingw32 | ||
1022 | 806 | exit ;; | ||
1023 | 807 | i*:windows32*:*) | ||
1024 | 808 | # uname -m includes "-pc" on this system. | ||
1025 | 809 | echo ${UNAME_MACHINE}-mingw32 | ||
1026 | 810 | exit ;; | ||
1027 | 811 | i*:PW*:*) | ||
1028 | 812 | echo ${UNAME_MACHINE}-pc-pw32 | ||
1029 | 813 | exit ;; | ||
1030 | 814 | *:Interix*:*) | ||
1031 | 815 | case ${UNAME_MACHINE} in | ||
1032 | 816 | x86) | ||
1033 | 817 | echo i586-pc-interix${UNAME_RELEASE} | ||
1034 | 818 | exit ;; | ||
1035 | 819 | authenticamd | genuineintel | EM64T) | ||
1036 | 820 | echo x86_64-unknown-interix${UNAME_RELEASE} | ||
1037 | 821 | exit ;; | ||
1038 | 822 | IA64) | ||
1039 | 823 | echo ia64-unknown-interix${UNAME_RELEASE} | ||
1040 | 824 | exit ;; | ||
1041 | 825 | esac ;; | ||
1042 | 826 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) | ||
1043 | 827 | echo i${UNAME_MACHINE}-pc-mks | ||
1044 | 828 | exit ;; | ||
1045 | 829 | 8664:Windows_NT:*) | ||
1046 | 830 | echo x86_64-pc-mks | ||
1047 | 831 | exit ;; | ||
1048 | 832 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) | ||
1049 | 833 | # How do we know it's Interix rather than the generic POSIX subsystem? | ||
1050 | 834 | # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we | ||
1051 | 835 | # UNAME_MACHINE based on the output of uname instead of i386? | ||
1052 | 836 | echo i586-pc-interix | ||
1053 | 837 | exit ;; | ||
1054 | 838 | i*:UWIN*:*) | ||
1055 | 839 | echo ${UNAME_MACHINE}-pc-uwin | ||
1056 | 840 | exit ;; | ||
1057 | 841 | amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) | ||
1058 | 842 | echo x86_64-unknown-cygwin | ||
1059 | 843 | exit ;; | ||
1060 | 844 | p*:CYGWIN*:*) | ||
1061 | 845 | echo powerpcle-unknown-cygwin | ||
1062 | 846 | exit ;; | ||
1063 | 847 | prep*:SunOS:5.*:*) | ||
1064 | 848 | echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | ||
1065 | 849 | exit ;; | ||
1066 | 850 | *:GNU:*:*) | ||
1067 | 851 | # the GNU system | ||
1068 | 852 | echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | ||
1069 | 853 | exit ;; | ||
1070 | 854 | *:GNU/*:*:*) | ||
1071 | 855 | # other systems with GNU libc and userland | ||
1072 | 856 | echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu | ||
1073 | 857 | exit ;; | ||
1074 | 858 | i*86:Minix:*:*) | ||
1075 | 859 | echo ${UNAME_MACHINE}-pc-minix | ||
1076 | 860 | exit ;; | ||
1077 | 861 | alpha:Linux:*:*) | ||
1078 | 862 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in | ||
1079 | 863 | EV5) UNAME_MACHINE=alphaev5 ;; | ||
1080 | 864 | EV56) UNAME_MACHINE=alphaev56 ;; | ||
1081 | 865 | PCA56) UNAME_MACHINE=alphapca56 ;; | ||
1082 | 866 | PCA57) UNAME_MACHINE=alphapca56 ;; | ||
1083 | 867 | EV6) UNAME_MACHINE=alphaev6 ;; | ||
1084 | 868 | EV67) UNAME_MACHINE=alphaev67 ;; | ||
1085 | 869 | EV68*) UNAME_MACHINE=alphaev68 ;; | ||
1086 | 870 | esac | ||
1087 | 871 | objdump --private-headers /bin/sh | grep -q ld.so.1 | ||
1088 | 872 | if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi | ||
1089 | 873 | echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} | ||
1090 | 874 | exit ;; | ||
1091 | 875 | arm*:Linux:*:*) | ||
1092 | 876 | eval $set_cc_for_build | ||
1093 | 877 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | ||
1094 | 878 | | grep -q __ARM_EABI__ | ||
1095 | 879 | then | ||
1096 | 880 | echo ${UNAME_MACHINE}-unknown-linux-gnu | ||
1097 | 881 | else | ||
1098 | 882 | echo ${UNAME_MACHINE}-unknown-linux-gnueabi | ||
1099 | 883 | fi | ||
1100 | 884 | exit ;; | ||
1101 | 885 | avr32*:Linux:*:*) | ||
1102 | 886 | echo ${UNAME_MACHINE}-unknown-linux-gnu | ||
1103 | 887 | exit ;; | ||
1104 | 888 | cris:Linux:*:*) | ||
1105 | 889 | echo cris-axis-linux-gnu | ||
1106 | 890 | exit ;; | ||
1107 | 891 | crisv32:Linux:*:*) | ||
1108 | 892 | echo crisv32-axis-linux-gnu | ||
1109 | 893 | exit ;; | ||
1110 | 894 | frv:Linux:*:*) | ||
1111 | 895 | echo frv-unknown-linux-gnu | ||
1112 | 896 | exit ;; | ||
1113 | 897 | i*86:Linux:*:*) | ||
1114 | 898 | LIBC=gnu | ||
1115 | 899 | eval $set_cc_for_build | ||
1116 | 900 | sed 's/^ //' << EOF >$dummy.c | ||
1117 | 901 | #ifdef __dietlibc__ | ||
1118 | 902 | LIBC=dietlibc | ||
1119 | 903 | #endif | ||
1120 | 904 | EOF | ||
1121 | 905 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` | ||
1122 | 906 | echo "${UNAME_MACHINE}-pc-linux-${LIBC}" | ||
1123 | 907 | exit ;; | ||
1124 | 908 | ia64:Linux:*:*) | ||
1125 | 909 | echo ${UNAME_MACHINE}-unknown-linux-gnu | ||
1126 | 910 | exit ;; | ||
1127 | 911 | m32r*:Linux:*:*) | ||
1128 | 912 | echo ${UNAME_MACHINE}-unknown-linux-gnu | ||
1129 | 913 | exit ;; | ||
1130 | 914 | m68*:Linux:*:*) | ||
1131 | 915 | echo ${UNAME_MACHINE}-unknown-linux-gnu | ||
1132 | 916 | exit ;; | ||
1133 | 917 | mips:Linux:*:* | mips64:Linux:*:*) | ||
1134 | 918 | eval $set_cc_for_build | ||
1135 | 919 | sed 's/^ //' << EOF >$dummy.c | ||
1136 | 920 | #undef CPU | ||
1137 | 921 | #undef ${UNAME_MACHINE} | ||
1138 | 922 | #undef ${UNAME_MACHINE}el | ||
1139 | 923 | #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | ||
1140 | 924 | CPU=${UNAME_MACHINE}el | ||
1141 | 925 | #else | ||
1142 | 926 | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | ||
1143 | 927 | CPU=${UNAME_MACHINE} | ||
1144 | 928 | #else | ||
1145 | 929 | CPU= | ||
1146 | 930 | #endif | ||
1147 | 931 | #endif | ||
1148 | 932 | EOF | ||
1149 | 933 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` | ||
1150 | 934 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | ||
1151 | 935 | ;; | ||
1152 | 936 | or32:Linux:*:*) | ||
1153 | 937 | echo or32-unknown-linux-gnu | ||
1154 | 938 | exit ;; | ||
1155 | 939 | padre:Linux:*:*) | ||
1156 | 940 | echo sparc-unknown-linux-gnu | ||
1157 | 941 | exit ;; | ||
1158 | 942 | parisc64:Linux:*:* | hppa64:Linux:*:*) | ||
1159 | 943 | echo hppa64-unknown-linux-gnu | ||
1160 | 944 | exit ;; | ||
1161 | 945 | parisc:Linux:*:* | hppa:Linux:*:*) | ||
1162 | 946 | # Look for CPU level | ||
1163 | 947 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in | ||
1164 | 948 | PA7*) echo hppa1.1-unknown-linux-gnu ;; | ||
1165 | 949 | PA8*) echo hppa2.0-unknown-linux-gnu ;; | ||
1166 | 950 | *) echo hppa-unknown-linux-gnu ;; | ||
1167 | 951 | esac | ||
1168 | 952 | exit ;; | ||
1169 | 953 | ppc64:Linux:*:*) | ||
1170 | 954 | echo powerpc64-unknown-linux-gnu | ||
1171 | 955 | exit ;; | ||
1172 | 956 | ppc:Linux:*:*) | ||
1173 | 957 | echo powerpc-unknown-linux-gnu | ||
1174 | 958 | exit ;; | ||
1175 | 959 | s390:Linux:*:* | s390x:Linux:*:*) | ||
1176 | 960 | echo ${UNAME_MACHINE}-ibm-linux | ||
1177 | 961 | exit ;; | ||
1178 | 962 | sh64*:Linux:*:*) | ||
1179 | 963 | echo ${UNAME_MACHINE}-unknown-linux-gnu | ||
1180 | 964 | exit ;; | ||
1181 | 965 | sh*:Linux:*:*) | ||
1182 | 966 | echo ${UNAME_MACHINE}-unknown-linux-gnu | ||
1183 | 967 | exit ;; | ||
1184 | 968 | sparc:Linux:*:* | sparc64:Linux:*:*) | ||
1185 | 969 | echo ${UNAME_MACHINE}-unknown-linux-gnu | ||
1186 | 970 | exit ;; | ||
1187 | 971 | vax:Linux:*:*) | ||
1188 | 972 | echo ${UNAME_MACHINE}-dec-linux-gnu | ||
1189 | 973 | exit ;; | ||
1190 | 974 | x86_64:Linux:*:*) | ||
1191 | 975 | echo x86_64-unknown-linux-gnu | ||
1192 | 976 | exit ;; | ||
1193 | 977 | xtensa*:Linux:*:*) | ||
1194 | 978 | echo ${UNAME_MACHINE}-unknown-linux-gnu | ||
1195 | 979 | exit ;; | ||
1196 | 980 | i*86:DYNIX/ptx:4*:*) | ||
1197 | 981 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. | ||
1198 | 982 | # earlier versions are messed up and put the nodename in both | ||
1199 | 983 | # sysname and nodename. | ||
1200 | 984 | echo i386-sequent-sysv4 | ||
1201 | 985 | exit ;; | ||
1202 | 986 | i*86:UNIX_SV:4.2MP:2.*) | ||
1203 | 987 | # Unixware is an offshoot of SVR4, but it has its own version | ||
1204 | 988 | # number series starting with 2... | ||
1205 | 989 | # I am not positive that other SVR4 systems won't match this, | ||
1206 | 990 | # I just have to hope. -- rms. | ||
1207 | 991 | # Use sysv4.2uw... so that sysv4* matches it. | ||
1208 | 992 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} | ||
1209 | 993 | exit ;; | ||
1210 | 994 | i*86:OS/2:*:*) | ||
1211 | 995 | # If we were able to find `uname', then EMX Unix compatibility | ||
1212 | 996 | # is probably installed. | ||
1213 | 997 | echo ${UNAME_MACHINE}-pc-os2-emx | ||
1214 | 998 | exit ;; | ||
1215 | 999 | i*86:XTS-300:*:STOP) | ||
1216 | 1000 | echo ${UNAME_MACHINE}-unknown-stop | ||
1217 | 1001 | exit ;; | ||
1218 | 1002 | i*86:atheos:*:*) | ||
1219 | 1003 | echo ${UNAME_MACHINE}-unknown-atheos | ||
1220 | 1004 | exit ;; | ||
1221 | 1005 | i*86:syllable:*:*) | ||
1222 | 1006 | echo ${UNAME_MACHINE}-pc-syllable | ||
1223 | 1007 | exit ;; | ||
1224 | 1008 | i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) | ||
1225 | 1009 | echo i386-unknown-lynxos${UNAME_RELEASE} | ||
1226 | 1010 | exit ;; | ||
1227 | 1011 | i*86:*DOS:*:*) | ||
1228 | 1012 | echo ${UNAME_MACHINE}-pc-msdosdjgpp | ||
1229 | 1013 | exit ;; | ||
1230 | 1014 | i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) | ||
1231 | 1015 | UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` | ||
1232 | 1016 | if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then | ||
1233 | 1017 | echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} | ||
1234 | 1018 | else | ||
1235 | 1019 | echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} | ||
1236 | 1020 | fi | ||
1237 | 1021 | exit ;; | ||
1238 | 1022 | i*86:*:5:[678]*) | ||
1239 | 1023 | # UnixWare 7.x, OpenUNIX and OpenServer 6. | ||
1240 | 1024 | case `/bin/uname -X | grep "^Machine"` in | ||
1241 | 1025 | *486*) UNAME_MACHINE=i486 ;; | ||
1242 | 1026 | *Pentium) UNAME_MACHINE=i586 ;; | ||
1243 | 1027 | *Pent*|*Celeron) UNAME_MACHINE=i686 ;; | ||
1244 | 1028 | esac | ||
1245 | 1029 | echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} | ||
1246 | 1030 | exit ;; | ||
1247 | 1031 | i*86:*:3.2:*) | ||
1248 | 1032 | if test -f /usr/options/cb.name; then | ||
1249 | 1033 | UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` | ||
1250 | 1034 | echo ${UNAME_MACHINE}-pc-isc$UNAME_REL | ||
1251 | 1035 | elif /bin/uname -X 2>/dev/null >/dev/null ; then | ||
1252 | 1036 | UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` | ||
1253 | 1037 | (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 | ||
1254 | 1038 | (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ | ||
1255 | 1039 | && UNAME_MACHINE=i586 | ||
1256 | 1040 | (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ | ||
1257 | 1041 | && UNAME_MACHINE=i686 | ||
1258 | 1042 | (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ | ||
1259 | 1043 | && UNAME_MACHINE=i686 | ||
1260 | 1044 | echo ${UNAME_MACHINE}-pc-sco$UNAME_REL | ||
1261 | 1045 | else | ||
1262 | 1046 | echo ${UNAME_MACHINE}-pc-sysv32 | ||
1263 | 1047 | fi | ||
1264 | 1048 | exit ;; | ||
1265 | 1049 | pc:*:*:*) | ||
1266 | 1050 | # Left here for compatibility: | ||
1267 | 1051 | # uname -m prints for DJGPP always 'pc', but it prints nothing about | ||
1268 | 1052 | # the processor, so we play safe by assuming i586. | ||
1269 | 1053 | # Note: whatever this is, it MUST be the same as what config.sub | ||
1270 | 1054 | # prints for the "djgpp" host, or else GDB configury will decide that | ||
1271 | 1055 | # this is a cross-build. | ||
1272 | 1056 | echo i586-pc-msdosdjgpp | ||
1273 | 1057 | exit ;; | ||
1274 | 1058 | Intel:Mach:3*:*) | ||
1275 | 1059 | echo i386-pc-mach3 | ||
1276 | 1060 | exit ;; | ||
1277 | 1061 | paragon:*:*:*) | ||
1278 | 1062 | echo i860-intel-osf1 | ||
1279 | 1063 | exit ;; | ||
1280 | 1064 | i860:*:4.*:*) # i860-SVR4 | ||
1281 | 1065 | if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then | ||
1282 | 1066 | echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 | ||
1283 | 1067 | else # Add other i860-SVR4 vendors below as they are discovered. | ||
1284 | 1068 | echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 | ||
1285 | 1069 | fi | ||
1286 | 1070 | exit ;; | ||
1287 | 1071 | mini*:CTIX:SYS*5:*) | ||
1288 | 1072 | # "miniframe" | ||
1289 | 1073 | echo m68010-convergent-sysv | ||
1290 | 1074 | exit ;; | ||
1291 | 1075 | mc68k:UNIX:SYSTEM5:3.51m) | ||
1292 | 1076 | echo m68k-convergent-sysv | ||
1293 | 1077 | exit ;; | ||
1294 | 1078 | M680?0:D-NIX:5.3:*) | ||
1295 | 1079 | echo m68k-diab-dnix | ||
1296 | 1080 | exit ;; | ||
1297 | 1081 | M68*:*:R3V[5678]*:*) | ||
1298 | 1082 | test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; | ||
1299 | 1083 | 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) | ||
1300 | 1084 | OS_REL='' | ||
1301 | 1085 | test -r /etc/.relid \ | ||
1302 | 1086 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` | ||
1303 | 1087 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | ||
1304 | 1088 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } | ||
1305 | 1089 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ | ||
1306 | 1090 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | ||
1307 | 1091 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) | ||
1308 | 1092 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | ||
1309 | 1093 | && { echo i486-ncr-sysv4; exit; } ;; | ||
1310 | 1094 | NCR*:*:4.2:* | MPRAS*:*:4.2:*) | ||
1311 | 1095 | OS_REL='.3' | ||
1312 | 1096 | test -r /etc/.relid \ | ||
1313 | 1097 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` | ||
1314 | 1098 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | ||
1315 | 1099 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } | ||
1316 | 1100 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ | ||
1317 | 1101 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } | ||
1318 | 1102 | /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ | ||
1319 | 1103 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | ||
1320 | 1104 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) | ||
1321 | 1105 | echo m68k-unknown-lynxos${UNAME_RELEASE} | ||
1322 | 1106 | exit ;; | ||
1323 | 1107 | mc68030:UNIX_System_V:4.*:*) | ||
1324 | 1108 | echo m68k-atari-sysv4 | ||
1325 | 1109 | exit ;; | ||
1326 | 1110 | TSUNAMI:LynxOS:2.*:*) | ||
1327 | 1111 | echo sparc-unknown-lynxos${UNAME_RELEASE} | ||
1328 | 1112 | exit ;; | ||
1329 | 1113 | rs6000:LynxOS:2.*:*) | ||
1330 | 1114 | echo rs6000-unknown-lynxos${UNAME_RELEASE} | ||
1331 | 1115 | exit ;; | ||
1332 | 1116 | PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) | ||
1333 | 1117 | echo powerpc-unknown-lynxos${UNAME_RELEASE} | ||
1334 | 1118 | exit ;; | ||
1335 | 1119 | SM[BE]S:UNIX_SV:*:*) | ||
1336 | 1120 | echo mips-dde-sysv${UNAME_RELEASE} | ||
1337 | 1121 | exit ;; | ||
1338 | 1122 | RM*:ReliantUNIX-*:*:*) | ||
1339 | 1123 | echo mips-sni-sysv4 | ||
1340 | 1124 | exit ;; | ||
1341 | 1125 | RM*:SINIX-*:*:*) | ||
1342 | 1126 | echo mips-sni-sysv4 | ||
1343 | 1127 | exit ;; | ||
1344 | 1128 | *:SINIX-*:*:*) | ||
1345 | 1129 | if uname -p 2>/dev/null >/dev/null ; then | ||
1346 | 1130 | UNAME_MACHINE=`(uname -p) 2>/dev/null` | ||
1347 | 1131 | echo ${UNAME_MACHINE}-sni-sysv4 | ||
1348 | 1132 | else | ||
1349 | 1133 | echo ns32k-sni-sysv | ||
1350 | 1134 | fi | ||
1351 | 1135 | exit ;; | ||
1352 | 1136 | PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort | ||
1353 | 1137 | # says <Richard.M.Bartel@ccMail.Census.GOV> | ||
1354 | 1138 | echo i586-unisys-sysv4 | ||
1355 | 1139 | exit ;; | ||
1356 | 1140 | *:UNIX_System_V:4*:FTX*) | ||
1357 | 1141 | # From Gerald Hewes <hewes@openmarket.com>. | ||
1358 | 1142 | # How about differentiating between stratus architectures? -djm | ||
1359 | 1143 | echo hppa1.1-stratus-sysv4 | ||
1360 | 1144 | exit ;; | ||
1361 | 1145 | *:*:*:FTX*) | ||
1362 | 1146 | # From seanf@swdc.stratus.com. | ||
1363 | 1147 | echo i860-stratus-sysv4 | ||
1364 | 1148 | exit ;; | ||
1365 | 1149 | i*86:VOS:*:*) | ||
1366 | 1150 | # From Paul.Green@stratus.com. | ||
1367 | 1151 | echo ${UNAME_MACHINE}-stratus-vos | ||
1368 | 1152 | exit ;; | ||
1369 | 1153 | *:VOS:*:*) | ||
1370 | 1154 | # From Paul.Green@stratus.com. | ||
1371 | 1155 | echo hppa1.1-stratus-vos | ||
1372 | 1156 | exit ;; | ||
1373 | 1157 | mc68*:A/UX:*:*) | ||
1374 | 1158 | echo m68k-apple-aux${UNAME_RELEASE} | ||
1375 | 1159 | exit ;; | ||
1376 | 1160 | news*:NEWS-OS:6*:*) | ||
1377 | 1161 | echo mips-sony-newsos6 | ||
1378 | 1162 | exit ;; | ||
1379 | 1163 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) | ||
1380 | 1164 | if [ -d /usr/nec ]; then | ||
1381 | 1165 | echo mips-nec-sysv${UNAME_RELEASE} | ||
1382 | 1166 | else | ||
1383 | 1167 | echo mips-unknown-sysv${UNAME_RELEASE} | ||
1384 | 1168 | fi | ||
1385 | 1169 | exit ;; | ||
1386 | 1170 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. | ||
1387 | 1171 | echo powerpc-be-beos | ||
1388 | 1172 | exit ;; | ||
1389 | 1173 | BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. | ||
1390 | 1174 | echo powerpc-apple-beos | ||
1391 | 1175 | exit ;; | ||
1392 | 1176 | BePC:BeOS:*:*) # BeOS running on Intel PC compatible. | ||
1393 | 1177 | echo i586-pc-beos | ||
1394 | 1178 | exit ;; | ||
1395 | 1179 | BePC:Haiku:*:*) # Haiku running on Intel PC compatible. | ||
1396 | 1180 | echo i586-pc-haiku | ||
1397 | 1181 | exit ;; | ||
1398 | 1182 | SX-4:SUPER-UX:*:*) | ||
1399 | 1183 | echo sx4-nec-superux${UNAME_RELEASE} | ||
1400 | 1184 | exit ;; | ||
1401 | 1185 | SX-5:SUPER-UX:*:*) | ||
1402 | 1186 | echo sx5-nec-superux${UNAME_RELEASE} | ||
1403 | 1187 | exit ;; | ||
1404 | 1188 | SX-6:SUPER-UX:*:*) | ||
1405 | 1189 | echo sx6-nec-superux${UNAME_RELEASE} | ||
1406 | 1190 | exit ;; | ||
1407 | 1191 | SX-7:SUPER-UX:*:*) | ||
1408 | 1192 | echo sx7-nec-superux${UNAME_RELEASE} | ||
1409 | 1193 | exit ;; | ||
1410 | 1194 | SX-8:SUPER-UX:*:*) | ||
1411 | 1195 | echo sx8-nec-superux${UNAME_RELEASE} | ||
1412 | 1196 | exit ;; | ||
1413 | 1197 | SX-8R:SUPER-UX:*:*) | ||
1414 | 1198 | echo sx8r-nec-superux${UNAME_RELEASE} | ||
1415 | 1199 | exit ;; | ||
1416 | 1200 | Power*:Rhapsody:*:*) | ||
1417 | 1201 | echo powerpc-apple-rhapsody${UNAME_RELEASE} | ||
1418 | 1202 | exit ;; | ||
1419 | 1203 | *:Rhapsody:*:*) | ||
1420 | 1204 | echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} | ||
1421 | 1205 | exit ;; | ||
1422 | 1206 | *:Darwin:*:*) | ||
1423 | 1207 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown | ||
1424 | 1208 | case $UNAME_PROCESSOR in | ||
1425 | 1209 | i386) | ||
1426 | 1210 | eval $set_cc_for_build | ||
1427 | 1211 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | ||
1428 | 1212 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | ||
1429 | 1213 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | ||
1430 | 1214 | grep IS_64BIT_ARCH >/dev/null | ||
1431 | 1215 | then | ||
1432 | 1216 | UNAME_PROCESSOR="x86_64" | ||
1433 | 1217 | fi | ||
1434 | 1218 | fi ;; | ||
1435 | 1219 | unknown) UNAME_PROCESSOR=powerpc ;; | ||
1436 | 1220 | esac | ||
1437 | 1221 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} | ||
1438 | 1222 | exit ;; | ||
1439 | 1223 | *:procnto*:*:* | *:QNX:[0123456789]*:*) | ||
1440 | 1224 | UNAME_PROCESSOR=`uname -p` | ||
1441 | 1225 | if test "$UNAME_PROCESSOR" = "x86"; then | ||
1442 | 1226 | UNAME_PROCESSOR=i386 | ||
1443 | 1227 | UNAME_MACHINE=pc | ||
1444 | 1228 | fi | ||
1445 | 1229 | echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} | ||
1446 | 1230 | exit ;; | ||
1447 | 1231 | *:QNX:*:4*) | ||
1448 | 1232 | echo i386-pc-qnx | ||
1449 | 1233 | exit ;; | ||
1450 | 1234 | NSE-?:NONSTOP_KERNEL:*:*) | ||
1451 | 1235 | echo nse-tandem-nsk${UNAME_RELEASE} | ||
1452 | 1236 | exit ;; | ||
1453 | 1237 | NSR-?:NONSTOP_KERNEL:*:*) | ||
1454 | 1238 | echo nsr-tandem-nsk${UNAME_RELEASE} | ||
1455 | 1239 | exit ;; | ||
1456 | 1240 | *:NonStop-UX:*:*) | ||
1457 | 1241 | echo mips-compaq-nonstopux | ||
1458 | 1242 | exit ;; | ||
1459 | 1243 | BS2000:POSIX*:*:*) | ||
1460 | 1244 | echo bs2000-siemens-sysv | ||
1461 | 1245 | exit ;; | ||
1462 | 1246 | DS/*:UNIX_System_V:*:*) | ||
1463 | 1247 | echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} | ||
1464 | 1248 | exit ;; | ||
1465 | 1249 | *:Plan9:*:*) | ||
1466 | 1250 | # "uname -m" is not consistent, so use $cputype instead. 386 | ||
1467 | 1251 | # is converted to i386 for consistency with other x86 | ||
1468 | 1252 | # operating systems. | ||
1469 | 1253 | if test "$cputype" = "386"; then | ||
1470 | 1254 | UNAME_MACHINE=i386 | ||
1471 | 1255 | else | ||
1472 | 1256 | UNAME_MACHINE="$cputype" | ||
1473 | 1257 | fi | ||
1474 | 1258 | echo ${UNAME_MACHINE}-unknown-plan9 | ||
1475 | 1259 | exit ;; | ||
1476 | 1260 | *:TOPS-10:*:*) | ||
1477 | 1261 | echo pdp10-unknown-tops10 | ||
1478 | 1262 | exit ;; | ||
1479 | 1263 | *:TENEX:*:*) | ||
1480 | 1264 | echo pdp10-unknown-tenex | ||
1481 | 1265 | exit ;; | ||
1482 | 1266 | KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) | ||
1483 | 1267 | echo pdp10-dec-tops20 | ||
1484 | 1268 | exit ;; | ||
1485 | 1269 | XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) | ||
1486 | 1270 | echo pdp10-xkl-tops20 | ||
1487 | 1271 | exit ;; | ||
1488 | 1272 | *:TOPS-20:*:*) | ||
1489 | 1273 | echo pdp10-unknown-tops20 | ||
1490 | 1274 | exit ;; | ||
1491 | 1275 | *:ITS:*:*) | ||
1492 | 1276 | echo pdp10-unknown-its | ||
1493 | 1277 | exit ;; | ||
1494 | 1278 | SEI:*:*:SEIUX) | ||
1495 | 1279 | echo mips-sei-seiux${UNAME_RELEASE} | ||
1496 | 1280 | exit ;; | ||
1497 | 1281 | *:DragonFly:*:*) | ||
1498 | 1282 | echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` | ||
1499 | 1283 | exit ;; | ||
1500 | 1284 | *:*VMS:*:*) | ||
1501 | 1285 | UNAME_MACHINE=`(uname -p) 2>/dev/null` | ||
1502 | 1286 | case "${UNAME_MACHINE}" in | ||
1503 | 1287 | A*) echo alpha-dec-vms ; exit ;; | ||
1504 | 1288 | I*) echo ia64-dec-vms ; exit ;; | ||
1505 | 1289 | V*) echo vax-dec-vms ; exit ;; | ||
1506 | 1290 | esac ;; | ||
1507 | 1291 | *:XENIX:*:SysV) | ||
1508 | 1292 | echo i386-pc-xenix | ||
1509 | 1293 | exit ;; | ||
1510 | 1294 | i*86:skyos:*:*) | ||
1511 | 1295 | echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' | ||
1512 | 1296 | exit ;; | ||
1513 | 1297 | i*86:rdos:*:*) | ||
1514 | 1298 | echo ${UNAME_MACHINE}-pc-rdos | ||
1515 | 1299 | exit ;; | ||
1516 | 1300 | i*86:AROS:*:*) | ||
1517 | 1301 | echo ${UNAME_MACHINE}-pc-aros | ||
1518 | 1302 | exit ;; | ||
1519 | 1303 | esac | ||
1520 | 1304 | |||
1521 | 1305 | #echo '(No uname command or uname output not recognized.)' 1>&2 | ||
1522 | 1306 | #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 | ||
1523 | 1307 | |||
1524 | 1308 | eval $set_cc_for_build | ||
1525 | 1309 | cat >$dummy.c <<EOF | ||
1526 | 1310 | #ifdef _SEQUENT_ | ||
1527 | 1311 | # include <sys/types.h> | ||
1528 | 1312 | # include <sys/utsname.h> | ||
1529 | 1313 | #endif | ||
1530 | 1314 | main () | ||
1531 | 1315 | { | ||
1532 | 1316 | #if defined (sony) | ||
1533 | 1317 | #if defined (MIPSEB) | ||
1534 | 1318 | /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, | ||
1535 | 1319 | I don't know.... */ | ||
1536 | 1320 | printf ("mips-sony-bsd\n"); exit (0); | ||
1537 | 1321 | #else | ||
1538 | 1322 | #include <sys/param.h> | ||
1539 | 1323 | printf ("m68k-sony-newsos%s\n", | ||
1540 | 1324 | #ifdef NEWSOS4 | ||
1541 | 1325 | "4" | ||
1542 | 1326 | #else | ||
1543 | 1327 | "" | ||
1544 | 1328 | #endif | ||
1545 | 1329 | ); exit (0); | ||
1546 | 1330 | #endif | ||
1547 | 1331 | #endif | ||
1548 | 1332 | |||
1549 | 1333 | #if defined (__arm) && defined (__acorn) && defined (__unix) | ||
1550 | 1334 | printf ("arm-acorn-riscix\n"); exit (0); | ||
1551 | 1335 | #endif | ||
1552 | 1336 | |||
1553 | 1337 | #if defined (hp300) && !defined (hpux) | ||
1554 | 1338 | printf ("m68k-hp-bsd\n"); exit (0); | ||
1555 | 1339 | #endif | ||
1556 | 1340 | |||
1557 | 1341 | #if defined (NeXT) | ||
1558 | 1342 | #if !defined (__ARCHITECTURE__) | ||
1559 | 1343 | #define __ARCHITECTURE__ "m68k" | ||
1560 | 1344 | #endif | ||
1561 | 1345 | int version; | ||
1562 | 1346 | version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; | ||
1563 | 1347 | if (version < 4) | ||
1564 | 1348 | printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); | ||
1565 | 1349 | else | ||
1566 | 1350 | printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); | ||
1567 | 1351 | exit (0); | ||
1568 | 1352 | #endif | ||
1569 | 1353 | |||
1570 | 1354 | #if defined (MULTIMAX) || defined (n16) | ||
1571 | 1355 | #if defined (UMAXV) | ||
1572 | 1356 | printf ("ns32k-encore-sysv\n"); exit (0); | ||
1573 | 1357 | #else | ||
1574 | 1358 | #if defined (CMU) | ||
1575 | 1359 | printf ("ns32k-encore-mach\n"); exit (0); | ||
1576 | 1360 | #else | ||
1577 | 1361 | printf ("ns32k-encore-bsd\n"); exit (0); | ||
1578 | 1362 | #endif | ||
1579 | 1363 | #endif | ||
1580 | 1364 | #endif | ||
1581 | 1365 | |||
1582 | 1366 | #if defined (__386BSD__) | ||
1583 | 1367 | printf ("i386-pc-bsd\n"); exit (0); | ||
1584 | 1368 | #endif | ||
1585 | 1369 | |||
1586 | 1370 | #if defined (sequent) | ||
1587 | 1371 | #if defined (i386) | ||
1588 | 1372 | printf ("i386-sequent-dynix\n"); exit (0); | ||
1589 | 1373 | #endif | ||
1590 | 1374 | #if defined (ns32000) | ||
1591 | 1375 | printf ("ns32k-sequent-dynix\n"); exit (0); | ||
1592 | 1376 | #endif | ||
1593 | 1377 | #endif | ||
1594 | 1378 | |||
1595 | 1379 | #if defined (_SEQUENT_) | ||
1596 | 1380 | struct utsname un; | ||
1597 | 1381 | |||
1598 | 1382 | uname(&un); | ||
1599 | 1383 | |||
1600 | 1384 | if (strncmp(un.version, "V2", 2) == 0) { | ||
1601 | 1385 | printf ("i386-sequent-ptx2\n"); exit (0); | ||
1602 | 1386 | } | ||
1603 | 1387 | if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ | ||
1604 | 1388 | printf ("i386-sequent-ptx1\n"); exit (0); | ||
1605 | 1389 | } | ||
1606 | 1390 | printf ("i386-sequent-ptx\n"); exit (0); | ||
1607 | 1391 | |||
1608 | 1392 | #endif | ||
1609 | 1393 | |||
1610 | 1394 | #if defined (vax) | ||
1611 | 1395 | # if !defined (ultrix) | ||
1612 | 1396 | # include <sys/param.h> | ||
1613 | 1397 | # if defined (BSD) | ||
1614 | 1398 | # if BSD == 43 | ||
1615 | 1399 | printf ("vax-dec-bsd4.3\n"); exit (0); | ||
1616 | 1400 | # else | ||
1617 | 1401 | # if BSD == 199006 | ||
1618 | 1402 | printf ("vax-dec-bsd4.3reno\n"); exit (0); | ||
1619 | 1403 | # else | ||
1620 | 1404 | printf ("vax-dec-bsd\n"); exit (0); | ||
1621 | 1405 | # endif | ||
1622 | 1406 | # endif | ||
1623 | 1407 | # else | ||
1624 | 1408 | printf ("vax-dec-bsd\n"); exit (0); | ||
1625 | 1409 | # endif | ||
1626 | 1410 | # else | ||
1627 | 1411 | printf ("vax-dec-ultrix\n"); exit (0); | ||
1628 | 1412 | # endif | ||
1629 | 1413 | #endif | ||
1630 | 1414 | |||
1631 | 1415 | #if defined (alliant) && defined (i860) | ||
1632 | 1416 | printf ("i860-alliant-bsd\n"); exit (0); | ||
1633 | 1417 | #endif | ||
1634 | 1418 | |||
1635 | 1419 | exit (1); | ||
1636 | 1420 | } | ||
1637 | 1421 | EOF | ||
1638 | 1422 | |||
1639 | 1423 | $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && | ||
1640 | 1424 | { echo "$SYSTEM_NAME"; exit; } | ||
1641 | 1425 | |||
1642 | 1426 | # Apollos put the system type in the environment. | ||
1643 | 1427 | |||
1644 | 1428 | test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } | ||
1645 | 1429 | |||
1646 | 1430 | # Convex versions that predate uname can use getsysinfo(1) | ||
1647 | 1431 | |||
1648 | 1432 | if [ -x /usr/convex/getsysinfo ] | ||
1649 | 1433 | then | ||
1650 | 1434 | case `getsysinfo -f cpu_type` in | ||
1651 | 1435 | c1*) | ||
1652 | 1436 | echo c1-convex-bsd | ||
1653 | 1437 | exit ;; | ||
1654 | 1438 | c2*) | ||
1655 | 1439 | if getsysinfo -f scalar_acc | ||
1656 | 1440 | then echo c32-convex-bsd | ||
1657 | 1441 | else echo c2-convex-bsd | ||
1658 | 1442 | fi | ||
1659 | 1443 | exit ;; | ||
1660 | 1444 | c34*) | ||
1661 | 1445 | echo c34-convex-bsd | ||
1662 | 1446 | exit ;; | ||
1663 | 1447 | c38*) | ||
1664 | 1448 | echo c38-convex-bsd | ||
1665 | 1449 | exit ;; | ||
1666 | 1450 | c4*) | ||
1667 | 1451 | echo c4-convex-bsd | ||
1668 | 1452 | exit ;; | ||
1669 | 1453 | esac | ||
1670 | 1454 | fi | ||
1671 | 1455 | |||
1672 | 1456 | cat >&2 <<EOF | ||
1673 | 1457 | $0: unable to guess system type | ||
1674 | 1458 | |||
1675 | 1459 | This script, last modified $timestamp, has failed to recognize | ||
1676 | 1460 | the operating system you are using. It is advised that you | ||
1677 | 1461 | download the most up to date version of the config scripts from | ||
1678 | 1462 | |||
1679 | 1463 | http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD | ||
1680 | 1464 | and | ||
1681 | 1465 | http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD | ||
1682 | 1466 | |||
1683 | 1467 | If the version you run ($0) is already up to date, please | ||
1684 | 1468 | send the following data and any information you think might be | ||
1685 | 1469 | pertinent to <config-patches@gnu.org> in order to provide the needed | ||
1686 | 1470 | information to handle your system. | ||
1687 | 1471 | |||
1688 | 1472 | config.guess timestamp = $timestamp | ||
1689 | 1473 | |||
1690 | 1474 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1691 | 1475 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1692 | 1476 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1693 | 1477 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1694 | 1478 | |||
1695 | 1479 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` | ||
1696 | 1480 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null` | ||
1697 | 1481 | |||
1698 | 1482 | hostinfo = `(hostinfo) 2>/dev/null` | ||
1699 | 1483 | /bin/universe = `(/bin/universe) 2>/dev/null` | ||
1700 | 1484 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` | ||
1701 | 1485 | /bin/arch = `(/bin/arch) 2>/dev/null` | ||
1702 | 1486 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` | ||
1703 | 1487 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` | ||
1704 | 1488 | |||
1705 | 1489 | UNAME_MACHINE = ${UNAME_MACHINE} | ||
1706 | 1490 | UNAME_RELEASE = ${UNAME_RELEASE} | ||
1707 | 1491 | UNAME_SYSTEM = ${UNAME_SYSTEM} | ||
1708 | 1492 | UNAME_VERSION = ${UNAME_VERSION} | ||
1709 | 1493 | EOF | ||
1710 | 1494 | |||
1711 | 1495 | exit 1 | ||
1712 | 1496 | |||
1713 | 1497 | # Local variables: | ||
1714 | 1498 | # eval: (add-hook 'write-file-hooks 'time-stamp) | ||
1715 | 1499 | # time-stamp-start: "timestamp='" | ||
1716 | 1500 | # time-stamp-format: "%:y-%02m-%02d" | ||
1717 | 1501 | # time-stamp-end: "'" | ||
1718 | 1502 | # End: | ||
1719 | 1503 | 0 | ||
1720 | === removed file 'config.sub' | |||
1721 | --- config.sub 2012-04-04 19:34:11 +0000 | |||
1722 | +++ config.sub 1970-01-01 00:00:00 +0000 | |||
1723 | @@ -1,1714 +0,0 @@ | |||
1724 | 1 | #! /bin/sh | ||
1725 | 2 | # Configuration validation subroutine script. | ||
1726 | 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | ||
1727 | 4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 | ||
1728 | 5 | # Free Software Foundation, Inc. | ||
1729 | 6 | |||
1730 | 7 | timestamp='2010-01-22' | ||
1731 | 8 | |||
1732 | 9 | # This file is (in principle) common to ALL GNU software. | ||
1733 | 10 | # The presence of a machine in this file suggests that SOME GNU software | ||
1734 | 11 | # can handle that machine. It does not imply ALL GNU software can. | ||
1735 | 12 | # | ||
1736 | 13 | # This file is free software; you can redistribute it and/or modify | ||
1737 | 14 | # it under the terms of the GNU General Public License as published by | ||
1738 | 15 | # the Free Software Foundation; either version 2 of the License, or | ||
1739 | 16 | # (at your option) any later version. | ||
1740 | 17 | # | ||
1741 | 18 | # This program is distributed in the hope that it will be useful, | ||
1742 | 19 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1743 | 20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
1744 | 21 | # GNU General Public License for more details. | ||
1745 | 22 | # | ||
1746 | 23 | # You should have received a copy of the GNU General Public License | ||
1747 | 24 | # along with this program; if not, write to the Free Software | ||
1748 | 25 | # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA | ||
1749 | 26 | # 02110-1301, USA. | ||
1750 | 27 | # | ||
1751 | 28 | # As a special exception to the GNU General Public License, if you | ||
1752 | 29 | # distribute this file as part of a program that contains a | ||
1753 | 30 | # configuration script generated by Autoconf, you may include it under | ||
1754 | 31 | # the same distribution terms that you use for the rest of that program. | ||
1755 | 32 | |||
1756 | 33 | |||
1757 | 34 | # Please send patches to <config-patches@gnu.org>. Submit a context | ||
1758 | 35 | # diff and a properly formatted GNU ChangeLog entry. | ||
1759 | 36 | # | ||
1760 | 37 | # Configuration subroutine to validate and canonicalize a configuration type. | ||
1761 | 38 | # Supply the specified configuration type as an argument. | ||
1762 | 39 | # If it is invalid, we print an error message on stderr and exit with code 1. | ||
1763 | 40 | # Otherwise, we print the canonical config type on stdout and succeed. | ||
1764 | 41 | |||
1765 | 42 | # You can get the latest version of this script from: | ||
1766 | 43 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD | ||
1767 | 44 | |||
1768 | 45 | # This file is supposed to be the same for all GNU packages | ||
1769 | 46 | # and recognize all the CPU types, system types and aliases | ||
1770 | 47 | # that are meaningful with *any* GNU software. | ||
1771 | 48 | # Each package is responsible for reporting which valid configurations | ||
1772 | 49 | # it does not support. The user should be able to distinguish | ||
1773 | 50 | # a failure to support a valid configuration from a meaningless | ||
1774 | 51 | # configuration. | ||
1775 | 52 | |||
1776 | 53 | # The goal of this file is to map all the various variations of a given | ||
1777 | 54 | # machine specification into a single specification in the form: | ||
1778 | 55 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM | ||
1779 | 56 | # or in some cases, the newer four-part form: | ||
1780 | 57 | # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM | ||
1781 | 58 | # It is wrong to echo any other type of specification. | ||
1782 | 59 | |||
1783 | 60 | me=`echo "$0" | sed -e 's,.*/,,'` | ||
1784 | 61 | |||
1785 | 62 | usage="\ | ||
1786 | 63 | Usage: $0 [OPTION] CPU-MFR-OPSYS | ||
1787 | 64 | $0 [OPTION] ALIAS | ||
1788 | 65 | |||
1789 | 66 | Canonicalize a configuration name. | ||
1790 | 67 | |||
1791 | 68 | Operation modes: | ||
1792 | 69 | -h, --help print this help, then exit | ||
1793 | 70 | -t, --time-stamp print date of last modification, then exit | ||
1794 | 71 | -v, --version print version number, then exit | ||
1795 | 72 | |||
1796 | 73 | Report bugs and patches to <config-patches@gnu.org>." | ||
1797 | 74 | |||
1798 | 75 | version="\ | ||
1799 | 76 | GNU config.sub ($timestamp) | ||
1800 | 77 | |||
1801 | 78 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | ||
1802 | 79 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free | ||
1803 | 80 | Software Foundation, Inc. | ||
1804 | 81 | |||
1805 | 82 | This is free software; see the source for copying conditions. There is NO | ||
1806 | 83 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | ||
1807 | 84 | |||
1808 | 85 | help=" | ||
1809 | 86 | Try \`$me --help' for more information." | ||
1810 | 87 | |||
1811 | 88 | # Parse command line | ||
1812 | 89 | while test $# -gt 0 ; do | ||
1813 | 90 | case $1 in | ||
1814 | 91 | --time-stamp | --time* | -t ) | ||
1815 | 92 | echo "$timestamp" ; exit ;; | ||
1816 | 93 | --version | -v ) | ||
1817 | 94 | echo "$version" ; exit ;; | ||
1818 | 95 | --help | --h* | -h ) | ||
1819 | 96 | echo "$usage"; exit ;; | ||
1820 | 97 | -- ) # Stop option processing | ||
1821 | 98 | shift; break ;; | ||
1822 | 99 | - ) # Use stdin as input. | ||
1823 | 100 | break ;; | ||
1824 | 101 | -* ) | ||
1825 | 102 | echo "$me: invalid option $1$help" | ||
1826 | 103 | exit 1 ;; | ||
1827 | 104 | |||
1828 | 105 | *local*) | ||
1829 | 106 | # First pass through any local machine types. | ||
1830 | 107 | echo $1 | ||
1831 | 108 | exit ;; | ||
1832 | 109 | |||
1833 | 110 | * ) | ||
1834 | 111 | break ;; | ||
1835 | 112 | esac | ||
1836 | 113 | done | ||
1837 | 114 | |||
1838 | 115 | case $# in | ||
1839 | 116 | 0) echo "$me: missing argument$help" >&2 | ||
1840 | 117 | exit 1;; | ||
1841 | 118 | 1) ;; | ||
1842 | 119 | *) echo "$me: too many arguments$help" >&2 | ||
1843 | 120 | exit 1;; | ||
1844 | 121 | esac | ||
1845 | 122 | |||
1846 | 123 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). | ||
1847 | 124 | # Here we must recognize all the valid KERNEL-OS combinations. | ||
1848 | 125 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | ||
1849 | 126 | case $maybe_os in | ||
1850 | 127 | nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ | ||
1851 | 128 | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ | ||
1852 | 129 | kopensolaris*-gnu* | \ | ||
1853 | 130 | storm-chaos* | os2-emx* | rtmk-nova*) | ||
1854 | 131 | os=-$maybe_os | ||
1855 | 132 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | ||
1856 | 133 | ;; | ||
1857 | 134 | *) | ||
1858 | 135 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` | ||
1859 | 136 | if [ $basic_machine != $1 ] | ||
1860 | 137 | then os=`echo $1 | sed 's/.*-/-/'` | ||
1861 | 138 | else os=; fi | ||
1862 | 139 | ;; | ||
1863 | 140 | esac | ||
1864 | 141 | |||
1865 | 142 | ### Let's recognize common machines as not being operating systems so | ||
1866 | 143 | ### that things like config.sub decstation-3100 work. We also | ||
1867 | 144 | ### recognize some manufacturers as not being operating systems, so we | ||
1868 | 145 | ### can provide default operating systems below. | ||
1869 | 146 | case $os in | ||
1870 | 147 | -sun*os*) | ||
1871 | 148 | # Prevent following clause from handling this invalid input. | ||
1872 | 149 | ;; | ||
1873 | 150 | -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ | ||
1874 | 151 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ | ||
1875 | 152 | -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ | ||
1876 | 153 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ | ||
1877 | 154 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ | ||
1878 | 155 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ | ||
1879 | 156 | -apple | -axis | -knuth | -cray | -microblaze) | ||
1880 | 157 | os= | ||
1881 | 158 | basic_machine=$1 | ||
1882 | 159 | ;; | ||
1883 | 160 | -bluegene*) | ||
1884 | 161 | os=-cnk | ||
1885 | 162 | ;; | ||
1886 | 163 | -sim | -cisco | -oki | -wec | -winbond) | ||
1887 | 164 | os= | ||
1888 | 165 | basic_machine=$1 | ||
1889 | 166 | ;; | ||
1890 | 167 | -scout) | ||
1891 | 168 | ;; | ||
1892 | 169 | -wrs) | ||
1893 | 170 | os=-vxworks | ||
1894 | 171 | basic_machine=$1 | ||
1895 | 172 | ;; | ||
1896 | 173 | -chorusos*) | ||
1897 | 174 | os=-chorusos | ||
1898 | 175 | basic_machine=$1 | ||
1899 | 176 | ;; | ||
1900 | 177 | -chorusrdb) | ||
1901 | 178 | os=-chorusrdb | ||
1902 | 179 | basic_machine=$1 | ||
1903 | 180 | ;; | ||
1904 | 181 | -hiux*) | ||
1905 | 182 | os=-hiuxwe2 | ||
1906 | 183 | ;; | ||
1907 | 184 | -sco6) | ||
1908 | 185 | os=-sco5v6 | ||
1909 | 186 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
1910 | 187 | ;; | ||
1911 | 188 | -sco5) | ||
1912 | 189 | os=-sco3.2v5 | ||
1913 | 190 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
1914 | 191 | ;; | ||
1915 | 192 | -sco4) | ||
1916 | 193 | os=-sco3.2v4 | ||
1917 | 194 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
1918 | 195 | ;; | ||
1919 | 196 | -sco3.2.[4-9]*) | ||
1920 | 197 | os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` | ||
1921 | 198 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
1922 | 199 | ;; | ||
1923 | 200 | -sco3.2v[4-9]*) | ||
1924 | 201 | # Don't forget version if it is 3.2v4 or newer. | ||
1925 | 202 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
1926 | 203 | ;; | ||
1927 | 204 | -sco5v6*) | ||
1928 | 205 | # Don't forget version if it is 3.2v4 or newer. | ||
1929 | 206 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
1930 | 207 | ;; | ||
1931 | 208 | -sco*) | ||
1932 | 209 | os=-sco3.2v2 | ||
1933 | 210 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
1934 | 211 | ;; | ||
1935 | 212 | -udk*) | ||
1936 | 213 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
1937 | 214 | ;; | ||
1938 | 215 | -isc) | ||
1939 | 216 | os=-isc2.2 | ||
1940 | 217 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
1941 | 218 | ;; | ||
1942 | 219 | -clix*) | ||
1943 | 220 | basic_machine=clipper-intergraph | ||
1944 | 221 | ;; | ||
1945 | 222 | -isc*) | ||
1946 | 223 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | ||
1947 | 224 | ;; | ||
1948 | 225 | -lynx*) | ||
1949 | 226 | os=-lynxos | ||
1950 | 227 | ;; | ||
1951 | 228 | -ptx*) | ||
1952 | 229 | basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` | ||
1953 | 230 | ;; | ||
1954 | 231 | -windowsnt*) | ||
1955 | 232 | os=`echo $os | sed -e 's/windowsnt/winnt/'` | ||
1956 | 233 | ;; | ||
1957 | 234 | -psos*) | ||
1958 | 235 | os=-psos | ||
1959 | 236 | ;; | ||
1960 | 237 | -mint | -mint[0-9]*) | ||
1961 | 238 | basic_machine=m68k-atari | ||
1962 | 239 | os=-mint | ||
1963 | 240 | ;; | ||
1964 | 241 | esac | ||
1965 | 242 | |||
1966 | 243 | # Decode aliases for certain CPU-COMPANY combinations. | ||
1967 | 244 | case $basic_machine in | ||
1968 | 245 | # Recognize the basic CPU types without company name. | ||
1969 | 246 | # Some are omitted here because they have special meanings below. | ||
1970 | 247 | 1750a | 580 \ | ||
1971 | 248 | | a29k \ | ||
1972 | 249 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | ||
1973 | 250 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | ||
1974 | 251 | | am33_2.0 \ | ||
1975 | 252 | | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | ||
1976 | 253 | | bfin \ | ||
1977 | 254 | | c4x | clipper \ | ||
1978 | 255 | | d10v | d30v | dlx | dsp16xx \ | ||
1979 | 256 | | fido | fr30 | frv \ | ||
1980 | 257 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | ||
1981 | 258 | | i370 | i860 | i960 | ia64 \ | ||
1982 | 259 | | ip2k | iq2000 \ | ||
1983 | 260 | | lm32 \ | ||
1984 | 261 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ | ||
1985 | 262 | | maxq | mb | microblaze | mcore | mep | metag \ | ||
1986 | 263 | | mips | mipsbe | mipseb | mipsel | mipsle \ | ||
1987 | 264 | | mips16 \ | ||
1988 | 265 | | mips64 | mips64el \ | ||
1989 | 266 | | mips64octeon | mips64octeonel \ | ||
1990 | 267 | | mips64orion | mips64orionel \ | ||
1991 | 268 | | mips64r5900 | mips64r5900el \ | ||
1992 | 269 | | mips64vr | mips64vrel \ | ||
1993 | 270 | | mips64vr4100 | mips64vr4100el \ | ||
1994 | 271 | | mips64vr4300 | mips64vr4300el \ | ||
1995 | 272 | | mips64vr5000 | mips64vr5000el \ | ||
1996 | 273 | | mips64vr5900 | mips64vr5900el \ | ||
1997 | 274 | | mipsisa32 | mipsisa32el \ | ||
1998 | 275 | | mipsisa32r2 | mipsisa32r2el \ | ||
1999 | 276 | | mipsisa64 | mipsisa64el \ | ||
2000 | 277 | | mipsisa64r2 | mipsisa64r2el \ | ||
2001 | 278 | | mipsisa64sb1 | mipsisa64sb1el \ | ||
2002 | 279 | | mipsisa64sr71k | mipsisa64sr71kel \ | ||
2003 | 280 | | mipstx39 | mipstx39el \ | ||
2004 | 281 | | mn10200 | mn10300 \ | ||
2005 | 282 | | moxie \ | ||
2006 | 283 | | mt \ | ||
2007 | 284 | | msp430 \ | ||
2008 | 285 | | nios | nios2 \ | ||
2009 | 286 | | ns16k | ns32k \ | ||
2010 | 287 | | or32 \ | ||
2011 | 288 | | pdp10 | pdp11 | pj | pjl \ | ||
2012 | 289 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | ||
2013 | 290 | | pyramid \ | ||
2014 | 291 | | rx \ | ||
2015 | 292 | | score \ | ||
2016 | 293 | | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | ||
2017 | 294 | | sh64 | sh64le \ | ||
2018 | 295 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | ||
2019 | 296 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | ||
2020 | 297 | | spu | strongarm \ | ||
2021 | 298 | | tahoe | thumb | tic4x | tic80 | tron \ | ||
2022 | 299 | | ubicom32 \ | ||
2023 | 300 | | v850 | v850e \ | ||
2024 | 301 | | we32k \ | ||
2025 | 302 | | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | ||
2026 | 303 | | z8k | z80) | ||
2027 | 304 | basic_machine=$basic_machine-unknown | ||
2028 | 305 | ;; | ||
2029 | 306 | m6811 | m68hc11 | m6812 | m68hc12 | picochip) | ||
2030 | 307 | # Motorola 68HC11/12. | ||
2031 | 308 | basic_machine=$basic_machine-unknown | ||
2032 | 309 | os=-none | ||
2033 | 310 | ;; | ||
2034 | 311 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) | ||
2035 | 312 | ;; | ||
2036 | 313 | ms1) | ||
2037 | 314 | basic_machine=mt-unknown | ||
2038 | 315 | ;; | ||
2039 | 316 | |||
2040 | 317 | # We use `pc' rather than `unknown' | ||
2041 | 318 | # because (1) that's what they normally are, and | ||
2042 | 319 | # (2) the word "unknown" tends to confuse beginning users. | ||
2043 | 320 | i*86 | x86_64) | ||
2044 | 321 | basic_machine=$basic_machine-pc | ||
2045 | 322 | ;; | ||
2046 | 323 | # Object if more than one company name word. | ||
2047 | 324 | *-*-*) | ||
2048 | 325 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | ||
2049 | 326 | exit 1 | ||
2050 | 327 | ;; | ||
2051 | 328 | # Recognize the basic CPU types with company name. | ||
2052 | 329 | 580-* \ | ||
2053 | 330 | | a29k-* \ | ||
2054 | 331 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | ||
2055 | 332 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | ||
2056 | 333 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | ||
2057 | 334 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | ||
2058 | 335 | | avr-* | avr32-* \ | ||
2059 | 336 | | bfin-* | bs2000-* \ | ||
2060 | 337 | | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | ||
2061 | 338 | | clipper-* | craynv-* | cydra-* \ | ||
2062 | 339 | | d10v-* | d30v-* | dlx-* \ | ||
2063 | 340 | | elxsi-* \ | ||
2064 | 341 | | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | ||
2065 | 342 | | h8300-* | h8500-* \ | ||
2066 | 343 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | ||
2067 | 344 | | i*86-* | i860-* | i960-* | ia64-* \ | ||
2068 | 345 | | ip2k-* | iq2000-* \ | ||
2069 | 346 | | lm32-* \ | ||
2070 | 347 | | m32c-* | m32r-* | m32rle-* \ | ||
2071 | 348 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | ||
2072 | 349 | | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ | ||
2073 | 350 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | ||
2074 | 351 | | mips16-* \ | ||
2075 | 352 | | mips64-* | mips64el-* \ | ||
2076 | 353 | | mips64octeon-* | mips64octeonel-* \ | ||
2077 | 354 | | mips64orion-* | mips64orionel-* \ | ||
2078 | 355 | | mips64r5900-* | mips64r5900el-* \ | ||
2079 | 356 | | mips64vr-* | mips64vrel-* \ | ||
2080 | 357 | | mips64vr4100-* | mips64vr4100el-* \ | ||
2081 | 358 | | mips64vr4300-* | mips64vr4300el-* \ | ||
2082 | 359 | | mips64vr5000-* | mips64vr5000el-* \ | ||
2083 | 360 | | mips64vr5900-* | mips64vr5900el-* \ | ||
2084 | 361 | | mipsisa32-* | mipsisa32el-* \ | ||
2085 | 362 | | mipsisa32r2-* | mipsisa32r2el-* \ | ||
2086 | 363 | | mipsisa64-* | mipsisa64el-* \ | ||
2087 | 364 | | mipsisa64r2-* | mipsisa64r2el-* \ | ||
2088 | 365 | | mipsisa64sb1-* | mipsisa64sb1el-* \ | ||
2089 | 366 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | ||
2090 | 367 | | mipstx39-* | mipstx39el-* \ | ||
2091 | 368 | | mmix-* \ | ||
2092 | 369 | | mt-* \ | ||
2093 | 370 | | msp430-* \ | ||
2094 | 371 | | nios-* | nios2-* \ | ||
2095 | 372 | | none-* | np1-* | ns16k-* | ns32k-* \ | ||
2096 | 373 | | orion-* \ | ||
2097 | 374 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | ||
2098 | 375 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | ||
2099 | 376 | | pyramid-* \ | ||
2100 | 377 | | romp-* | rs6000-* | rx-* \ | ||
2101 | 378 | | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | ||
2102 | 379 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | ||
2103 | 380 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | ||
2104 | 381 | | sparclite-* \ | ||
2105 | 382 | | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | ||
2106 | 383 | | tahoe-* | thumb-* \ | ||
2107 | 384 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | ||
2108 | 385 | | tile-* | tilegx-* \ | ||
2109 | 386 | | tron-* \ | ||
2110 | 387 | | ubicom32-* \ | ||
2111 | 388 | | v850-* | v850e-* | vax-* \ | ||
2112 | 389 | | we32k-* \ | ||
2113 | 390 | | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | ||
2114 | 391 | | xstormy16-* | xtensa*-* \ | ||
2115 | 392 | | ymp-* \ | ||
2116 | 393 | | z8k-* | z80-*) | ||
2117 | 394 | ;; | ||
2118 | 395 | # Recognize the basic CPU types without company name, with glob match. | ||
2119 | 396 | xtensa*) | ||
2120 | 397 | basic_machine=$basic_machine-unknown | ||
2121 | 398 | ;; | ||
2122 | 399 | # Recognize the various machine names and aliases which stand | ||
2123 | 400 | # for a CPU type and a company and sometimes even an OS. | ||
2124 | 401 | 386bsd) | ||
2125 | 402 | basic_machine=i386-unknown | ||
2126 | 403 | os=-bsd | ||
2127 | 404 | ;; | ||
2128 | 405 | 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) | ||
2129 | 406 | basic_machine=m68000-att | ||
2130 | 407 | ;; | ||
2131 | 408 | 3b*) | ||
2132 | 409 | basic_machine=we32k-att | ||
2133 | 410 | ;; | ||
2134 | 411 | a29khif) | ||
2135 | 412 | basic_machine=a29k-amd | ||
2136 | 413 | os=-udi | ||
2137 | 414 | ;; | ||
2138 | 415 | abacus) | ||
2139 | 416 | basic_machine=abacus-unknown | ||
2140 | 417 | ;; | ||
2141 | 418 | adobe68k) | ||
2142 | 419 | basic_machine=m68010-adobe | ||
2143 | 420 | os=-scout | ||
2144 | 421 | ;; | ||
2145 | 422 | alliant | fx80) | ||
2146 | 423 | basic_machine=fx80-alliant | ||
2147 | 424 | ;; | ||
2148 | 425 | altos | altos3068) | ||
2149 | 426 | basic_machine=m68k-altos | ||
2150 | 427 | ;; | ||
2151 | 428 | am29k) | ||
2152 | 429 | basic_machine=a29k-none | ||
2153 | 430 | os=-bsd | ||
2154 | 431 | ;; | ||
2155 | 432 | amd64) | ||
2156 | 433 | basic_machine=x86_64-pc | ||
2157 | 434 | ;; | ||
2158 | 435 | amd64-*) | ||
2159 | 436 | basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
2160 | 437 | ;; | ||
2161 | 438 | amdahl) | ||
2162 | 439 | basic_machine=580-amdahl | ||
2163 | 440 | os=-sysv | ||
2164 | 441 | ;; | ||
2165 | 442 | amiga | amiga-*) | ||
2166 | 443 | basic_machine=m68k-unknown | ||
2167 | 444 | ;; | ||
2168 | 445 | amigaos | amigados) | ||
2169 | 446 | basic_machine=m68k-unknown | ||
2170 | 447 | os=-amigaos | ||
2171 | 448 | ;; | ||
2172 | 449 | amigaunix | amix) | ||
2173 | 450 | basic_machine=m68k-unknown | ||
2174 | 451 | os=-sysv4 | ||
2175 | 452 | ;; | ||
2176 | 453 | apollo68) | ||
2177 | 454 | basic_machine=m68k-apollo | ||
2178 | 455 | os=-sysv | ||
2179 | 456 | ;; | ||
2180 | 457 | apollo68bsd) | ||
2181 | 458 | basic_machine=m68k-apollo | ||
2182 | 459 | os=-bsd | ||
2183 | 460 | ;; | ||
2184 | 461 | aros) | ||
2185 | 462 | basic_machine=i386-pc | ||
2186 | 463 | os=-aros | ||
2187 | 464 | ;; | ||
2188 | 465 | aux) | ||
2189 | 466 | basic_machine=m68k-apple | ||
2190 | 467 | os=-aux | ||
2191 | 468 | ;; | ||
2192 | 469 | balance) | ||
2193 | 470 | basic_machine=ns32k-sequent | ||
2194 | 471 | os=-dynix | ||
2195 | 472 | ;; | ||
2196 | 473 | blackfin) | ||
2197 | 474 | basic_machine=bfin-unknown | ||
2198 | 475 | os=-linux | ||
2199 | 476 | ;; | ||
2200 | 477 | blackfin-*) | ||
2201 | 478 | basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
2202 | 479 | os=-linux | ||
2203 | 480 | ;; | ||
2204 | 481 | bluegene*) | ||
2205 | 482 | basic_machine=powerpc-ibm | ||
2206 | 483 | os=-cnk | ||
2207 | 484 | ;; | ||
2208 | 485 | c90) | ||
2209 | 486 | basic_machine=c90-cray | ||
2210 | 487 | os=-unicos | ||
2211 | 488 | ;; | ||
2212 | 489 | cegcc) | ||
2213 | 490 | basic_machine=arm-unknown | ||
2214 | 491 | os=-cegcc | ||
2215 | 492 | ;; | ||
2216 | 493 | convex-c1) | ||
2217 | 494 | basic_machine=c1-convex | ||
2218 | 495 | os=-bsd | ||
2219 | 496 | ;; | ||
2220 | 497 | convex-c2) | ||
2221 | 498 | basic_machine=c2-convex | ||
2222 | 499 | os=-bsd | ||
2223 | 500 | ;; | ||
2224 | 501 | convex-c32) | ||
2225 | 502 | basic_machine=c32-convex | ||
2226 | 503 | os=-bsd | ||
2227 | 504 | ;; | ||
2228 | 505 | convex-c34) | ||
2229 | 506 | basic_machine=c34-convex | ||
2230 | 507 | os=-bsd | ||
2231 | 508 | ;; | ||
2232 | 509 | convex-c38) | ||
2233 | 510 | basic_machine=c38-convex | ||
2234 | 511 | os=-bsd | ||
2235 | 512 | ;; | ||
2236 | 513 | cray | j90) | ||
2237 | 514 | basic_machine=j90-cray | ||
2238 | 515 | os=-unicos | ||
2239 | 516 | ;; | ||
2240 | 517 | craynv) | ||
2241 | 518 | basic_machine=craynv-cray | ||
2242 | 519 | os=-unicosmp | ||
2243 | 520 | ;; | ||
2244 | 521 | cr16) | ||
2245 | 522 | basic_machine=cr16-unknown | ||
2246 | 523 | os=-elf | ||
2247 | 524 | ;; | ||
2248 | 525 | crds | unos) | ||
2249 | 526 | basic_machine=m68k-crds | ||
2250 | 527 | ;; | ||
2251 | 528 | crisv32 | crisv32-* | etraxfs*) | ||
2252 | 529 | basic_machine=crisv32-axis | ||
2253 | 530 | ;; | ||
2254 | 531 | cris | cris-* | etrax*) | ||
2255 | 532 | basic_machine=cris-axis | ||
2256 | 533 | ;; | ||
2257 | 534 | crx) | ||
2258 | 535 | basic_machine=crx-unknown | ||
2259 | 536 | os=-elf | ||
2260 | 537 | ;; | ||
2261 | 538 | da30 | da30-*) | ||
2262 | 539 | basic_machine=m68k-da30 | ||
2263 | 540 | ;; | ||
2264 | 541 | decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) | ||
2265 | 542 | basic_machine=mips-dec | ||
2266 | 543 | ;; | ||
2267 | 544 | decsystem10* | dec10*) | ||
2268 | 545 | basic_machine=pdp10-dec | ||
2269 | 546 | os=-tops10 | ||
2270 | 547 | ;; | ||
2271 | 548 | decsystem20* | dec20*) | ||
2272 | 549 | basic_machine=pdp10-dec | ||
2273 | 550 | os=-tops20 | ||
2274 | 551 | ;; | ||
2275 | 552 | delta | 3300 | motorola-3300 | motorola-delta \ | ||
2276 | 553 | | 3300-motorola | delta-motorola) | ||
2277 | 554 | basic_machine=m68k-motorola | ||
2278 | 555 | ;; | ||
2279 | 556 | delta88) | ||
2280 | 557 | basic_machine=m88k-motorola | ||
2281 | 558 | os=-sysv3 | ||
2282 | 559 | ;; | ||
2283 | 560 | dicos) | ||
2284 | 561 | basic_machine=i686-pc | ||
2285 | 562 | os=-dicos | ||
2286 | 563 | ;; | ||
2287 | 564 | djgpp) | ||
2288 | 565 | basic_machine=i586-pc | ||
2289 | 566 | os=-msdosdjgpp | ||
2290 | 567 | ;; | ||
2291 | 568 | dpx20 | dpx20-*) | ||
2292 | 569 | basic_machine=rs6000-bull | ||
2293 | 570 | os=-bosx | ||
2294 | 571 | ;; | ||
2295 | 572 | dpx2* | dpx2*-bull) | ||
2296 | 573 | basic_machine=m68k-bull | ||
2297 | 574 | os=-sysv3 | ||
2298 | 575 | ;; | ||
2299 | 576 | ebmon29k) | ||
2300 | 577 | basic_machine=a29k-amd | ||
2301 | 578 | os=-ebmon | ||
2302 | 579 | ;; | ||
2303 | 580 | elxsi) | ||
2304 | 581 | basic_machine=elxsi-elxsi | ||
2305 | 582 | os=-bsd | ||
2306 | 583 | ;; | ||
2307 | 584 | encore | umax | mmax) | ||
2308 | 585 | basic_machine=ns32k-encore | ||
2309 | 586 | ;; | ||
2310 | 587 | es1800 | OSE68k | ose68k | ose | OSE) | ||
2311 | 588 | basic_machine=m68k-ericsson | ||
2312 | 589 | os=-ose | ||
2313 | 590 | ;; | ||
2314 | 591 | fx2800) | ||
2315 | 592 | basic_machine=i860-alliant | ||
2316 | 593 | ;; | ||
2317 | 594 | genix) | ||
2318 | 595 | basic_machine=ns32k-ns | ||
2319 | 596 | ;; | ||
2320 | 597 | gmicro) | ||
2321 | 598 | basic_machine=tron-gmicro | ||
2322 | 599 | os=-sysv | ||
2323 | 600 | ;; | ||
2324 | 601 | go32) | ||
2325 | 602 | basic_machine=i386-pc | ||
2326 | 603 | os=-go32 | ||
2327 | 604 | ;; | ||
2328 | 605 | h3050r* | hiux*) | ||
2329 | 606 | basic_machine=hppa1.1-hitachi | ||
2330 | 607 | os=-hiuxwe2 | ||
2331 | 608 | ;; | ||
2332 | 609 | h8300hms) | ||
2333 | 610 | basic_machine=h8300-hitachi | ||
2334 | 611 | os=-hms | ||
2335 | 612 | ;; | ||
2336 | 613 | h8300xray) | ||
2337 | 614 | basic_machine=h8300-hitachi | ||
2338 | 615 | os=-xray | ||
2339 | 616 | ;; | ||
2340 | 617 | h8500hms) | ||
2341 | 618 | basic_machine=h8500-hitachi | ||
2342 | 619 | os=-hms | ||
2343 | 620 | ;; | ||
2344 | 621 | harris) | ||
2345 | 622 | basic_machine=m88k-harris | ||
2346 | 623 | os=-sysv3 | ||
2347 | 624 | ;; | ||
2348 | 625 | hp300-*) | ||
2349 | 626 | basic_machine=m68k-hp | ||
2350 | 627 | ;; | ||
2351 | 628 | hp300bsd) | ||
2352 | 629 | basic_machine=m68k-hp | ||
2353 | 630 | os=-bsd | ||
2354 | 631 | ;; | ||
2355 | 632 | hp300hpux) | ||
2356 | 633 | basic_machine=m68k-hp | ||
2357 | 634 | os=-hpux | ||
2358 | 635 | ;; | ||
2359 | 636 | hp3k9[0-9][0-9] | hp9[0-9][0-9]) | ||
2360 | 637 | basic_machine=hppa1.0-hp | ||
2361 | 638 | ;; | ||
2362 | 639 | hp9k2[0-9][0-9] | hp9k31[0-9]) | ||
2363 | 640 | basic_machine=m68000-hp | ||
2364 | 641 | ;; | ||
2365 | 642 | hp9k3[2-9][0-9]) | ||
2366 | 643 | basic_machine=m68k-hp | ||
2367 | 644 | ;; | ||
2368 | 645 | hp9k6[0-9][0-9] | hp6[0-9][0-9]) | ||
2369 | 646 | basic_machine=hppa1.0-hp | ||
2370 | 647 | ;; | ||
2371 | 648 | hp9k7[0-79][0-9] | hp7[0-79][0-9]) | ||
2372 | 649 | basic_machine=hppa1.1-hp | ||
2373 | 650 | ;; | ||
2374 | 651 | hp9k78[0-9] | hp78[0-9]) | ||
2375 | 652 | # FIXME: really hppa2.0-hp | ||
2376 | 653 | basic_machine=hppa1.1-hp | ||
2377 | 654 | ;; | ||
2378 | 655 | hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) | ||
2379 | 656 | # FIXME: really hppa2.0-hp | ||
2380 | 657 | basic_machine=hppa1.1-hp | ||
2381 | 658 | ;; | ||
2382 | 659 | hp9k8[0-9][13679] | hp8[0-9][13679]) | ||
2383 | 660 | basic_machine=hppa1.1-hp | ||
2384 | 661 | ;; | ||
2385 | 662 | hp9k8[0-9][0-9] | hp8[0-9][0-9]) | ||
2386 | 663 | basic_machine=hppa1.0-hp | ||
2387 | 664 | ;; | ||
2388 | 665 | hppa-next) | ||
2389 | 666 | os=-nextstep3 | ||
2390 | 667 | ;; | ||
2391 | 668 | hppaosf) | ||
2392 | 669 | basic_machine=hppa1.1-hp | ||
2393 | 670 | os=-osf | ||
2394 | 671 | ;; | ||
2395 | 672 | hppro) | ||
2396 | 673 | basic_machine=hppa1.1-hp | ||
2397 | 674 | os=-proelf | ||
2398 | 675 | ;; | ||
2399 | 676 | i370-ibm* | ibm*) | ||
2400 | 677 | basic_machine=i370-ibm | ||
2401 | 678 | ;; | ||
2402 | 679 | # I'm not sure what "Sysv32" means. Should this be sysv3.2? | ||
2403 | 680 | i*86v32) | ||
2404 | 681 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | ||
2405 | 682 | os=-sysv32 | ||
2406 | 683 | ;; | ||
2407 | 684 | i*86v4*) | ||
2408 | 685 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | ||
2409 | 686 | os=-sysv4 | ||
2410 | 687 | ;; | ||
2411 | 688 | i*86v) | ||
2412 | 689 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | ||
2413 | 690 | os=-sysv | ||
2414 | 691 | ;; | ||
2415 | 692 | i*86sol2) | ||
2416 | 693 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | ||
2417 | 694 | os=-solaris2 | ||
2418 | 695 | ;; | ||
2419 | 696 | i386mach) | ||
2420 | 697 | basic_machine=i386-mach | ||
2421 | 698 | os=-mach | ||
2422 | 699 | ;; | ||
2423 | 700 | i386-vsta | vsta) | ||
2424 | 701 | basic_machine=i386-unknown | ||
2425 | 702 | os=-vsta | ||
2426 | 703 | ;; | ||
2427 | 704 | iris | iris4d) | ||
2428 | 705 | basic_machine=mips-sgi | ||
2429 | 706 | case $os in | ||
2430 | 707 | -irix*) | ||
2431 | 708 | ;; | ||
2432 | 709 | *) | ||
2433 | 710 | os=-irix4 | ||
2434 | 711 | ;; | ||
2435 | 712 | esac | ||
2436 | 713 | ;; | ||
2437 | 714 | isi68 | isi) | ||
2438 | 715 | basic_machine=m68k-isi | ||
2439 | 716 | os=-sysv | ||
2440 | 717 | ;; | ||
2441 | 718 | m68knommu) | ||
2442 | 719 | basic_machine=m68k-unknown | ||
2443 | 720 | os=-linux | ||
2444 | 721 | ;; | ||
2445 | 722 | m68knommu-*) | ||
2446 | 723 | basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
2447 | 724 | os=-linux | ||
2448 | 725 | ;; | ||
2449 | 726 | m88k-omron*) | ||
2450 | 727 | basic_machine=m88k-omron | ||
2451 | 728 | ;; | ||
2452 | 729 | magnum | m3230) | ||
2453 | 730 | basic_machine=mips-mips | ||
2454 | 731 | os=-sysv | ||
2455 | 732 | ;; | ||
2456 | 733 | merlin) | ||
2457 | 734 | basic_machine=ns32k-utek | ||
2458 | 735 | os=-sysv | ||
2459 | 736 | ;; | ||
2460 | 737 | microblaze) | ||
2461 | 738 | basic_machine=microblaze-xilinx | ||
2462 | 739 | ;; | ||
2463 | 740 | mingw32) | ||
2464 | 741 | basic_machine=i386-pc | ||
2465 | 742 | os=-mingw32 | ||
2466 | 743 | ;; | ||
2467 | 744 | mingw32ce) | ||
2468 | 745 | basic_machine=arm-unknown | ||
2469 | 746 | os=-mingw32ce | ||
2470 | 747 | ;; | ||
2471 | 748 | miniframe) | ||
2472 | 749 | basic_machine=m68000-convergent | ||
2473 | 750 | ;; | ||
2474 | 751 | *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) | ||
2475 | 752 | basic_machine=m68k-atari | ||
2476 | 753 | os=-mint | ||
2477 | 754 | ;; | ||
2478 | 755 | mips3*-*) | ||
2479 | 756 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` | ||
2480 | 757 | ;; | ||
2481 | 758 | mips3*) | ||
2482 | 759 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown | ||
2483 | 760 | ;; | ||
2484 | 761 | monitor) | ||
2485 | 762 | basic_machine=m68k-rom68k | ||
2486 | 763 | os=-coff | ||
2487 | 764 | ;; | ||
2488 | 765 | morphos) | ||
2489 | 766 | basic_machine=powerpc-unknown | ||
2490 | 767 | os=-morphos | ||
2491 | 768 | ;; | ||
2492 | 769 | msdos) | ||
2493 | 770 | basic_machine=i386-pc | ||
2494 | 771 | os=-msdos | ||
2495 | 772 | ;; | ||
2496 | 773 | ms1-*) | ||
2497 | 774 | basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` | ||
2498 | 775 | ;; | ||
2499 | 776 | mvs) | ||
2500 | 777 | basic_machine=i370-ibm | ||
2501 | 778 | os=-mvs | ||
2502 | 779 | ;; | ||
2503 | 780 | ncr3000) | ||
2504 | 781 | basic_machine=i486-ncr | ||
2505 | 782 | os=-sysv4 | ||
2506 | 783 | ;; | ||
2507 | 784 | netbsd386) | ||
2508 | 785 | basic_machine=i386-unknown | ||
2509 | 786 | os=-netbsd | ||
2510 | 787 | ;; | ||
2511 | 788 | netwinder) | ||
2512 | 789 | basic_machine=armv4l-rebel | ||
2513 | 790 | os=-linux | ||
2514 | 791 | ;; | ||
2515 | 792 | news | news700 | news800 | news900) | ||
2516 | 793 | basic_machine=m68k-sony | ||
2517 | 794 | os=-newsos | ||
2518 | 795 | ;; | ||
2519 | 796 | news1000) | ||
2520 | 797 | basic_machine=m68030-sony | ||
2521 | 798 | os=-newsos | ||
2522 | 799 | ;; | ||
2523 | 800 | news-3600 | risc-news) | ||
2524 | 801 | basic_machine=mips-sony | ||
2525 | 802 | os=-newsos | ||
2526 | 803 | ;; | ||
2527 | 804 | necv70) | ||
2528 | 805 | basic_machine=v70-nec | ||
2529 | 806 | os=-sysv | ||
2530 | 807 | ;; | ||
2531 | 808 | next | m*-next ) | ||
2532 | 809 | basic_machine=m68k-next | ||
2533 | 810 | case $os in | ||
2534 | 811 | -nextstep* ) | ||
2535 | 812 | ;; | ||
2536 | 813 | -ns2*) | ||
2537 | 814 | os=-nextstep2 | ||
2538 | 815 | ;; | ||
2539 | 816 | *) | ||
2540 | 817 | os=-nextstep3 | ||
2541 | 818 | ;; | ||
2542 | 819 | esac | ||
2543 | 820 | ;; | ||
2544 | 821 | nh3000) | ||
2545 | 822 | basic_machine=m68k-harris | ||
2546 | 823 | os=-cxux | ||
2547 | 824 | ;; | ||
2548 | 825 | nh[45]000) | ||
2549 | 826 | basic_machine=m88k-harris | ||
2550 | 827 | os=-cxux | ||
2551 | 828 | ;; | ||
2552 | 829 | nindy960) | ||
2553 | 830 | basic_machine=i960-intel | ||
2554 | 831 | os=-nindy | ||
2555 | 832 | ;; | ||
2556 | 833 | mon960) | ||
2557 | 834 | basic_machine=i960-intel | ||
2558 | 835 | os=-mon960 | ||
2559 | 836 | ;; | ||
2560 | 837 | nonstopux) | ||
2561 | 838 | basic_machine=mips-compaq | ||
2562 | 839 | os=-nonstopux | ||
2563 | 840 | ;; | ||
2564 | 841 | np1) | ||
2565 | 842 | basic_machine=np1-gould | ||
2566 | 843 | ;; | ||
2567 | 844 | nsr-tandem) | ||
2568 | 845 | basic_machine=nsr-tandem | ||
2569 | 846 | ;; | ||
2570 | 847 | op50n-* | op60c-*) | ||
2571 | 848 | basic_machine=hppa1.1-oki | ||
2572 | 849 | os=-proelf | ||
2573 | 850 | ;; | ||
2574 | 851 | openrisc | openrisc-*) | ||
2575 | 852 | basic_machine=or32-unknown | ||
2576 | 853 | ;; | ||
2577 | 854 | os400) | ||
2578 | 855 | basic_machine=powerpc-ibm | ||
2579 | 856 | os=-os400 | ||
2580 | 857 | ;; | ||
2581 | 858 | OSE68000 | ose68000) | ||
2582 | 859 | basic_machine=m68000-ericsson | ||
2583 | 860 | os=-ose | ||
2584 | 861 | ;; | ||
2585 | 862 | os68k) | ||
2586 | 863 | basic_machine=m68k-none | ||
2587 | 864 | os=-os68k | ||
2588 | 865 | ;; | ||
2589 | 866 | pa-hitachi) | ||
2590 | 867 | basic_machine=hppa1.1-hitachi | ||
2591 | 868 | os=-hiuxwe2 | ||
2592 | 869 | ;; | ||
2593 | 870 | paragon) | ||
2594 | 871 | basic_machine=i860-intel | ||
2595 | 872 | os=-osf | ||
2596 | 873 | ;; | ||
2597 | 874 | parisc) | ||
2598 | 875 | basic_machine=hppa-unknown | ||
2599 | 876 | os=-linux | ||
2600 | 877 | ;; | ||
2601 | 878 | parisc-*) | ||
2602 | 879 | basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
2603 | 880 | os=-linux | ||
2604 | 881 | ;; | ||
2605 | 882 | pbd) | ||
2606 | 883 | basic_machine=sparc-tti | ||
2607 | 884 | ;; | ||
2608 | 885 | pbb) | ||
2609 | 886 | basic_machine=m68k-tti | ||
2610 | 887 | ;; | ||
2611 | 888 | pc532 | pc532-*) | ||
2612 | 889 | basic_machine=ns32k-pc532 | ||
2613 | 890 | ;; | ||
2614 | 891 | pc98) | ||
2615 | 892 | basic_machine=i386-pc | ||
2616 | 893 | ;; | ||
2617 | 894 | pc98-*) | ||
2618 | 895 | basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
2619 | 896 | ;; | ||
2620 | 897 | pentium | p5 | k5 | k6 | nexgen | viac3) | ||
2621 | 898 | basic_machine=i586-pc | ||
2622 | 899 | ;; | ||
2623 | 900 | pentiumpro | p6 | 6x86 | athlon | athlon_*) | ||
2624 | 901 | basic_machine=i686-pc | ||
2625 | 902 | ;; | ||
2626 | 903 | pentiumii | pentium2 | pentiumiii | pentium3) | ||
2627 | 904 | basic_machine=i686-pc | ||
2628 | 905 | ;; | ||
2629 | 906 | pentium4) | ||
2630 | 907 | basic_machine=i786-pc | ||
2631 | 908 | ;; | ||
2632 | 909 | pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) | ||
2633 | 910 | basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
2634 | 911 | ;; | ||
2635 | 912 | pentiumpro-* | p6-* | 6x86-* | athlon-*) | ||
2636 | 913 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
2637 | 914 | ;; | ||
2638 | 915 | pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) | ||
2639 | 916 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
2640 | 917 | ;; | ||
2641 | 918 | pentium4-*) | ||
2642 | 919 | basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
2643 | 920 | ;; | ||
2644 | 921 | pn) | ||
2645 | 922 | basic_machine=pn-gould | ||
2646 | 923 | ;; | ||
2647 | 924 | power) basic_machine=power-ibm | ||
2648 | 925 | ;; | ||
2649 | 926 | ppc) basic_machine=powerpc-unknown | ||
2650 | 927 | ;; | ||
2651 | 928 | ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
2652 | 929 | ;; | ||
2653 | 930 | ppcle | powerpclittle | ppc-le | powerpc-little) | ||
2654 | 931 | basic_machine=powerpcle-unknown | ||
2655 | 932 | ;; | ||
2656 | 933 | ppcle-* | powerpclittle-*) | ||
2657 | 934 | basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
2658 | 935 | ;; | ||
2659 | 936 | ppc64) basic_machine=powerpc64-unknown | ||
2660 | 937 | ;; | ||
2661 | 938 | ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
2662 | 939 | ;; | ||
2663 | 940 | ppc64le | powerpc64little | ppc64-le | powerpc64-little) | ||
2664 | 941 | basic_machine=powerpc64le-unknown | ||
2665 | 942 | ;; | ||
2666 | 943 | ppc64le-* | powerpc64little-*) | ||
2667 | 944 | basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` | ||
2668 | 945 | ;; | ||
2669 | 946 | ps2) | ||
2670 | 947 | basic_machine=i386-ibm | ||
2671 | 948 | ;; | ||
2672 | 949 | pw32) | ||
2673 | 950 | basic_machine=i586-unknown | ||
2674 | 951 | os=-pw32 | ||
2675 | 952 | ;; | ||
2676 | 953 | rdos) | ||
2677 | 954 | basic_machine=i386-pc | ||
2678 | 955 | os=-rdos | ||
2679 | 956 | ;; | ||
2680 | 957 | rom68k) | ||
2681 | 958 | basic_machine=m68k-rom68k | ||
2682 | 959 | os=-coff | ||
2683 | 960 | ;; | ||
2684 | 961 | rm[46]00) | ||
2685 | 962 | basic_machine=mips-siemens | ||
2686 | 963 | ;; | ||
2687 | 964 | rtpc | rtpc-*) | ||
2688 | 965 | basic_machine=romp-ibm | ||
2689 | 966 | ;; | ||
2690 | 967 | s390 | s390-*) | ||
2691 | 968 | basic_machine=s390-ibm | ||
2692 | 969 | ;; | ||
2693 | 970 | s390x | s390x-*) | ||
2694 | 971 | basic_machine=s390x-ibm | ||
2695 | 972 | ;; | ||
2696 | 973 | sa29200) | ||
2697 | 974 | basic_machine=a29k-amd | ||
2698 | 975 | os=-udi | ||
2699 | 976 | ;; | ||
2700 | 977 | sb1) | ||
2701 | 978 | basic_machine=mipsisa64sb1-unknown | ||
2702 | 979 | ;; | ||
2703 | 980 | sb1el) | ||
2704 | 981 | basic_machine=mipsisa64sb1el-unknown | ||
2705 | 982 | ;; | ||
2706 | 983 | sde) | ||
2707 | 984 | basic_machine=mipsisa32-sde | ||
2708 | 985 | os=-elf | ||
2709 | 986 | ;; | ||
2710 | 987 | sei) | ||
2711 | 988 | basic_machine=mips-sei | ||
2712 | 989 | os=-seiux | ||
2713 | 990 | ;; | ||
2714 | 991 | sequent) | ||
2715 | 992 | basic_machine=i386-sequent | ||
2716 | 993 | ;; | ||
2717 | 994 | sh) | ||
2718 | 995 | basic_machine=sh-hitachi | ||
2719 | 996 | os=-hms | ||
2720 | 997 | ;; | ||
2721 | 998 | sh5el) | ||
2722 | 999 | basic_machine=sh5le-unknown | ||
2723 | 1000 | ;; | ||
2724 | 1001 | sh64) | ||
2725 | 1002 | basic_machine=sh64-unknown | ||
2726 | 1003 | ;; | ||
2727 | 1004 | sparclite-wrs | simso-wrs) | ||
2728 | 1005 | basic_machine=sparclite-wrs | ||
2729 | 1006 | os=-vxworks | ||
2730 | 1007 | ;; | ||
2731 | 1008 | sps7) | ||
2732 | 1009 | basic_machine=m68k-bull | ||
2733 | 1010 | os=-sysv2 | ||
2734 | 1011 | ;; | ||
2735 | 1012 | spur) | ||
2736 | 1013 | basic_machine=spur-unknown | ||
2737 | 1014 | ;; | ||
2738 | 1015 | st2000) | ||
2739 | 1016 | basic_machine=m68k-tandem | ||
2740 | 1017 | ;; | ||
2741 | 1018 | stratus) | ||
2742 | 1019 | basic_machine=i860-stratus | ||
2743 | 1020 | os=-sysv4 | ||
2744 | 1021 | ;; | ||
2745 | 1022 | sun2) | ||
2746 | 1023 | basic_machine=m68000-sun | ||
2747 | 1024 | ;; | ||
2748 | 1025 | sun2os3) | ||
2749 | 1026 | basic_machine=m68000-sun | ||
2750 | 1027 | os=-sunos3 | ||
2751 | 1028 | ;; | ||
2752 | 1029 | sun2os4) | ||
2753 | 1030 | basic_machine=m68000-sun | ||
2754 | 1031 | os=-sunos4 | ||
2755 | 1032 | ;; | ||
2756 | 1033 | sun3os3) | ||
2757 | 1034 | basic_machine=m68k-sun | ||
2758 | 1035 | os=-sunos3 | ||
2759 | 1036 | ;; | ||
2760 | 1037 | sun3os4) | ||
2761 | 1038 | basic_machine=m68k-sun | ||
2762 | 1039 | os=-sunos4 | ||
2763 | 1040 | ;; | ||
2764 | 1041 | sun4os3) | ||
2765 | 1042 | basic_machine=sparc-sun | ||
2766 | 1043 | os=-sunos3 | ||
2767 | 1044 | ;; | ||
2768 | 1045 | sun4os4) | ||
2769 | 1046 | basic_machine=sparc-sun | ||
2770 | 1047 | os=-sunos4 | ||
2771 | 1048 | ;; | ||
2772 | 1049 | sun4sol2) | ||
2773 | 1050 | basic_machine=sparc-sun | ||
2774 | 1051 | os=-solaris2 | ||
2775 | 1052 | ;; | ||
2776 | 1053 | sun3 | sun3-*) | ||
2777 | 1054 | basic_machine=m68k-sun | ||
2778 | 1055 | ;; | ||
2779 | 1056 | sun4) | ||
2780 | 1057 | basic_machine=sparc-sun | ||
2781 | 1058 | ;; | ||
2782 | 1059 | sun386 | sun386i | roadrunner) | ||
2783 | 1060 | basic_machine=i386-sun | ||
2784 | 1061 | ;; | ||
2785 | 1062 | sv1) | ||
2786 | 1063 | basic_machine=sv1-cray | ||
2787 | 1064 | os=-unicos | ||
2788 | 1065 | ;; | ||
2789 | 1066 | symmetry) | ||
2790 | 1067 | basic_machine=i386-sequent | ||
2791 | 1068 | os=-dynix | ||
2792 | 1069 | ;; | ||
2793 | 1070 | t3e) | ||
2794 | 1071 | basic_machine=alphaev5-cray | ||
2795 | 1072 | os=-unicos | ||
2796 | 1073 | ;; | ||
2797 | 1074 | t90) | ||
2798 | 1075 | basic_machine=t90-cray | ||
2799 | 1076 | os=-unicos | ||
2800 | 1077 | ;; | ||
2801 | 1078 | tic54x | c54x*) | ||
2802 | 1079 | basic_machine=tic54x-unknown | ||
2803 | 1080 | os=-coff | ||
2804 | 1081 | ;; | ||
2805 | 1082 | tic55x | c55x*) | ||
2806 | 1083 | basic_machine=tic55x-unknown | ||
2807 | 1084 | os=-coff | ||
2808 | 1085 | ;; | ||
2809 | 1086 | tic6x | c6x*) | ||
2810 | 1087 | basic_machine=tic6x-unknown | ||
2811 | 1088 | os=-coff | ||
2812 | 1089 | ;; | ||
2813 | 1090 | # This must be matched before tile*. | ||
2814 | 1091 | tilegx*) | ||
2815 | 1092 | basic_machine=tilegx-unknown | ||
2816 | 1093 | os=-linux-gnu | ||
2817 | 1094 | ;; | ||
2818 | 1095 | tile*) | ||
2819 | 1096 | basic_machine=tile-unknown | ||
2820 | 1097 | os=-linux-gnu | ||
2821 | 1098 | ;; | ||
2822 | 1099 | tx39) | ||
2823 | 1100 | basic_machine=mipstx39-unknown | ||
2824 | 1101 | ;; | ||
2825 | 1102 | tx39el) | ||
2826 | 1103 | basic_machine=mipstx39el-unknown | ||
2827 | 1104 | ;; | ||
2828 | 1105 | toad1) | ||
2829 | 1106 | basic_machine=pdp10-xkl | ||
2830 | 1107 | os=-tops20 | ||
2831 | 1108 | ;; | ||
2832 | 1109 | tower | tower-32) | ||
2833 | 1110 | basic_machine=m68k-ncr | ||
2834 | 1111 | ;; | ||
2835 | 1112 | tpf) | ||
2836 | 1113 | basic_machine=s390x-ibm | ||
2837 | 1114 | os=-tpf | ||
2838 | 1115 | ;; | ||
2839 | 1116 | udi29k) | ||
2840 | 1117 | basic_machine=a29k-amd | ||
2841 | 1118 | os=-udi | ||
2842 | 1119 | ;; | ||
2843 | 1120 | ultra3) | ||
2844 | 1121 | basic_machine=a29k-nyu | ||
2845 | 1122 | os=-sym1 | ||
2846 | 1123 | ;; | ||
2847 | 1124 | v810 | necv810) | ||
2848 | 1125 | basic_machine=v810-nec | ||
2849 | 1126 | os=-none | ||
2850 | 1127 | ;; | ||
2851 | 1128 | vaxv) | ||
2852 | 1129 | basic_machine=vax-dec | ||
2853 | 1130 | os=-sysv | ||
2854 | 1131 | ;; | ||
2855 | 1132 | vms) | ||
2856 | 1133 | basic_machine=vax-dec | ||
2857 | 1134 | os=-vms | ||
2858 | 1135 | ;; | ||
2859 | 1136 | vpp*|vx|vx-*) | ||
2860 | 1137 | basic_machine=f301-fujitsu | ||
2861 | 1138 | ;; | ||
2862 | 1139 | vxworks960) | ||
2863 | 1140 | basic_machine=i960-wrs | ||
2864 | 1141 | os=-vxworks | ||
2865 | 1142 | ;; | ||
2866 | 1143 | vxworks68) | ||
2867 | 1144 | basic_machine=m68k-wrs | ||
2868 | 1145 | os=-vxworks | ||
2869 | 1146 | ;; | ||
2870 | 1147 | vxworks29k) | ||
2871 | 1148 | basic_machine=a29k-wrs | ||
2872 | 1149 | os=-vxworks | ||
2873 | 1150 | ;; | ||
2874 | 1151 | w65*) | ||
2875 | 1152 | basic_machine=w65-wdc | ||
2876 | 1153 | os=-none | ||
2877 | 1154 | ;; | ||
2878 | 1155 | w89k-*) | ||
2879 | 1156 | basic_machine=hppa1.1-winbond | ||
2880 | 1157 | os=-proelf | ||
2881 | 1158 | ;; | ||
2882 | 1159 | xbox) | ||
2883 | 1160 | basic_machine=i686-pc | ||
2884 | 1161 | os=-mingw32 | ||
2885 | 1162 | ;; | ||
2886 | 1163 | xps | xps100) | ||
2887 | 1164 | basic_machine=xps100-honeywell | ||
2888 | 1165 | ;; | ||
2889 | 1166 | ymp) | ||
2890 | 1167 | basic_machine=ymp-cray | ||
2891 | 1168 | os=-unicos | ||
2892 | 1169 | ;; | ||
2893 | 1170 | z8k-*-coff) | ||
2894 | 1171 | basic_machine=z8k-unknown | ||
2895 | 1172 | os=-sim | ||
2896 | 1173 | ;; | ||
2897 | 1174 | z80-*-coff) | ||
2898 | 1175 | basic_machine=z80-unknown | ||
2899 | 1176 | os=-sim | ||
2900 | 1177 | ;; | ||
2901 | 1178 | none) | ||
2902 | 1179 | basic_machine=none-none | ||
2903 | 1180 | os=-none | ||
2904 | 1181 | ;; | ||
2905 | 1182 | |||
2906 | 1183 | # Here we handle the default manufacturer of certain CPU types. It is in | ||
2907 | 1184 | # some cases the only manufacturer, in others, it is the most popular. | ||
2908 | 1185 | w89k) | ||
2909 | 1186 | basic_machine=hppa1.1-winbond | ||
2910 | 1187 | ;; | ||
2911 | 1188 | op50n) | ||
2912 | 1189 | basic_machine=hppa1.1-oki | ||
2913 | 1190 | ;; | ||
2914 | 1191 | op60c) | ||
2915 | 1192 | basic_machine=hppa1.1-oki | ||
2916 | 1193 | ;; | ||
2917 | 1194 | romp) | ||
2918 | 1195 | basic_machine=romp-ibm | ||
2919 | 1196 | ;; | ||
2920 | 1197 | mmix) | ||
2921 | 1198 | basic_machine=mmix-knuth | ||
2922 | 1199 | ;; | ||
2923 | 1200 | rs6000) | ||
2924 | 1201 | basic_machine=rs6000-ibm | ||
2925 | 1202 | ;; | ||
2926 | 1203 | vax) | ||
2927 | 1204 | basic_machine=vax-dec | ||
2928 | 1205 | ;; | ||
2929 | 1206 | pdp10) | ||
2930 | 1207 | # there are many clones, so DEC is not a safe bet | ||
2931 | 1208 | basic_machine=pdp10-unknown | ||
2932 | 1209 | ;; | ||
2933 | 1210 | pdp11) | ||
2934 | 1211 | basic_machine=pdp11-dec | ||
2935 | 1212 | ;; | ||
2936 | 1213 | we32k) | ||
2937 | 1214 | basic_machine=we32k-att | ||
2938 | 1215 | ;; | ||
2939 | 1216 | sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) | ||
2940 | 1217 | basic_machine=sh-unknown | ||
2941 | 1218 | ;; | ||
2942 | 1219 | sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) | ||
2943 | 1220 | basic_machine=sparc-sun | ||
2944 | 1221 | ;; | ||
2945 | 1222 | cydra) | ||
2946 | 1223 | basic_machine=cydra-cydrome | ||
2947 | 1224 | ;; | ||
2948 | 1225 | orion) | ||
2949 | 1226 | basic_machine=orion-highlevel | ||
2950 | 1227 | ;; | ||
2951 | 1228 | orion105) | ||
2952 | 1229 | basic_machine=clipper-highlevel | ||
2953 | 1230 | ;; | ||
2954 | 1231 | mac | mpw | mac-mpw) | ||
2955 | 1232 | basic_machine=m68k-apple | ||
2956 | 1233 | ;; | ||
2957 | 1234 | pmac | pmac-mpw) | ||
2958 | 1235 | basic_machine=powerpc-apple | ||
2959 | 1236 | ;; | ||
2960 | 1237 | *-unknown) | ||
2961 | 1238 | # Make sure to match an already-canonicalized machine name. | ||
2962 | 1239 | ;; | ||
2963 | 1240 | *) | ||
2964 | 1241 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | ||
2965 | 1242 | exit 1 | ||
2966 | 1243 | ;; | ||
2967 | 1244 | esac | ||
2968 | 1245 | |||
2969 | 1246 | # Here we canonicalize certain aliases for manufacturers. | ||
2970 | 1247 | case $basic_machine in | ||
2971 | 1248 | *-digital*) | ||
2972 | 1249 | basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` | ||
2973 | 1250 | ;; | ||
2974 | 1251 | *-commodore*) | ||
2975 | 1252 | basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` | ||
2976 | 1253 | ;; | ||
2977 | 1254 | *) | ||
2978 | 1255 | ;; | ||
2979 | 1256 | esac | ||
2980 | 1257 | |||
2981 | 1258 | # Decode manufacturer-specific aliases for certain operating systems. | ||
2982 | 1259 | |||
2983 | 1260 | if [ x"$os" != x"" ] | ||
2984 | 1261 | then | ||
2985 | 1262 | case $os in | ||
2986 | 1263 | # First match some system type aliases | ||
2987 | 1264 | # that might get confused with valid system types. | ||
2988 | 1265 | # -solaris* is a basic system type, with this one exception. | ||
2989 | 1266 | -auroraux) | ||
2990 | 1267 | os=-auroraux | ||
2991 | 1268 | ;; | ||
2992 | 1269 | -solaris1 | -solaris1.*) | ||
2993 | 1270 | os=`echo $os | sed -e 's|solaris1|sunos4|'` | ||
2994 | 1271 | ;; | ||
2995 | 1272 | -solaris) | ||
2996 | 1273 | os=-solaris2 | ||
2997 | 1274 | ;; | ||
2998 | 1275 | -svr4*) | ||
2999 | 1276 | os=-sysv4 | ||
3000 | 1277 | ;; | ||
3001 | 1278 | -unixware*) | ||
3002 | 1279 | os=-sysv4.2uw | ||
3003 | 1280 | ;; | ||
3004 | 1281 | -gnu/linux*) | ||
3005 | 1282 | os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` | ||
3006 | 1283 | ;; | ||
3007 | 1284 | # First accept the basic system types. | ||
3008 | 1285 | # The portable systems comes first. | ||
3009 | 1286 | # Each alternative MUST END IN A *, to match a version number. | ||
3010 | 1287 | # -sysv* is not here because it comes later, after sysvr4. | ||
3011 | 1288 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | ||
3012 | 1289 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | ||
3013 | 1290 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | ||
3014 | 1291 | | -sym* | -kopensolaris* \ | ||
3015 | 1292 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | ||
3016 | 1293 | | -aos* | -aros* \ | ||
3017 | 1294 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | ||
3018 | 1295 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | ||
3019 | 1296 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | ||
3020 | 1297 | | -openbsd* | -solidbsd* \ | ||
3021 | 1298 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | ||
3022 | 1299 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | ||
3023 | 1300 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | ||
3024 | 1301 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | ||
3025 | 1302 | | -chorusos* | -chorusrdb* | -cegcc* \ | ||
3026 | 1303 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | ||
3027 | 1304 | | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | ||
3028 | 1305 | | -uxpv* | -beos* | -mpeix* | -udk* \ | ||
3029 | 1306 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | ||
3030 | 1307 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | ||
3031 | 1308 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | ||
3032 | 1309 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | ||
3033 | 1310 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | ||
3034 | 1311 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | ||
3035 | 1312 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) | ||
3036 | 1313 | # Remember, each alternative MUST END IN *, to match a version number. | ||
3037 | 1314 | ;; | ||
3038 | 1315 | -qnx*) | ||
3039 | 1316 | case $basic_machine in | ||
3040 | 1317 | x86-* | i*86-*) | ||
3041 | 1318 | ;; | ||
3042 | 1319 | *) | ||
3043 | 1320 | os=-nto$os | ||
3044 | 1321 | ;; | ||
3045 | 1322 | esac | ||
3046 | 1323 | ;; | ||
3047 | 1324 | -nto-qnx*) | ||
3048 | 1325 | ;; | ||
3049 | 1326 | -nto*) | ||
3050 | 1327 | os=`echo $os | sed -e 's|nto|nto-qnx|'` | ||
3051 | 1328 | ;; | ||
3052 | 1329 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | ||
3053 | 1330 | | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | ||
3054 | 1331 | | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) | ||
3055 | 1332 | ;; | ||
3056 | 1333 | -mac*) | ||
3057 | 1334 | os=`echo $os | sed -e 's|mac|macos|'` | ||
3058 | 1335 | ;; | ||
3059 | 1336 | -linux-dietlibc) | ||
3060 | 1337 | os=-linux-dietlibc | ||
3061 | 1338 | ;; | ||
3062 | 1339 | -linux*) | ||
3063 | 1340 | os=`echo $os | sed -e 's|linux|linux-gnu|'` | ||
3064 | 1341 | ;; | ||
3065 | 1342 | -sunos5*) | ||
3066 | 1343 | os=`echo $os | sed -e 's|sunos5|solaris2|'` | ||
3067 | 1344 | ;; | ||
3068 | 1345 | -sunos6*) | ||
3069 | 1346 | os=`echo $os | sed -e 's|sunos6|solaris3|'` | ||
3070 | 1347 | ;; | ||
3071 | 1348 | -opened*) | ||
3072 | 1349 | os=-openedition | ||
3073 | 1350 | ;; | ||
3074 | 1351 | -os400*) | ||
3075 | 1352 | os=-os400 | ||
3076 | 1353 | ;; | ||
3077 | 1354 | -wince*) | ||
3078 | 1355 | os=-wince | ||
3079 | 1356 | ;; | ||
3080 | 1357 | -osfrose*) | ||
3081 | 1358 | os=-osfrose | ||
3082 | 1359 | ;; | ||
3083 | 1360 | -osf*) | ||
3084 | 1361 | os=-osf | ||
3085 | 1362 | ;; | ||
3086 | 1363 | -utek*) | ||
3087 | 1364 | os=-bsd | ||
3088 | 1365 | ;; | ||
3089 | 1366 | -dynix*) | ||
3090 | 1367 | os=-bsd | ||
3091 | 1368 | ;; | ||
3092 | 1369 | -acis*) | ||
3093 | 1370 | os=-aos | ||
3094 | 1371 | ;; | ||
3095 | 1372 | -atheos*) | ||
3096 | 1373 | os=-atheos | ||
3097 | 1374 | ;; | ||
3098 | 1375 | -syllable*) | ||
3099 | 1376 | os=-syllable | ||
3100 | 1377 | ;; | ||
3101 | 1378 | -386bsd) | ||
3102 | 1379 | os=-bsd | ||
3103 | 1380 | ;; | ||
3104 | 1381 | -ctix* | -uts*) | ||
3105 | 1382 | os=-sysv | ||
3106 | 1383 | ;; | ||
3107 | 1384 | -nova*) | ||
3108 | 1385 | os=-rtmk-nova | ||
3109 | 1386 | ;; | ||
3110 | 1387 | -ns2 ) | ||
3111 | 1388 | os=-nextstep2 | ||
3112 | 1389 | ;; | ||
3113 | 1390 | -nsk*) | ||
3114 | 1391 | os=-nsk | ||
3115 | 1392 | ;; | ||
3116 | 1393 | # Preserve the version number of sinix5. | ||
3117 | 1394 | -sinix5.*) | ||
3118 | 1395 | os=`echo $os | sed -e 's|sinix|sysv|'` | ||
3119 | 1396 | ;; | ||
3120 | 1397 | -sinix*) | ||
3121 | 1398 | os=-sysv4 | ||
3122 | 1399 | ;; | ||
3123 | 1400 | -tpf*) | ||
3124 | 1401 | os=-tpf | ||
3125 | 1402 | ;; | ||
3126 | 1403 | -triton*) | ||
3127 | 1404 | os=-sysv3 | ||
3128 | 1405 | ;; | ||
3129 | 1406 | -oss*) | ||
3130 | 1407 | os=-sysv3 | ||
3131 | 1408 | ;; | ||
3132 | 1409 | -svr4) | ||
3133 | 1410 | os=-sysv4 | ||
3134 | 1411 | ;; | ||
3135 | 1412 | -svr3) | ||
3136 | 1413 | os=-sysv3 | ||
3137 | 1414 | ;; | ||
3138 | 1415 | -sysvr4) | ||
3139 | 1416 | os=-sysv4 | ||
3140 | 1417 | ;; | ||
3141 | 1418 | # This must come after -sysvr4. | ||
3142 | 1419 | -sysv*) | ||
3143 | 1420 | ;; | ||
3144 | 1421 | -ose*) | ||
3145 | 1422 | os=-ose | ||
3146 | 1423 | ;; | ||
3147 | 1424 | -es1800*) | ||
3148 | 1425 | os=-ose | ||
3149 | 1426 | ;; | ||
3150 | 1427 | -xenix) | ||
3151 | 1428 | os=-xenix | ||
3152 | 1429 | ;; | ||
3153 | 1430 | -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) | ||
3154 | 1431 | os=-mint | ||
3155 | 1432 | ;; | ||
3156 | 1433 | -aros*) | ||
3157 | 1434 | os=-aros | ||
3158 | 1435 | ;; | ||
3159 | 1436 | -kaos*) | ||
3160 | 1437 | os=-kaos | ||
3161 | 1438 | ;; | ||
3162 | 1439 | -zvmoe) | ||
3163 | 1440 | os=-zvmoe | ||
3164 | 1441 | ;; | ||
3165 | 1442 | -dicos*) | ||
3166 | 1443 | os=-dicos | ||
3167 | 1444 | ;; | ||
3168 | 1445 | -nacl*) | ||
3169 | 1446 | ;; | ||
3170 | 1447 | -none) | ||
3171 | 1448 | ;; | ||
3172 | 1449 | *) | ||
3173 | 1450 | # Get rid of the `-' at the beginning of $os. | ||
3174 | 1451 | os=`echo $os | sed 's/[^-]*-//'` | ||
3175 | 1452 | echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 | ||
3176 | 1453 | exit 1 | ||
3177 | 1454 | ;; | ||
3178 | 1455 | esac | ||
3179 | 1456 | else | ||
3180 | 1457 | |||
3181 | 1458 | # Here we handle the default operating systems that come with various machines. | ||
3182 | 1459 | # The value should be what the vendor currently ships out the door with their | ||
3183 | 1460 | # machine or put another way, the most popular os provided with the machine. | ||
3184 | 1461 | |||
3185 | 1462 | # Note that if you're going to try to match "-MANUFACTURER" here (say, | ||
3186 | 1463 | # "-sun"), then you have to tell the case statement up towards the top | ||
3187 | 1464 | # that MANUFACTURER isn't an operating system. Otherwise, code above | ||
3188 | 1465 | # will signal an error saying that MANUFACTURER isn't an operating | ||
3189 | 1466 | # system, and we'll never get to this point. | ||
3190 | 1467 | |||
3191 | 1468 | case $basic_machine in | ||
3192 | 1469 | score-*) | ||
3193 | 1470 | os=-elf | ||
3194 | 1471 | ;; | ||
3195 | 1472 | spu-*) | ||
3196 | 1473 | os=-elf | ||
3197 | 1474 | ;; | ||
3198 | 1475 | *-acorn) | ||
3199 | 1476 | os=-riscix1.2 | ||
3200 | 1477 | ;; | ||
3201 | 1478 | arm*-rebel) | ||
3202 | 1479 | os=-linux | ||
3203 | 1480 | ;; | ||
3204 | 1481 | arm*-semi) | ||
3205 | 1482 | os=-aout | ||
3206 | 1483 | ;; | ||
3207 | 1484 | c4x-* | tic4x-*) | ||
3208 | 1485 | os=-coff | ||
3209 | 1486 | ;; | ||
3210 | 1487 | # This must come before the *-dec entry. | ||
3211 | 1488 | pdp10-*) | ||
3212 | 1489 | os=-tops20 | ||
3213 | 1490 | ;; | ||
3214 | 1491 | pdp11-*) | ||
3215 | 1492 | os=-none | ||
3216 | 1493 | ;; | ||
3217 | 1494 | *-dec | vax-*) | ||
3218 | 1495 | os=-ultrix4.2 | ||
3219 | 1496 | ;; | ||
3220 | 1497 | m68*-apollo) | ||
3221 | 1498 | os=-domain | ||
3222 | 1499 | ;; | ||
3223 | 1500 | i386-sun) | ||
3224 | 1501 | os=-sunos4.0.2 | ||
3225 | 1502 | ;; | ||
3226 | 1503 | m68000-sun) | ||
3227 | 1504 | os=-sunos3 | ||
3228 | 1505 | # This also exists in the configure program, but was not the | ||
3229 | 1506 | # default. | ||
3230 | 1507 | # os=-sunos4 | ||
3231 | 1508 | ;; | ||
3232 | 1509 | m68*-cisco) | ||
3233 | 1510 | os=-aout | ||
3234 | 1511 | ;; | ||
3235 | 1512 | mep-*) | ||
3236 | 1513 | os=-elf | ||
3237 | 1514 | ;; | ||
3238 | 1515 | mips*-cisco) | ||
3239 | 1516 | os=-elf | ||
3240 | 1517 | ;; | ||
3241 | 1518 | mips*-*) | ||
3242 | 1519 | os=-elf | ||
3243 | 1520 | ;; | ||
3244 | 1521 | or32-*) | ||
3245 | 1522 | os=-coff | ||
3246 | 1523 | ;; | ||
3247 | 1524 | *-tti) # must be before sparc entry or we get the wrong os. | ||
3248 | 1525 | os=-sysv3 | ||
3249 | 1526 | ;; | ||
3250 | 1527 | sparc-* | *-sun) | ||
3251 | 1528 | os=-sunos4.1.1 | ||
3252 | 1529 | ;; | ||
3253 | 1530 | *-be) | ||
3254 | 1531 | os=-beos | ||
3255 | 1532 | ;; | ||
3256 | 1533 | *-haiku) | ||
3257 | 1534 | os=-haiku | ||
3258 | 1535 | ;; | ||
3259 | 1536 | *-ibm) | ||
3260 | 1537 | os=-aix | ||
3261 | 1538 | ;; | ||
3262 | 1539 | *-knuth) | ||
3263 | 1540 | os=-mmixware | ||
3264 | 1541 | ;; | ||
3265 | 1542 | *-wec) | ||
3266 | 1543 | os=-proelf | ||
3267 | 1544 | ;; | ||
3268 | 1545 | *-winbond) | ||
3269 | 1546 | os=-proelf | ||
3270 | 1547 | ;; | ||
3271 | 1548 | *-oki) | ||
3272 | 1549 | os=-proelf | ||
3273 | 1550 | ;; | ||
3274 | 1551 | *-hp) | ||
3275 | 1552 | os=-hpux | ||
3276 | 1553 | ;; | ||
3277 | 1554 | *-hitachi) | ||
3278 | 1555 | os=-hiux | ||
3279 | 1556 | ;; | ||
3280 | 1557 | i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) | ||
3281 | 1558 | os=-sysv | ||
3282 | 1559 | ;; | ||
3283 | 1560 | *-cbm) | ||
3284 | 1561 | os=-amigaos | ||
3285 | 1562 | ;; | ||
3286 | 1563 | *-dg) | ||
3287 | 1564 | os=-dgux | ||
3288 | 1565 | ;; | ||
3289 | 1566 | *-dolphin) | ||
3290 | 1567 | os=-sysv3 | ||
3291 | 1568 | ;; | ||
3292 | 1569 | m68k-ccur) | ||
3293 | 1570 | os=-rtu | ||
3294 | 1571 | ;; | ||
3295 | 1572 | m88k-omron*) | ||
3296 | 1573 | os=-luna | ||
3297 | 1574 | ;; | ||
3298 | 1575 | *-next ) | ||
3299 | 1576 | os=-nextstep | ||
3300 | 1577 | ;; | ||
3301 | 1578 | *-sequent) | ||
3302 | 1579 | os=-ptx | ||
3303 | 1580 | ;; | ||
3304 | 1581 | *-crds) | ||
3305 | 1582 | os=-unos | ||
3306 | 1583 | ;; | ||
3307 | 1584 | *-ns) | ||
3308 | 1585 | os=-genix | ||
3309 | 1586 | ;; | ||
3310 | 1587 | i370-*) | ||
3311 | 1588 | os=-mvs | ||
3312 | 1589 | ;; | ||
3313 | 1590 | *-next) | ||
3314 | 1591 | os=-nextstep3 | ||
3315 | 1592 | ;; | ||
3316 | 1593 | *-gould) | ||
3317 | 1594 | os=-sysv | ||
3318 | 1595 | ;; | ||
3319 | 1596 | *-highlevel) | ||
3320 | 1597 | os=-bsd | ||
3321 | 1598 | ;; | ||
3322 | 1599 | *-encore) | ||
3323 | 1600 | os=-bsd | ||
3324 | 1601 | ;; | ||
3325 | 1602 | *-sgi) | ||
3326 | 1603 | os=-irix | ||
3327 | 1604 | ;; | ||
3328 | 1605 | *-siemens) | ||
3329 | 1606 | os=-sysv4 | ||
3330 | 1607 | ;; | ||
3331 | 1608 | *-masscomp) | ||
3332 | 1609 | os=-rtu | ||
3333 | 1610 | ;; | ||
3334 | 1611 | f30[01]-fujitsu | f700-fujitsu) | ||
3335 | 1612 | os=-uxpv | ||
3336 | 1613 | ;; | ||
3337 | 1614 | *-rom68k) | ||
3338 | 1615 | os=-coff | ||
3339 | 1616 | ;; | ||
3340 | 1617 | *-*bug) | ||
3341 | 1618 | os=-coff | ||
3342 | 1619 | ;; | ||
3343 | 1620 | *-apple) | ||
3344 | 1621 | os=-macos | ||
3345 | 1622 | ;; | ||
3346 | 1623 | *-atari*) | ||
3347 | 1624 | os=-mint | ||
3348 | 1625 | ;; | ||
3349 | 1626 | *) | ||
3350 | 1627 | os=-none | ||
3351 | 1628 | ;; | ||
3352 | 1629 | esac | ||
3353 | 1630 | fi | ||
3354 | 1631 | |||
3355 | 1632 | # Here we handle the case where we know the os, and the CPU type, but not the | ||
3356 | 1633 | # manufacturer. We pick the logical manufacturer. | ||
3357 | 1634 | vendor=unknown | ||
3358 | 1635 | case $basic_machine in | ||
3359 | 1636 | *-unknown) | ||
3360 | 1637 | case $os in | ||
3361 | 1638 | -riscix*) | ||
3362 | 1639 | vendor=acorn | ||
3363 | 1640 | ;; | ||
3364 | 1641 | -sunos*) | ||
3365 | 1642 | vendor=sun | ||
3366 | 1643 | ;; | ||
3367 | 1644 | -cnk*|-aix*) | ||
3368 | 1645 | vendor=ibm | ||
3369 | 1646 | ;; | ||
3370 | 1647 | -beos*) | ||
3371 | 1648 | vendor=be | ||
3372 | 1649 | ;; | ||
3373 | 1650 | -hpux*) | ||
3374 | 1651 | vendor=hp | ||
3375 | 1652 | ;; | ||
3376 | 1653 | -mpeix*) | ||
3377 | 1654 | vendor=hp | ||
3378 | 1655 | ;; | ||
3379 | 1656 | -hiux*) | ||
3380 | 1657 | vendor=hitachi | ||
3381 | 1658 | ;; | ||
3382 | 1659 | -unos*) | ||
3383 | 1660 | vendor=crds | ||
3384 | 1661 | ;; | ||
3385 | 1662 | -dgux*) | ||
3386 | 1663 | vendor=dg | ||
3387 | 1664 | ;; | ||
3388 | 1665 | -luna*) | ||
3389 | 1666 | vendor=omron | ||
3390 | 1667 | ;; | ||
3391 | 1668 | -genix*) | ||
3392 | 1669 | vendor=ns | ||
3393 | 1670 | ;; | ||
3394 | 1671 | -mvs* | -opened*) | ||
3395 | 1672 | vendor=ibm | ||
3396 | 1673 | ;; | ||
3397 | 1674 | -os400*) | ||
3398 | 1675 | vendor=ibm | ||
3399 | 1676 | ;; | ||
3400 | 1677 | -ptx*) | ||
3401 | 1678 | vendor=sequent | ||
3402 | 1679 | ;; | ||
3403 | 1680 | -tpf*) | ||
3404 | 1681 | vendor=ibm | ||
3405 | 1682 | ;; | ||
3406 | 1683 | -vxsim* | -vxworks* | -windiss*) | ||
3407 | 1684 | vendor=wrs | ||
3408 | 1685 | ;; | ||
3409 | 1686 | -aux*) | ||
3410 | 1687 | vendor=apple | ||
3411 | 1688 | ;; | ||
3412 | 1689 | -hms*) | ||
3413 | 1690 | vendor=hitachi | ||
3414 | 1691 | ;; | ||
3415 | 1692 | -mpw* | -macos*) | ||
3416 | 1693 | vendor=apple | ||
3417 | 1694 | ;; | ||
3418 | 1695 | -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) | ||
3419 | 1696 | vendor=atari | ||
3420 | 1697 | ;; | ||
3421 | 1698 | -vos*) | ||
3422 | 1699 | vendor=stratus | ||
3423 | 1700 | ;; | ||
3424 | 1701 | esac | ||
3425 | 1702 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` | ||
3426 | 1703 | ;; | ||
3427 | 1704 | esac | ||
3428 | 1705 | |||
3429 | 1706 | echo $basic_machine$os | ||
3430 | 1707 | exit | ||
3431 | 1708 | |||
3432 | 1709 | # Local variables: | ||
3433 | 1710 | # eval: (add-hook 'write-file-hooks 'time-stamp) | ||
3434 | 1711 | # time-stamp-start: "timestamp='" | ||
3435 | 1712 | # time-stamp-format: "%:y-%02m-%02d" | ||
3436 | 1713 | # time-stamp-end: "'" | ||
3437 | 1714 | # End: | ||
3438 | 1715 | 0 | ||
3439 | === modified file 'configure' | |||
3440 | --- configure 2012-04-04 19:35:30 +0000 | |||
3441 | +++ configure 2012-04-11 15:58:20 +0000 | |||
3442 | @@ -1,6 +1,6 @@ | |||
3443 | 1 | #! /bin/sh | 1 | #! /bin/sh |
3444 | 2 | # Guess values for system-dependent variables and create Makefiles. | 2 | # Guess values for system-dependent variables and create Makefiles. |
3446 | 3 | # Generated by GNU Autoconf 2.68 for libindicator 0.4.95. | 3 | # Generated by GNU Autoconf 2.68 for libindicator 0.5.0. |
3447 | 4 | # | 4 | # |
3448 | 5 | # Report bugs to <http://bugs.launchpad.net/libindicator>. | 5 | # Report bugs to <http://bugs.launchpad.net/libindicator>. |
3449 | 6 | # | 6 | # |
3450 | @@ -570,8 +570,8 @@ | |||
3451 | 570 | # Identity of this package. | 570 | # Identity of this package. |
3452 | 571 | PACKAGE_NAME='libindicator' | 571 | PACKAGE_NAME='libindicator' |
3453 | 572 | PACKAGE_TARNAME='libindicator' | 572 | PACKAGE_TARNAME='libindicator' |
3456 | 573 | PACKAGE_VERSION='0.4.95' | 573 | PACKAGE_VERSION='0.5.0' |
3457 | 574 | PACKAGE_STRING='libindicator 0.4.95' | 574 | PACKAGE_STRING='libindicator 0.5.0' |
3458 | 575 | PACKAGE_BUGREPORT='http://bugs.launchpad.net/libindicator' | 575 | PACKAGE_BUGREPORT='http://bugs.launchpad.net/libindicator' |
3459 | 576 | PACKAGE_URL='http://launchpad.net/libindicator' | 576 | PACKAGE_URL='http://launchpad.net/libindicator' |
3460 | 577 | 577 | ||
3461 | @@ -1337,7 +1337,7 @@ | |||
3462 | 1337 | # Omit some internal or obsolete options to make the list less imposing. | 1337 | # Omit some internal or obsolete options to make the list less imposing. |
3463 | 1338 | # This message is too long to be a string in the A/UX 3.1 sh. | 1338 | # This message is too long to be a string in the A/UX 3.1 sh. |
3464 | 1339 | cat <<_ACEOF | 1339 | cat <<_ACEOF |
3466 | 1340 | \`configure' configures libindicator 0.4.95 to adapt to many kinds of systems. | 1340 | \`configure' configures libindicator 0.5.0 to adapt to many kinds of systems. |
3467 | 1341 | 1341 | ||
3468 | 1342 | Usage: $0 [OPTION]... [VAR=VALUE]... | 1342 | Usage: $0 [OPTION]... [VAR=VALUE]... |
3469 | 1343 | 1343 | ||
3470 | @@ -1407,7 +1407,7 @@ | |||
3471 | 1407 | 1407 | ||
3472 | 1408 | if test -n "$ac_init_help"; then | 1408 | if test -n "$ac_init_help"; then |
3473 | 1409 | case $ac_init_help in | 1409 | case $ac_init_help in |
3475 | 1410 | short | recursive ) echo "Configuration of libindicator 0.4.95:";; | 1410 | short | recursive ) echo "Configuration of libindicator 0.5.0:";; |
3476 | 1411 | esac | 1411 | esac |
3477 | 1412 | cat <<\_ACEOF | 1412 | cat <<\_ACEOF |
3478 | 1413 | 1413 | ||
3479 | @@ -1527,7 +1527,7 @@ | |||
3480 | 1527 | test -n "$ac_init_help" && exit $ac_status | 1527 | test -n "$ac_init_help" && exit $ac_status |
3481 | 1528 | if $ac_init_version; then | 1528 | if $ac_init_version; then |
3482 | 1529 | cat <<\_ACEOF | 1529 | cat <<\_ACEOF |
3484 | 1530 | libindicator configure 0.4.95 | 1530 | libindicator configure 0.5.0 |
3485 | 1531 | generated by GNU Autoconf 2.68 | 1531 | generated by GNU Autoconf 2.68 |
3486 | 1532 | 1532 | ||
3487 | 1533 | Copyright (C) 2010 Free Software Foundation, Inc. | 1533 | Copyright (C) 2010 Free Software Foundation, Inc. |
3488 | @@ -1805,7 +1805,7 @@ | |||
3489 | 1805 | This file contains any messages produced by compilers while | 1805 | This file contains any messages produced by compilers while |
3490 | 1806 | running configure, to aid debugging if configure makes a mistake. | 1806 | running configure, to aid debugging if configure makes a mistake. |
3491 | 1807 | 1807 | ||
3493 | 1808 | It was created by libindicator $as_me 0.4.95, which was | 1808 | It was created by libindicator $as_me 0.5.0, which was |
3494 | 1809 | generated by GNU Autoconf 2.68. Invocation command line was | 1809 | generated by GNU Autoconf 2.68. Invocation command line was |
3495 | 1810 | 1810 | ||
3496 | 1811 | $ $0 $@ | 1811 | $ $0 $@ |
3497 | @@ -2628,7 +2628,7 @@ | |||
3498 | 2628 | 2628 | ||
3499 | 2629 | # Define the identity of the package. | 2629 | # Define the identity of the package. |
3500 | 2630 | PACKAGE='libindicator' | 2630 | PACKAGE='libindicator' |
3502 | 2631 | VERSION='0.4.95' | 2631 | VERSION='0.5.0' |
3503 | 2632 | 2632 | ||
3504 | 2633 | 2633 | ||
3505 | 2634 | cat >>confdefs.h <<_ACEOF | 2634 | cat >>confdefs.h <<_ACEOF |
3506 | @@ -13081,7 +13081,7 @@ | |||
3507 | 13081 | # report actual input values of CONFIG_FILES etc. instead of their | 13081 | # report actual input values of CONFIG_FILES etc. instead of their |
3508 | 13082 | # values after options handling. | 13082 | # values after options handling. |
3509 | 13083 | ac_log=" | 13083 | ac_log=" |
3511 | 13084 | This file was extended by libindicator $as_me 0.4.95, which was | 13084 | This file was extended by libindicator $as_me 0.5.0, which was |
3512 | 13085 | generated by GNU Autoconf 2.68. Invocation command line was | 13085 | generated by GNU Autoconf 2.68. Invocation command line was |
3513 | 13086 | 13086 | ||
3514 | 13087 | CONFIG_FILES = $CONFIG_FILES | 13087 | CONFIG_FILES = $CONFIG_FILES |
3515 | @@ -13148,7 +13148,7 @@ | |||
3516 | 13148 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 13148 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
3517 | 13149 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | 13149 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
3518 | 13150 | ac_cs_version="\\ | 13150 | ac_cs_version="\\ |
3520 | 13151 | libindicator config.status 0.4.95 | 13151 | libindicator config.status 0.5.0 |
3521 | 13152 | configured by $0, generated by GNU Autoconf 2.68, | 13152 | configured by $0, generated by GNU Autoconf 2.68, |
3522 | 13153 | with options \\"\$ac_cs_config\\" | 13153 | with options \\"\$ac_cs_config\\" |
3523 | 13154 | 13154 | ||
3524 | 13155 | 13155 | ||
3525 | === modified file 'configure.ac' | |||
3526 | --- configure.ac 2012-04-04 19:35:30 +0000 | |||
3527 | +++ configure.ac 2012-04-11 15:58:20 +0000 | |||
3528 | @@ -1,5 +1,5 @@ | |||
3529 | 1 | AC_INIT([libindicator], | 1 | AC_INIT([libindicator], |
3531 | 2 | [0.4.95], | 2 | [0.5.0], |
3532 | 3 | [http://bugs.launchpad.net/libindicator], | 3 | [http://bugs.launchpad.net/libindicator], |
3533 | 4 | [libindicator], | 4 | [libindicator], |
3534 | 5 | [http://launchpad.net/libindicator]) | 5 | [http://launchpad.net/libindicator]) |
3535 | 6 | 6 | ||
3536 | === modified file 'debian/changelog' | |||
3537 | --- debian/changelog 2012-04-05 10:44:30 +0000 | |||
3538 | +++ debian/changelog 2012-04-11 15:58:20 +0000 | |||
3539 | @@ -1,3 +1,10 @@ | |||
3540 | 1 | libindicator (0.5.0-0ubuntu1~ppa1) precise; urgency=low | ||
3541 | 2 | |||
3542 | 3 | * New upstream release. | ||
3543 | 4 | * Validate images in image_helper_update() (LP: #946408) | ||
3544 | 5 | |||
3545 | 6 | -- Charles Kerr <charles.kerr@canonical.com> Wed, 11 Apr 2012 10:54:42 -0500 | ||
3546 | 7 | |||
3547 | 1 | libindicator (0.4.95-0ubuntu1) precise; urgency=low | 8 | libindicator (0.4.95-0ubuntu1) precise; urgency=low |
3548 | 2 | 9 | ||
3549 | 3 | * New upstream release. | 10 | * New upstream release. |
3550 | 4 | 11 | ||
3551 | === removed file 'depcomp' | |||
3552 | --- depcomp 2012-04-04 19:34:11 +0000 | |||
3553 | +++ depcomp 1970-01-01 00:00:00 +0000 | |||
3554 | @@ -1,630 +0,0 @@ | |||
3555 | 1 | #! /bin/sh | ||
3556 | 2 | # depcomp - compile a program generating dependencies as side-effects | ||
3557 | 3 | |||
3558 | 4 | scriptversion=2009-04-28.21; # UTC | ||
3559 | 5 | |||
3560 | 6 | # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free | ||
3561 | 7 | # Software Foundation, Inc. | ||
3562 | 8 | |||
3563 | 9 | # This program is free software; you can redistribute it and/or modify | ||
3564 | 10 | # it under the terms of the GNU General Public License as published by | ||
3565 | 11 | # the Free Software Foundation; either version 2, or (at your option) | ||
3566 | 12 | # any later version. | ||
3567 | 13 | |||
3568 | 14 | # This program is distributed in the hope that it will be useful, | ||
3569 | 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
3570 | 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
3571 | 17 | # GNU General Public License for more details. | ||
3572 | 18 | |||
3573 | 19 | # You should have received a copy of the GNU General Public License | ||
3574 | 20 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
3575 | 21 | |||
3576 | 22 | # As a special exception to the GNU General Public License, if you | ||
3577 | 23 | # distribute this file as part of a program that contains a | ||
3578 | 24 | # configuration script generated by Autoconf, you may include it under | ||
3579 | 25 | # the same distribution terms that you use for the rest of that program. | ||
3580 | 26 | |||
3581 | 27 | # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>. | ||
3582 | 28 | |||
3583 | 29 | case $1 in | ||
3584 | 30 | '') | ||
3585 | 31 | echo "$0: No command. Try \`$0 --help' for more information." 1>&2 | ||
3586 | 32 | exit 1; | ||
3587 | 33 | ;; | ||
3588 | 34 | -h | --h*) | ||
3589 | 35 | cat <<\EOF | ||
3590 | 36 | Usage: depcomp [--help] [--version] PROGRAM [ARGS] | ||
3591 | 37 | |||
3592 | 38 | Run PROGRAMS ARGS to compile a file, generating dependencies | ||
3593 | 39 | as side-effects. | ||
3594 | 40 | |||
3595 | 41 | Environment variables: | ||
3596 | 42 | depmode Dependency tracking mode. | ||
3597 | 43 | source Source file read by `PROGRAMS ARGS'. | ||
3598 | 44 | object Object file output by `PROGRAMS ARGS'. | ||
3599 | 45 | DEPDIR directory where to store dependencies. | ||
3600 | 46 | depfile Dependency file to output. | ||
3601 | 47 | tmpdepfile Temporary file to use when outputing dependencies. | ||
3602 | 48 | libtool Whether libtool is used (yes/no). | ||
3603 | 49 | |||
3604 | 50 | Report bugs to <bug-automake@gnu.org>. | ||
3605 | 51 | EOF | ||
3606 | 52 | exit $? | ||
3607 | 53 | ;; | ||
3608 | 54 | -v | --v*) | ||
3609 | 55 | echo "depcomp $scriptversion" | ||
3610 | 56 | exit $? | ||
3611 | 57 | ;; | ||
3612 | 58 | esac | ||
3613 | 59 | |||
3614 | 60 | if test -z "$depmode" || test -z "$source" || test -z "$object"; then | ||
3615 | 61 | echo "depcomp: Variables source, object and depmode must be set" 1>&2 | ||
3616 | 62 | exit 1 | ||
3617 | 63 | fi | ||
3618 | 64 | |||
3619 | 65 | # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. | ||
3620 | 66 | depfile=${depfile-`echo "$object" | | ||
3621 | 67 | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} | ||
3622 | 68 | tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} | ||
3623 | 69 | |||
3624 | 70 | rm -f "$tmpdepfile" | ||
3625 | 71 | |||
3626 | 72 | # Some modes work just like other modes, but use different flags. We | ||
3627 | 73 | # parameterize here, but still list the modes in the big case below, | ||
3628 | 74 | # to make depend.m4 easier to write. Note that we *cannot* use a case | ||
3629 | 75 | # here, because this file can only contain one case statement. | ||
3630 | 76 | if test "$depmode" = hp; then | ||
3631 | 77 | # HP compiler uses -M and no extra arg. | ||
3632 | 78 | gccflag=-M | ||
3633 | 79 | depmode=gcc | ||
3634 | 80 | fi | ||
3635 | 81 | |||
3636 | 82 | if test "$depmode" = dashXmstdout; then | ||
3637 | 83 | # This is just like dashmstdout with a different argument. | ||
3638 | 84 | dashmflag=-xM | ||
3639 | 85 | depmode=dashmstdout | ||
3640 | 86 | fi | ||
3641 | 87 | |||
3642 | 88 | cygpath_u="cygpath -u -f -" | ||
3643 | 89 | if test "$depmode" = msvcmsys; then | ||
3644 | 90 | # This is just like msvisualcpp but w/o cygpath translation. | ||
3645 | 91 | # Just convert the backslash-escaped backslashes to single forward | ||
3646 | 92 | # slashes to satisfy depend.m4 | ||
3647 | 93 | cygpath_u="sed s,\\\\\\\\,/,g" | ||
3648 | 94 | depmode=msvisualcpp | ||
3649 | 95 | fi | ||
3650 | 96 | |||
3651 | 97 | case "$depmode" in | ||
3652 | 98 | gcc3) | ||
3653 | 99 | ## gcc 3 implements dependency tracking that does exactly what | ||
3654 | 100 | ## we want. Yay! Note: for some reason libtool 1.4 doesn't like | ||
3655 | 101 | ## it if -MD -MP comes after the -MF stuff. Hmm. | ||
3656 | 102 | ## Unfortunately, FreeBSD c89 acceptance of flags depends upon | ||
3657 | 103 | ## the command line argument order; so add the flags where they | ||
3658 | 104 | ## appear in depend2.am. Note that the slowdown incurred here | ||
3659 | 105 | ## affects only configure: in makefiles, %FASTDEP% shortcuts this. | ||
3660 | 106 | for arg | ||
3661 | 107 | do | ||
3662 | 108 | case $arg in | ||
3663 | 109 | -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; | ||
3664 | 110 | *) set fnord "$@" "$arg" ;; | ||
3665 | 111 | esac | ||
3666 | 112 | shift # fnord | ||
3667 | 113 | shift # $arg | ||
3668 | 114 | done | ||
3669 | 115 | "$@" | ||
3670 | 116 | stat=$? | ||
3671 | 117 | if test $stat -eq 0; then : | ||
3672 | 118 | else | ||
3673 | 119 | rm -f "$tmpdepfile" | ||
3674 | 120 | exit $stat | ||
3675 | 121 | fi | ||
3676 | 122 | mv "$tmpdepfile" "$depfile" | ||
3677 | 123 | ;; | ||
3678 | 124 | |||
3679 | 125 | gcc) | ||
3680 | 126 | ## There are various ways to get dependency output from gcc. Here's | ||
3681 | 127 | ## why we pick this rather obscure method: | ||
3682 | 128 | ## - Don't want to use -MD because we'd like the dependencies to end | ||
3683 | 129 | ## up in a subdir. Having to rename by hand is ugly. | ||
3684 | 130 | ## (We might end up doing this anyway to support other compilers.) | ||
3685 | 131 | ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like | ||
3686 | 132 | ## -MM, not -M (despite what the docs say). | ||
3687 | 133 | ## - Using -M directly means running the compiler twice (even worse | ||
3688 | 134 | ## than renaming). | ||
3689 | 135 | if test -z "$gccflag"; then | ||
3690 | 136 | gccflag=-MD, | ||
3691 | 137 | fi | ||
3692 | 138 | "$@" -Wp,"$gccflag$tmpdepfile" | ||
3693 | 139 | stat=$? | ||
3694 | 140 | if test $stat -eq 0; then : | ||
3695 | 141 | else | ||
3696 | 142 | rm -f "$tmpdepfile" | ||
3697 | 143 | exit $stat | ||
3698 | 144 | fi | ||
3699 | 145 | rm -f "$depfile" | ||
3700 | 146 | echo "$object : \\" > "$depfile" | ||
3701 | 147 | alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz | ||
3702 | 148 | ## The second -e expression handles DOS-style file names with drive letters. | ||
3703 | 149 | sed -e 's/^[^:]*: / /' \ | ||
3704 | 150 | -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" | ||
3705 | 151 | ## This next piece of magic avoids the `deleted header file' problem. | ||
3706 | 152 | ## The problem is that when a header file which appears in a .P file | ||
3707 | 153 | ## is deleted, the dependency causes make to die (because there is | ||
3708 | 154 | ## typically no way to rebuild the header). We avoid this by adding | ||
3709 | 155 | ## dummy dependencies for each header file. Too bad gcc doesn't do | ||
3710 | 156 | ## this for us directly. | ||
3711 | 157 | tr ' ' ' | ||
3712 | 158 | ' < "$tmpdepfile" | | ||
3713 | 159 | ## Some versions of gcc put a space before the `:'. On the theory | ||
3714 | 160 | ## that the space means something, we add a space to the output as | ||
3715 | 161 | ## well. | ||
3716 | 162 | ## Some versions of the HPUX 10.20 sed can't process this invocation | ||
3717 | 163 | ## correctly. Breaking it into two sed invocations is a workaround. | ||
3718 | 164 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | ||
3719 | 165 | rm -f "$tmpdepfile" | ||
3720 | 166 | ;; | ||
3721 | 167 | |||
3722 | 168 | hp) | ||
3723 | 169 | # This case exists only to let depend.m4 do its work. It works by | ||
3724 | 170 | # looking at the text of this script. This case will never be run, | ||
3725 | 171 | # since it is checked for above. | ||
3726 | 172 | exit 1 | ||
3727 | 173 | ;; | ||
3728 | 174 | |||
3729 | 175 | sgi) | ||
3730 | 176 | if test "$libtool" = yes; then | ||
3731 | 177 | "$@" "-Wp,-MDupdate,$tmpdepfile" | ||
3732 | 178 | else | ||
3733 | 179 | "$@" -MDupdate "$tmpdepfile" | ||
3734 | 180 | fi | ||
3735 | 181 | stat=$? | ||
3736 | 182 | if test $stat -eq 0; then : | ||
3737 | 183 | else | ||
3738 | 184 | rm -f "$tmpdepfile" | ||
3739 | 185 | exit $stat | ||
3740 | 186 | fi | ||
3741 | 187 | rm -f "$depfile" | ||
3742 | 188 | |||
3743 | 189 | if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files | ||
3744 | 190 | echo "$object : \\" > "$depfile" | ||
3745 | 191 | |||
3746 | 192 | # Clip off the initial element (the dependent). Don't try to be | ||
3747 | 193 | # clever and replace this with sed code, as IRIX sed won't handle | ||
3748 | 194 | # lines with more than a fixed number of characters (4096 in | ||
3749 | 195 | # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; | ||
3750 | 196 | # the IRIX cc adds comments like `#:fec' to the end of the | ||
3751 | 197 | # dependency line. | ||
3752 | 198 | tr ' ' ' | ||
3753 | 199 | ' < "$tmpdepfile" \ | ||
3754 | 200 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ | ||
3755 | 201 | tr ' | ||
3756 | 202 | ' ' ' >> "$depfile" | ||
3757 | 203 | echo >> "$depfile" | ||
3758 | 204 | |||
3759 | 205 | # The second pass generates a dummy entry for each header file. | ||
3760 | 206 | tr ' ' ' | ||
3761 | 207 | ' < "$tmpdepfile" \ | ||
3762 | 208 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ | ||
3763 | 209 | >> "$depfile" | ||
3764 | 210 | else | ||
3765 | 211 | # The sourcefile does not contain any dependencies, so just | ||
3766 | 212 | # store a dummy comment line, to avoid errors with the Makefile | ||
3767 | 213 | # "include basename.Plo" scheme. | ||
3768 | 214 | echo "#dummy" > "$depfile" | ||
3769 | 215 | fi | ||
3770 | 216 | rm -f "$tmpdepfile" | ||
3771 | 217 | ;; | ||
3772 | 218 | |||
3773 | 219 | aix) | ||
3774 | 220 | # The C for AIX Compiler uses -M and outputs the dependencies | ||
3775 | 221 | # in a .u file. In older versions, this file always lives in the | ||
3776 | 222 | # current directory. Also, the AIX compiler puts `$object:' at the | ||
3777 | 223 | # start of each line; $object doesn't have directory information. | ||
3778 | 224 | # Version 6 uses the directory in both cases. | ||
3779 | 225 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | ||
3780 | 226 | test "x$dir" = "x$object" && dir= | ||
3781 | 227 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | ||
3782 | 228 | if test "$libtool" = yes; then | ||
3783 | 229 | tmpdepfile1=$dir$base.u | ||
3784 | 230 | tmpdepfile2=$base.u | ||
3785 | 231 | tmpdepfile3=$dir.libs/$base.u | ||
3786 | 232 | "$@" -Wc,-M | ||
3787 | 233 | else | ||
3788 | 234 | tmpdepfile1=$dir$base.u | ||
3789 | 235 | tmpdepfile2=$dir$base.u | ||
3790 | 236 | tmpdepfile3=$dir$base.u | ||
3791 | 237 | "$@" -M | ||
3792 | 238 | fi | ||
3793 | 239 | stat=$? | ||
3794 | 240 | |||
3795 | 241 | if test $stat -eq 0; then : | ||
3796 | 242 | else | ||
3797 | 243 | rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" | ||
3798 | 244 | exit $stat | ||
3799 | 245 | fi | ||
3800 | 246 | |||
3801 | 247 | for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" | ||
3802 | 248 | do | ||
3803 | 249 | test -f "$tmpdepfile" && break | ||
3804 | 250 | done | ||
3805 | 251 | if test -f "$tmpdepfile"; then | ||
3806 | 252 | # Each line is of the form `foo.o: dependent.h'. | ||
3807 | 253 | # Do two passes, one to just change these to | ||
3808 | 254 | # `$object: dependent.h' and one to simply `dependent.h:'. | ||
3809 | 255 | sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | ||
3810 | 256 | # That's a tab and a space in the []. | ||
3811 | 257 | sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | ||
3812 | 258 | else | ||
3813 | 259 | # The sourcefile does not contain any dependencies, so just | ||
3814 | 260 | # store a dummy comment line, to avoid errors with the Makefile | ||
3815 | 261 | # "include basename.Plo" scheme. | ||
3816 | 262 | echo "#dummy" > "$depfile" | ||
3817 | 263 | fi | ||
3818 | 264 | rm -f "$tmpdepfile" | ||
3819 | 265 | ;; | ||
3820 | 266 | |||
3821 | 267 | icc) | ||
3822 | 268 | # Intel's C compiler understands `-MD -MF file'. However on | ||
3823 | 269 | # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c | ||
3824 | 270 | # ICC 7.0 will fill foo.d with something like | ||
3825 | 271 | # foo.o: sub/foo.c | ||
3826 | 272 | # foo.o: sub/foo.h | ||
3827 | 273 | # which is wrong. We want: | ||
3828 | 274 | # sub/foo.o: sub/foo.c | ||
3829 | 275 | # sub/foo.o: sub/foo.h | ||
3830 | 276 | # sub/foo.c: | ||
3831 | 277 | # sub/foo.h: | ||
3832 | 278 | # ICC 7.1 will output | ||
3833 | 279 | # foo.o: sub/foo.c sub/foo.h | ||
3834 | 280 | # and will wrap long lines using \ : | ||
3835 | 281 | # foo.o: sub/foo.c ... \ | ||
3836 | 282 | # sub/foo.h ... \ | ||
3837 | 283 | # ... | ||
3838 | 284 | |||
3839 | 285 | "$@" -MD -MF "$tmpdepfile" | ||
3840 | 286 | stat=$? | ||
3841 | 287 | if test $stat -eq 0; then : | ||
3842 | 288 | else | ||
3843 | 289 | rm -f "$tmpdepfile" | ||
3844 | 290 | exit $stat | ||
3845 | 291 | fi | ||
3846 | 292 | rm -f "$depfile" | ||
3847 | 293 | # Each line is of the form `foo.o: dependent.h', | ||
3848 | 294 | # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. | ||
3849 | 295 | # Do two passes, one to just change these to | ||
3850 | 296 | # `$object: dependent.h' and one to simply `dependent.h:'. | ||
3851 | 297 | sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" | ||
3852 | 298 | # Some versions of the HPUX 10.20 sed can't process this invocation | ||
3853 | 299 | # correctly. Breaking it into two sed invocations is a workaround. | ||
3854 | 300 | sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | | ||
3855 | 301 | sed -e 's/$/ :/' >> "$depfile" | ||
3856 | 302 | rm -f "$tmpdepfile" | ||
3857 | 303 | ;; | ||
3858 | 304 | |||
3859 | 305 | hp2) | ||
3860 | 306 | # The "hp" stanza above does not work with aCC (C++) and HP's ia64 | ||
3861 | 307 | # compilers, which have integrated preprocessors. The correct option | ||
3862 | 308 | # to use with these is +Maked; it writes dependencies to a file named | ||
3863 | 309 | # 'foo.d', which lands next to the object file, wherever that | ||
3864 | 310 | # happens to be. | ||
3865 | 311 | # Much of this is similar to the tru64 case; see comments there. | ||
3866 | 312 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | ||
3867 | 313 | test "x$dir" = "x$object" && dir= | ||
3868 | 314 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | ||
3869 | 315 | if test "$libtool" = yes; then | ||
3870 | 316 | tmpdepfile1=$dir$base.d | ||
3871 | 317 | tmpdepfile2=$dir.libs/$base.d | ||
3872 | 318 | "$@" -Wc,+Maked | ||
3873 | 319 | else | ||
3874 | 320 | tmpdepfile1=$dir$base.d | ||
3875 | 321 | tmpdepfile2=$dir$base.d | ||
3876 | 322 | "$@" +Maked | ||
3877 | 323 | fi | ||
3878 | 324 | stat=$? | ||
3879 | 325 | if test $stat -eq 0; then : | ||
3880 | 326 | else | ||
3881 | 327 | rm -f "$tmpdepfile1" "$tmpdepfile2" | ||
3882 | 328 | exit $stat | ||
3883 | 329 | fi | ||
3884 | 330 | |||
3885 | 331 | for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" | ||
3886 | 332 | do | ||
3887 | 333 | test -f "$tmpdepfile" && break | ||
3888 | 334 | done | ||
3889 | 335 | if test -f "$tmpdepfile"; then | ||
3890 | 336 | sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" | ||
3891 | 337 | # Add `dependent.h:' lines. | ||
3892 | 338 | sed -ne '2,${ | ||
3893 | 339 | s/^ *// | ||
3894 | 340 | s/ \\*$// | ||
3895 | 341 | s/$/:/ | ||
3896 | 342 | p | ||
3897 | 343 | }' "$tmpdepfile" >> "$depfile" | ||
3898 | 344 | else | ||
3899 | 345 | echo "#dummy" > "$depfile" | ||
3900 | 346 | fi | ||
3901 | 347 | rm -f "$tmpdepfile" "$tmpdepfile2" | ||
3902 | 348 | ;; | ||
3903 | 349 | |||
3904 | 350 | tru64) | ||
3905 | 351 | # The Tru64 compiler uses -MD to generate dependencies as a side | ||
3906 | 352 | # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. | ||
3907 | 353 | # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put | ||
3908 | 354 | # dependencies in `foo.d' instead, so we check for that too. | ||
3909 | 355 | # Subdirectories are respected. | ||
3910 | 356 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | ||
3911 | 357 | test "x$dir" = "x$object" && dir= | ||
3912 | 358 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | ||
3913 | 359 | |||
3914 | 360 | if test "$libtool" = yes; then | ||
3915 | 361 | # With Tru64 cc, shared objects can also be used to make a | ||
3916 | 362 | # static library. This mechanism is used in libtool 1.4 series to | ||
3917 | 363 | # handle both shared and static libraries in a single compilation. | ||
3918 | 364 | # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. | ||
3919 | 365 | # | ||
3920 | 366 | # With libtool 1.5 this exception was removed, and libtool now | ||
3921 | 367 | # generates 2 separate objects for the 2 libraries. These two | ||
3922 | 368 | # compilations output dependencies in $dir.libs/$base.o.d and | ||
3923 | 369 | # in $dir$base.o.d. We have to check for both files, because | ||
3924 | 370 | # one of the two compilations can be disabled. We should prefer | ||
3925 | 371 | # $dir$base.o.d over $dir.libs/$base.o.d because the latter is | ||
3926 | 372 | # automatically cleaned when .libs/ is deleted, while ignoring | ||
3927 | 373 | # the former would cause a distcleancheck panic. | ||
3928 | 374 | tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 | ||
3929 | 375 | tmpdepfile2=$dir$base.o.d # libtool 1.5 | ||
3930 | 376 | tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 | ||
3931 | 377 | tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 | ||
3932 | 378 | "$@" -Wc,-MD | ||
3933 | 379 | else | ||
3934 | 380 | tmpdepfile1=$dir$base.o.d | ||
3935 | 381 | tmpdepfile2=$dir$base.d | ||
3936 | 382 | tmpdepfile3=$dir$base.d | ||
3937 | 383 | tmpdepfile4=$dir$base.d | ||
3938 | 384 | "$@" -MD | ||
3939 | 385 | fi | ||
3940 | 386 | |||
3941 | 387 | stat=$? | ||
3942 | 388 | if test $stat -eq 0; then : | ||
3943 | 389 | else | ||
3944 | 390 | rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | ||
3945 | 391 | exit $stat | ||
3946 | 392 | fi | ||
3947 | 393 | |||
3948 | 394 | for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | ||
3949 | 395 | do | ||
3950 | 396 | test -f "$tmpdepfile" && break | ||
3951 | 397 | done | ||
3952 | 398 | if test -f "$tmpdepfile"; then | ||
3953 | 399 | sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | ||
3954 | 400 | # That's a tab and a space in the []. | ||
3955 | 401 | sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | ||
3956 | 402 | else | ||
3957 | 403 | echo "#dummy" > "$depfile" | ||
3958 | 404 | fi | ||
3959 | 405 | rm -f "$tmpdepfile" | ||
3960 | 406 | ;; | ||
3961 | 407 | |||
3962 | 408 | #nosideeffect) | ||
3963 | 409 | # This comment above is used by automake to tell side-effect | ||
3964 | 410 | # dependency tracking mechanisms from slower ones. | ||
3965 | 411 | |||
3966 | 412 | dashmstdout) | ||
3967 | 413 | # Important note: in order to support this mode, a compiler *must* | ||
3968 | 414 | # always write the preprocessed file to stdout, regardless of -o. | ||
3969 | 415 | "$@" || exit $? | ||
3970 | 416 | |||
3971 | 417 | # Remove the call to Libtool. | ||
3972 | 418 | if test "$libtool" = yes; then | ||
3973 | 419 | while test "X$1" != 'X--mode=compile'; do | ||
3974 | 420 | shift | ||
3975 | 421 | done | ||
3976 | 422 | shift | ||
3977 | 423 | fi | ||
3978 | 424 | |||
3979 | 425 | # Remove `-o $object'. | ||
3980 | 426 | IFS=" " | ||
3981 | 427 | for arg | ||
3982 | 428 | do | ||
3983 | 429 | case $arg in | ||
3984 | 430 | -o) | ||
3985 | 431 | shift | ||
3986 | 432 | ;; | ||
3987 | 433 | $object) | ||
3988 | 434 | shift | ||
3989 | 435 | ;; | ||
3990 | 436 | *) | ||
3991 | 437 | set fnord "$@" "$arg" | ||
3992 | 438 | shift # fnord | ||
3993 | 439 | shift # $arg | ||
3994 | 440 | ;; | ||
3995 | 441 | esac | ||
3996 | 442 | done | ||
3997 | 443 | |||
3998 | 444 | test -z "$dashmflag" && dashmflag=-M | ||
3999 | 445 | # Require at least two characters before searching for `:' | ||
4000 | 446 | # in the target name. This is to cope with DOS-style filenames: | ||
4001 | 447 | # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. | ||
4002 | 448 | "$@" $dashmflag | | ||
4003 | 449 | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" | ||
4004 | 450 | rm -f "$depfile" | ||
4005 | 451 | cat < "$tmpdepfile" > "$depfile" | ||
4006 | 452 | tr ' ' ' | ||
4007 | 453 | ' < "$tmpdepfile" | \ | ||
4008 | 454 | ## Some versions of the HPUX 10.20 sed can't process this invocation | ||
4009 | 455 | ## correctly. Breaking it into two sed invocations is a workaround. | ||
4010 | 456 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | ||
4011 | 457 | rm -f "$tmpdepfile" | ||
4012 | 458 | ;; | ||
4013 | 459 | |||
4014 | 460 | dashXmstdout) | ||
4015 | 461 | # This case only exists to satisfy depend.m4. It is never actually | ||
4016 | 462 | # run, as this mode is specially recognized in the preamble. | ||
4017 | 463 | exit 1 | ||
4018 | 464 | ;; | ||
4019 | 465 | |||
4020 | 466 | makedepend) | ||
4021 | 467 | "$@" || exit $? | ||
4022 | 468 | # Remove any Libtool call | ||
4023 | 469 | if test "$libtool" = yes; then | ||
4024 | 470 | while test "X$1" != 'X--mode=compile'; do | ||
4025 | 471 | shift | ||
4026 | 472 | done | ||
4027 | 473 | shift | ||
4028 | 474 | fi | ||
4029 | 475 | # X makedepend | ||
4030 | 476 | shift | ||
4031 | 477 | cleared=no eat=no | ||
4032 | 478 | for arg | ||
4033 | 479 | do | ||
4034 | 480 | case $cleared in | ||
4035 | 481 | no) | ||
4036 | 482 | set ""; shift | ||
4037 | 483 | cleared=yes ;; | ||
4038 | 484 | esac | ||
4039 | 485 | if test $eat = yes; then | ||
4040 | 486 | eat=no | ||
4041 | 487 | continue | ||
4042 | 488 | fi | ||
4043 | 489 | case "$arg" in | ||
4044 | 490 | -D*|-I*) | ||
4045 | 491 | set fnord "$@" "$arg"; shift ;; | ||
4046 | 492 | # Strip any option that makedepend may not understand. Remove | ||
4047 | 493 | # the object too, otherwise makedepend will parse it as a source file. | ||
4048 | 494 | -arch) | ||
4049 | 495 | eat=yes ;; | ||
4050 | 496 | -*|$object) | ||
4051 | 497 | ;; | ||
4052 | 498 | *) | ||
4053 | 499 | set fnord "$@" "$arg"; shift ;; | ||
4054 | 500 | esac | ||
4055 | 501 | done | ||
4056 | 502 | obj_suffix=`echo "$object" | sed 's/^.*\././'` | ||
4057 | 503 | touch "$tmpdepfile" | ||
4058 | 504 | ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" | ||
4059 | 505 | rm -f "$depfile" | ||
4060 | 506 | cat < "$tmpdepfile" > "$depfile" | ||
4061 | 507 | sed '1,2d' "$tmpdepfile" | tr ' ' ' | ||
4062 | 508 | ' | \ | ||
4063 | 509 | ## Some versions of the HPUX 10.20 sed can't process this invocation | ||
4064 | 510 | ## correctly. Breaking it into two sed invocations is a workaround. | ||
4065 | 511 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | ||
4066 | 512 | rm -f "$tmpdepfile" "$tmpdepfile".bak | ||
4067 | 513 | ;; | ||
4068 | 514 | |||
4069 | 515 | cpp) | ||
4070 | 516 | # Important note: in order to support this mode, a compiler *must* | ||
4071 | 517 | # always write the preprocessed file to stdout. | ||
4072 | 518 | "$@" || exit $? | ||
4073 | 519 | |||
4074 | 520 | # Remove the call to Libtool. | ||
4075 | 521 | if test "$libtool" = yes; then | ||
4076 | 522 | while test "X$1" != 'X--mode=compile'; do | ||
4077 | 523 | shift | ||
4078 | 524 | done | ||
4079 | 525 | shift | ||
4080 | 526 | fi | ||
4081 | 527 | |||
4082 | 528 | # Remove `-o $object'. | ||
4083 | 529 | IFS=" " | ||
4084 | 530 | for arg | ||
4085 | 531 | do | ||
4086 | 532 | case $arg in | ||
4087 | 533 | -o) | ||
4088 | 534 | shift | ||
4089 | 535 | ;; | ||
4090 | 536 | $object) | ||
4091 | 537 | shift | ||
4092 | 538 | ;; | ||
4093 | 539 | *) | ||
4094 | 540 | set fnord "$@" "$arg" | ||
4095 | 541 | shift # fnord | ||
4096 | 542 | shift # $arg | ||
4097 | 543 | ;; | ||
4098 | 544 | esac | ||
4099 | 545 | done | ||
4100 | 546 | |||
4101 | 547 | "$@" -E | | ||
4102 | 548 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | ||
4103 | 549 | -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | | ||
4104 | 550 | sed '$ s: \\$::' > "$tmpdepfile" | ||
4105 | 551 | rm -f "$depfile" | ||
4106 | 552 | echo "$object : \\" > "$depfile" | ||
4107 | 553 | cat < "$tmpdepfile" >> "$depfile" | ||
4108 | 554 | sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" | ||
4109 | 555 | rm -f "$tmpdepfile" | ||
4110 | 556 | ;; | ||
4111 | 557 | |||
4112 | 558 | msvisualcpp) | ||
4113 | 559 | # Important note: in order to support this mode, a compiler *must* | ||
4114 | 560 | # always write the preprocessed file to stdout. | ||
4115 | 561 | "$@" || exit $? | ||
4116 | 562 | |||
4117 | 563 | # Remove the call to Libtool. | ||
4118 | 564 | if test "$libtool" = yes; then | ||
4119 | 565 | while test "X$1" != 'X--mode=compile'; do | ||
4120 | 566 | shift | ||
4121 | 567 | done | ||
4122 | 568 | shift | ||
4123 | 569 | fi | ||
4124 | 570 | |||
4125 | 571 | IFS=" " | ||
4126 | 572 | for arg | ||
4127 | 573 | do | ||
4128 | 574 | case "$arg" in | ||
4129 | 575 | -o) | ||
4130 | 576 | shift | ||
4131 | 577 | ;; | ||
4132 | 578 | $object) | ||
4133 | 579 | shift | ||
4134 | 580 | ;; | ||
4135 | 581 | "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") | ||
4136 | 582 | set fnord "$@" | ||
4137 | 583 | shift | ||
4138 | 584 | shift | ||
4139 | 585 | ;; | ||
4140 | 586 | *) | ||
4141 | 587 | set fnord "$@" "$arg" | ||
4142 | 588 | shift | ||
4143 | 589 | shift | ||
4144 | 590 | ;; | ||
4145 | 591 | esac | ||
4146 | 592 | done | ||
4147 | 593 | "$@" -E 2>/dev/null | | ||
4148 | 594 | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" | ||
4149 | 595 | rm -f "$depfile" | ||
4150 | 596 | echo "$object : \\" > "$depfile" | ||
4151 | 597 | sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" | ||
4152 | 598 | echo " " >> "$depfile" | ||
4153 | 599 | sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" | ||
4154 | 600 | rm -f "$tmpdepfile" | ||
4155 | 601 | ;; | ||
4156 | 602 | |||
4157 | 603 | msvcmsys) | ||
4158 | 604 | # This case exists only to let depend.m4 do its work. It works by | ||
4159 | 605 | # looking at the text of this script. This case will never be run, | ||
4160 | 606 | # since it is checked for above. | ||
4161 | 607 | exit 1 | ||
4162 | 608 | ;; | ||
4163 | 609 | |||
4164 | 610 | none) | ||
4165 | 611 | exec "$@" | ||
4166 | 612 | ;; | ||
4167 | 613 | |||
4168 | 614 | *) | ||
4169 | 615 | echo "Unknown depmode $depmode" 1>&2 | ||
4170 | 616 | exit 1 | ||
4171 | 617 | ;; | ||
4172 | 618 | esac | ||
4173 | 619 | |||
4174 | 620 | exit 0 | ||
4175 | 621 | |||
4176 | 622 | # Local Variables: | ||
4177 | 623 | # mode: shell-script | ||
4178 | 624 | # sh-indentation: 2 | ||
4179 | 625 | # eval: (add-hook 'write-file-hooks 'time-stamp) | ||
4180 | 626 | # time-stamp-start: "scriptversion=" | ||
4181 | 627 | # time-stamp-format: "%:y-%02m-%02d.%02H" | ||
4182 | 628 | # time-stamp-time-zone: "UTC" | ||
4183 | 629 | # time-stamp-end: "; # UTC" | ||
4184 | 630 | # End: | ||
4185 | 631 | 0 | ||
4186 | === removed file 'install-sh' | |||
4187 | --- install-sh 2012-04-04 19:34:11 +0000 | |||
4188 | +++ install-sh 1970-01-01 00:00:00 +0000 | |||
4189 | @@ -1,520 +0,0 @@ | |||
4190 | 1 | #!/bin/sh | ||
4191 | 2 | # install - install a program, script, or datafile | ||
4192 | 3 | |||
4193 | 4 | scriptversion=2009-04-28.21; # UTC | ||
4194 | 5 | |||
4195 | 6 | # This originates from X11R5 (mit/util/scripts/install.sh), which was | ||
4196 | 7 | # later released in X11R6 (xc/config/util/install.sh) with the | ||
4197 | 8 | # following copyright and license. | ||
4198 | 9 | # | ||
4199 | 10 | # Copyright (C) 1994 X Consortium | ||
4200 | 11 | # | ||
4201 | 12 | # Permission is hereby granted, free of charge, to any person obtaining a copy | ||
4202 | 13 | # of this software and associated documentation files (the "Software"), to | ||
4203 | 14 | # deal in the Software without restriction, including without limitation the | ||
4204 | 15 | # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | ||
4205 | 16 | # sell copies of the Software, and to permit persons to whom the Software is | ||
4206 | 17 | # furnished to do so, subject to the following conditions: | ||
4207 | 18 | # | ||
4208 | 19 | # The above copyright notice and this permission notice shall be included in | ||
4209 | 20 | # all copies or substantial portions of the Software. | ||
4210 | 21 | # | ||
4211 | 22 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
4212 | 23 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
4213 | 24 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
4214 | 25 | # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
4215 | 26 | # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- | ||
4216 | 27 | # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
4217 | 28 | # | ||
4218 | 29 | # Except as contained in this notice, the name of the X Consortium shall not | ||
4219 | 30 | # be used in advertising or otherwise to promote the sale, use or other deal- | ||
4220 | 31 | # ings in this Software without prior written authorization from the X Consor- | ||
4221 | 32 | # tium. | ||
4222 | 33 | # | ||
4223 | 34 | # | ||
4224 | 35 | # FSF changes to this file are in the public domain. | ||
4225 | 36 | # | ||
4226 | 37 | # Calling this script install-sh is preferred over install.sh, to prevent | ||
4227 | 38 | # `make' implicit rules from creating a file called install from it | ||
4228 | 39 | # when there is no Makefile. | ||
4229 | 40 | # | ||
4230 | 41 | # This script is compatible with the BSD install script, but was written | ||
4231 | 42 | # from scratch. | ||
4232 | 43 | |||
4233 | 44 | nl=' | ||
4234 | 45 | ' | ||
4235 | 46 | IFS=" "" $nl" | ||
4236 | 47 | |||
4237 | 48 | # set DOITPROG to echo to test this script | ||
4238 | 49 | |||
4239 | 50 | # Don't use :- since 4.3BSD and earlier shells don't like it. | ||
4240 | 51 | doit=${DOITPROG-} | ||
4241 | 52 | if test -z "$doit"; then | ||
4242 | 53 | doit_exec=exec | ||
4243 | 54 | else | ||
4244 | 55 | doit_exec=$doit | ||
4245 | 56 | fi | ||
4246 | 57 | |||
4247 | 58 | # Put in absolute file names if you don't have them in your path; | ||
4248 | 59 | # or use environment vars. | ||
4249 | 60 | |||
4250 | 61 | chgrpprog=${CHGRPPROG-chgrp} | ||
4251 | 62 | chmodprog=${CHMODPROG-chmod} | ||
4252 | 63 | chownprog=${CHOWNPROG-chown} | ||
4253 | 64 | cmpprog=${CMPPROG-cmp} | ||
4254 | 65 | cpprog=${CPPROG-cp} | ||
4255 | 66 | mkdirprog=${MKDIRPROG-mkdir} | ||
4256 | 67 | mvprog=${MVPROG-mv} | ||
4257 | 68 | rmprog=${RMPROG-rm} | ||
4258 | 69 | stripprog=${STRIPPROG-strip} | ||
4259 | 70 | |||
4260 | 71 | posix_glob='?' | ||
4261 | 72 | initialize_posix_glob=' | ||
4262 | 73 | test "$posix_glob" != "?" || { | ||
4263 | 74 | if (set -f) 2>/dev/null; then | ||
4264 | 75 | posix_glob= | ||
4265 | 76 | else | ||
4266 | 77 | posix_glob=: | ||
4267 | 78 | fi | ||
4268 | 79 | } | ||
4269 | 80 | ' | ||
4270 | 81 | |||
4271 | 82 | posix_mkdir= | ||
4272 | 83 | |||
4273 | 84 | # Desired mode of installed file. | ||
4274 | 85 | mode=0755 | ||
4275 | 86 | |||
4276 | 87 | chgrpcmd= | ||
4277 | 88 | chmodcmd=$chmodprog | ||
4278 | 89 | chowncmd= | ||
4279 | 90 | mvcmd=$mvprog | ||
4280 | 91 | rmcmd="$rmprog -f" | ||
4281 | 92 | stripcmd= | ||
4282 | 93 | |||
4283 | 94 | src= | ||
4284 | 95 | dst= | ||
4285 | 96 | dir_arg= | ||
4286 | 97 | dst_arg= | ||
4287 | 98 | |||
4288 | 99 | copy_on_change=false | ||
4289 | 100 | no_target_directory= | ||
4290 | 101 | |||
4291 | 102 | usage="\ | ||
4292 | 103 | Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE | ||
4293 | 104 | or: $0 [OPTION]... SRCFILES... DIRECTORY | ||
4294 | 105 | or: $0 [OPTION]... -t DIRECTORY SRCFILES... | ||
4295 | 106 | or: $0 [OPTION]... -d DIRECTORIES... | ||
4296 | 107 | |||
4297 | 108 | In the 1st form, copy SRCFILE to DSTFILE. | ||
4298 | 109 | In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. | ||
4299 | 110 | In the 4th, create DIRECTORIES. | ||
4300 | 111 | |||
4301 | 112 | Options: | ||
4302 | 113 | --help display this help and exit. | ||
4303 | 114 | --version display version info and exit. | ||
4304 | 115 | |||
4305 | 116 | -c (ignored) | ||
4306 | 117 | -C install only if different (preserve the last data modification time) | ||
4307 | 118 | -d create directories instead of installing files. | ||
4308 | 119 | -g GROUP $chgrpprog installed files to GROUP. | ||
4309 | 120 | -m MODE $chmodprog installed files to MODE. | ||
4310 | 121 | -o USER $chownprog installed files to USER. | ||
4311 | 122 | -s $stripprog installed files. | ||
4312 | 123 | -t DIRECTORY install into DIRECTORY. | ||
4313 | 124 | -T report an error if DSTFILE is a directory. | ||
4314 | 125 | |||
4315 | 126 | Environment variables override the default commands: | ||
4316 | 127 | CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG | ||
4317 | 128 | RMPROG STRIPPROG | ||
4318 | 129 | " | ||
4319 | 130 | |||
4320 | 131 | while test $# -ne 0; do | ||
4321 | 132 | case $1 in | ||
4322 | 133 | -c) ;; | ||
4323 | 134 | |||
4324 | 135 | -C) copy_on_change=true;; | ||
4325 | 136 | |||
4326 | 137 | -d) dir_arg=true;; | ||
4327 | 138 | |||
4328 | 139 | -g) chgrpcmd="$chgrpprog $2" | ||
4329 | 140 | shift;; | ||
4330 | 141 | |||
4331 | 142 | --help) echo "$usage"; exit $?;; | ||
4332 | 143 | |||
4333 | 144 | -m) mode=$2 | ||
4334 | 145 | case $mode in | ||
4335 | 146 | *' '* | *' '* | *' | ||
4336 | 147 | '* | *'*'* | *'?'* | *'['*) | ||
4337 | 148 | echo "$0: invalid mode: $mode" >&2 | ||
4338 | 149 | exit 1;; | ||
4339 | 150 | esac | ||
4340 | 151 | shift;; | ||
4341 | 152 | |||
4342 | 153 | -o) chowncmd="$chownprog $2" | ||
4343 | 154 | shift;; | ||
4344 | 155 | |||
4345 | 156 | -s) stripcmd=$stripprog;; | ||
4346 | 157 | |||
4347 | 158 | -t) dst_arg=$2 | ||
4348 | 159 | shift;; | ||
4349 | 160 | |||
4350 | 161 | -T) no_target_directory=true;; | ||
4351 | 162 | |||
4352 | 163 | --version) echo "$0 $scriptversion"; exit $?;; | ||
4353 | 164 | |||
4354 | 165 | --) shift | ||
4355 | 166 | break;; | ||
4356 | 167 | |||
4357 | 168 | -*) echo "$0: invalid option: $1" >&2 | ||
4358 | 169 | exit 1;; | ||
4359 | 170 | |||
4360 | 171 | *) break;; | ||
4361 | 172 | esac | ||
4362 | 173 | shift | ||
4363 | 174 | done | ||
4364 | 175 | |||
4365 | 176 | if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then | ||
4366 | 177 | # When -d is used, all remaining arguments are directories to create. | ||
4367 | 178 | # When -t is used, the destination is already specified. | ||
4368 | 179 | # Otherwise, the last argument is the destination. Remove it from $@. | ||
4369 | 180 | for arg | ||
4370 | 181 | do | ||
4371 | 182 | if test -n "$dst_arg"; then | ||
4372 | 183 | # $@ is not empty: it contains at least $arg. | ||
4373 | 184 | set fnord "$@" "$dst_arg" | ||
4374 | 185 | shift # fnord | ||
4375 | 186 | fi | ||
4376 | 187 | shift # arg | ||
4377 | 188 | dst_arg=$arg | ||
4378 | 189 | done | ||
4379 | 190 | fi | ||
4380 | 191 | |||
4381 | 192 | if test $# -eq 0; then | ||
4382 | 193 | if test -z "$dir_arg"; then | ||
4383 | 194 | echo "$0: no input file specified." >&2 | ||
4384 | 195 | exit 1 | ||
4385 | 196 | fi | ||
4386 | 197 | # It's OK to call `install-sh -d' without argument. | ||
4387 | 198 | # This can happen when creating conditional directories. | ||
4388 | 199 | exit 0 | ||
4389 | 200 | fi | ||
4390 | 201 | |||
4391 | 202 | if test -z "$dir_arg"; then | ||
4392 | 203 | trap '(exit $?); exit' 1 2 13 15 | ||
4393 | 204 | |||
4394 | 205 | # Set umask so as not to create temps with too-generous modes. | ||
4395 | 206 | # However, 'strip' requires both read and write access to temps. | ||
4396 | 207 | case $mode in | ||
4397 | 208 | # Optimize common cases. | ||
4398 | 209 | *644) cp_umask=133;; | ||
4399 | 210 | *755) cp_umask=22;; | ||
4400 | 211 | |||
4401 | 212 | *[0-7]) | ||
4402 | 213 | if test -z "$stripcmd"; then | ||
4403 | 214 | u_plus_rw= | ||
4404 | 215 | else | ||
4405 | 216 | u_plus_rw='% 200' | ||
4406 | 217 | fi | ||
4407 | 218 | cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; | ||
4408 | 219 | *) | ||
4409 | 220 | if test -z "$stripcmd"; then | ||
4410 | 221 | u_plus_rw= | ||
4411 | 222 | else | ||
4412 | 223 | u_plus_rw=,u+rw | ||
4413 | 224 | fi | ||
4414 | 225 | cp_umask=$mode$u_plus_rw;; | ||
4415 | 226 | esac | ||
4416 | 227 | fi | ||
4417 | 228 | |||
4418 | 229 | for src | ||
4419 | 230 | do | ||
4420 | 231 | # Protect names starting with `-'. | ||
4421 | 232 | case $src in | ||
4422 | 233 | -*) src=./$src;; | ||
4423 | 234 | esac | ||
4424 | 235 | |||
4425 | 236 | if test -n "$dir_arg"; then | ||
4426 | 237 | dst=$src | ||
4427 | 238 | dstdir=$dst | ||
4428 | 239 | test -d "$dstdir" | ||
4429 | 240 | dstdir_status=$? | ||
4430 | 241 | else | ||
4431 | 242 | |||
4432 | 243 | # Waiting for this to be detected by the "$cpprog $src $dsttmp" command | ||
4433 | 244 | # might cause directories to be created, which would be especially bad | ||
4434 | 245 | # if $src (and thus $dsttmp) contains '*'. | ||
4435 | 246 | if test ! -f "$src" && test ! -d "$src"; then | ||
4436 | 247 | echo "$0: $src does not exist." >&2 | ||
4437 | 248 | exit 1 | ||
4438 | 249 | fi | ||
4439 | 250 | |||
4440 | 251 | if test -z "$dst_arg"; then | ||
4441 | 252 | echo "$0: no destination specified." >&2 | ||
4442 | 253 | exit 1 | ||
4443 | 254 | fi | ||
4444 | 255 | |||
4445 | 256 | dst=$dst_arg | ||
4446 | 257 | # Protect names starting with `-'. | ||
4447 | 258 | case $dst in | ||
4448 | 259 | -*) dst=./$dst;; | ||
4449 | 260 | esac | ||
4450 | 261 | |||
4451 | 262 | # If destination is a directory, append the input filename; won't work | ||
4452 | 263 | # if double slashes aren't ignored. | ||
4453 | 264 | if test -d "$dst"; then | ||
4454 | 265 | if test -n "$no_target_directory"; then | ||
4455 | 266 | echo "$0: $dst_arg: Is a directory" >&2 | ||
4456 | 267 | exit 1 | ||
4457 | 268 | fi | ||
4458 | 269 | dstdir=$dst | ||
4459 | 270 | dst=$dstdir/`basename "$src"` | ||
4460 | 271 | dstdir_status=0 | ||
4461 | 272 | else | ||
4462 | 273 | # Prefer dirname, but fall back on a substitute if dirname fails. | ||
4463 | 274 | dstdir=` | ||
4464 | 275 | (dirname "$dst") 2>/dev/null || | ||
4465 | 276 | expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
4466 | 277 | X"$dst" : 'X\(//\)[^/]' \| \ | ||
4467 | 278 | X"$dst" : 'X\(//\)$' \| \ | ||
4468 | 279 | X"$dst" : 'X\(/\)' \| . 2>/dev/null || | ||
4469 | 280 | echo X"$dst" | | ||
4470 | 281 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
4471 | 282 | s//\1/ | ||
4472 | 283 | q | ||
4473 | 284 | } | ||
4474 | 285 | /^X\(\/\/\)[^/].*/{ | ||
4475 | 286 | s//\1/ | ||
4476 | 287 | q | ||
4477 | 288 | } | ||
4478 | 289 | /^X\(\/\/\)$/{ | ||
4479 | 290 | s//\1/ | ||
4480 | 291 | q | ||
4481 | 292 | } | ||
4482 | 293 | /^X\(\/\).*/{ | ||
4483 | 294 | s//\1/ | ||
4484 | 295 | q | ||
4485 | 296 | } | ||
4486 | 297 | s/.*/./; q' | ||
4487 | 298 | ` | ||
4488 | 299 | |||
4489 | 300 | test -d "$dstdir" | ||
4490 | 301 | dstdir_status=$? | ||
4491 | 302 | fi | ||
4492 | 303 | fi | ||
4493 | 304 | |||
4494 | 305 | obsolete_mkdir_used=false | ||
4495 | 306 | |||
4496 | 307 | if test $dstdir_status != 0; then | ||
4497 | 308 | case $posix_mkdir in | ||
4498 | 309 | '') | ||
4499 | 310 | # Create intermediate dirs using mode 755 as modified by the umask. | ||
4500 | 311 | # This is like FreeBSD 'install' as of 1997-10-28. | ||
4501 | 312 | umask=`umask` | ||
4502 | 313 | case $stripcmd.$umask in | ||
4503 | 314 | # Optimize common cases. | ||
4504 | 315 | *[2367][2367]) mkdir_umask=$umask;; | ||
4505 | 316 | .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; | ||
4506 | 317 | |||
4507 | 318 | *[0-7]) | ||
4508 | 319 | mkdir_umask=`expr $umask + 22 \ | ||
4509 | 320 | - $umask % 100 % 40 + $umask % 20 \ | ||
4510 | 321 | - $umask % 10 % 4 + $umask % 2 | ||
4511 | 322 | `;; | ||
4512 | 323 | *) mkdir_umask=$umask,go-w;; | ||
4513 | 324 | esac | ||
4514 | 325 | |||
4515 | 326 | # With -d, create the new directory with the user-specified mode. | ||
4516 | 327 | # Otherwise, rely on $mkdir_umask. | ||
4517 | 328 | if test -n "$dir_arg"; then | ||
4518 | 329 | mkdir_mode=-m$mode | ||
4519 | 330 | else | ||
4520 | 331 | mkdir_mode= | ||
4521 | 332 | fi | ||
4522 | 333 | |||
4523 | 334 | posix_mkdir=false | ||
4524 | 335 | case $umask in | ||
4525 | 336 | *[123567][0-7][0-7]) | ||
4526 | 337 | # POSIX mkdir -p sets u+wx bits regardless of umask, which | ||
4527 | 338 | # is incompatible with FreeBSD 'install' when (umask & 300) != 0. | ||
4528 | 339 | ;; | ||
4529 | 340 | *) | ||
4530 | 341 | tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ | ||
4531 | 342 | trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 | ||
4532 | 343 | |||
4533 | 344 | if (umask $mkdir_umask && | ||
4534 | 345 | exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 | ||
4535 | 346 | then | ||
4536 | 347 | if test -z "$dir_arg" || { | ||
4537 | 348 | # Check for POSIX incompatibilities with -m. | ||
4538 | 349 | # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or | ||
4539 | 350 | # other-writeable bit of parent directory when it shouldn't. | ||
4540 | 351 | # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. | ||
4541 | 352 | ls_ld_tmpdir=`ls -ld "$tmpdir"` | ||
4542 | 353 | case $ls_ld_tmpdir in | ||
4543 | 354 | d????-?r-*) different_mode=700;; | ||
4544 | 355 | d????-?--*) different_mode=755;; | ||
4545 | 356 | *) false;; | ||
4546 | 357 | esac && | ||
4547 | 358 | $mkdirprog -m$different_mode -p -- "$tmpdir" && { | ||
4548 | 359 | ls_ld_tmpdir_1=`ls -ld "$tmpdir"` | ||
4549 | 360 | test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" | ||
4550 | 361 | } | ||
4551 | 362 | } | ||
4552 | 363 | then posix_mkdir=: | ||
4553 | 364 | fi | ||
4554 | 365 | rmdir "$tmpdir/d" "$tmpdir" | ||
4555 | 366 | else | ||
4556 | 367 | # Remove any dirs left behind by ancient mkdir implementations. | ||
4557 | 368 | rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null | ||
4558 | 369 | fi | ||
4559 | 370 | trap '' 0;; | ||
4560 | 371 | esac;; | ||
4561 | 372 | esac | ||
4562 | 373 | |||
4563 | 374 | if | ||
4564 | 375 | $posix_mkdir && ( | ||
4565 | 376 | umask $mkdir_umask && | ||
4566 | 377 | $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" | ||
4567 | 378 | ) | ||
4568 | 379 | then : | ||
4569 | 380 | else | ||
4570 | 381 | |||
4571 | 382 | # The umask is ridiculous, or mkdir does not conform to POSIX, | ||
4572 | 383 | # or it failed possibly due to a race condition. Create the | ||
4573 | 384 | # directory the slow way, step by step, checking for races as we go. | ||
4574 | 385 | |||
4575 | 386 | case $dstdir in | ||
4576 | 387 | /*) prefix='/';; | ||
4577 | 388 | -*) prefix='./';; | ||
4578 | 389 | *) prefix='';; | ||
4579 | 390 | esac | ||
4580 | 391 | |||
4581 | 392 | eval "$initialize_posix_glob" | ||
4582 | 393 | |||
4583 | 394 | oIFS=$IFS | ||
4584 | 395 | IFS=/ | ||
4585 | 396 | $posix_glob set -f | ||
4586 | 397 | set fnord $dstdir | ||
4587 | 398 | shift | ||
4588 | 399 | $posix_glob set +f | ||
4589 | 400 | IFS=$oIFS | ||
4590 | 401 | |||
4591 | 402 | prefixes= | ||
4592 | 403 | |||
4593 | 404 | for d | ||
4594 | 405 | do | ||
4595 | 406 | test -z "$d" && continue | ||
4596 | 407 | |||
4597 | 408 | prefix=$prefix$d | ||
4598 | 409 | if test -d "$prefix"; then | ||
4599 | 410 | prefixes= | ||
4600 | 411 | else | ||
4601 | 412 | if $posix_mkdir; then | ||
4602 | 413 | (umask=$mkdir_umask && | ||
4603 | 414 | $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break | ||
4604 | 415 | # Don't fail if two instances are running concurrently. | ||
4605 | 416 | test -d "$prefix" || exit 1 | ||
4606 | 417 | else | ||
4607 | 418 | case $prefix in | ||
4608 | 419 | *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; | ||
4609 | 420 | *) qprefix=$prefix;; | ||
4610 | 421 | esac | ||
4611 | 422 | prefixes="$prefixes '$qprefix'" | ||
4612 | 423 | fi | ||
4613 | 424 | fi | ||
4614 | 425 | prefix=$prefix/ | ||
4615 | 426 | done | ||
4616 | 427 | |||
4617 | 428 | if test -n "$prefixes"; then | ||
4618 | 429 | # Don't fail if two instances are running concurrently. | ||
4619 | 430 | (umask $mkdir_umask && | ||
4620 | 431 | eval "\$doit_exec \$mkdirprog $prefixes") || | ||
4621 | 432 | test -d "$dstdir" || exit 1 | ||
4622 | 433 | obsolete_mkdir_used=true | ||
4623 | 434 | fi | ||
4624 | 435 | fi | ||
4625 | 436 | fi | ||
4626 | 437 | |||
4627 | 438 | if test -n "$dir_arg"; then | ||
4628 | 439 | { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && | ||
4629 | 440 | { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && | ||
4630 | 441 | { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || | ||
4631 | 442 | test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 | ||
4632 | 443 | else | ||
4633 | 444 | |||
4634 | 445 | # Make a couple of temp file names in the proper directory. | ||
4635 | 446 | dsttmp=$dstdir/_inst.$$_ | ||
4636 | 447 | rmtmp=$dstdir/_rm.$$_ | ||
4637 | 448 | |||
4638 | 449 | # Trap to clean up those temp files at exit. | ||
4639 | 450 | trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 | ||
4640 | 451 | |||
4641 | 452 | # Copy the file name to the temp name. | ||
4642 | 453 | (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && | ||
4643 | 454 | |||
4644 | 455 | # and set any options; do chmod last to preserve setuid bits. | ||
4645 | 456 | # | ||
4646 | 457 | # If any of these fail, we abort the whole thing. If we want to | ||
4647 | 458 | # ignore errors from any of these, just make sure not to ignore | ||
4648 | 459 | # errors from the above "$doit $cpprog $src $dsttmp" command. | ||
4649 | 460 | # | ||
4650 | 461 | { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && | ||
4651 | 462 | { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && | ||
4652 | 463 | { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && | ||
4653 | 464 | { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && | ||
4654 | 465 | |||
4655 | 466 | # If -C, don't bother to copy if it wouldn't change the file. | ||
4656 | 467 | if $copy_on_change && | ||
4657 | 468 | old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && | ||
4658 | 469 | new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && | ||
4659 | 470 | |||
4660 | 471 | eval "$initialize_posix_glob" && | ||
4661 | 472 | $posix_glob set -f && | ||
4662 | 473 | set X $old && old=:$2:$4:$5:$6 && | ||
4663 | 474 | set X $new && new=:$2:$4:$5:$6 && | ||
4664 | 475 | $posix_glob set +f && | ||
4665 | 476 | |||
4666 | 477 | test "$old" = "$new" && | ||
4667 | 478 | $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 | ||
4668 | 479 | then | ||
4669 | 480 | rm -f "$dsttmp" | ||
4670 | 481 | else | ||
4671 | 482 | # Rename the file to the real destination. | ||
4672 | 483 | $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || | ||
4673 | 484 | |||
4674 | 485 | # The rename failed, perhaps because mv can't rename something else | ||
4675 | 486 | # to itself, or perhaps because mv is so ancient that it does not | ||
4676 | 487 | # support -f. | ||
4677 | 488 | { | ||
4678 | 489 | # Now remove or move aside any old file at destination location. | ||
4679 | 490 | # We try this two ways since rm can't unlink itself on some | ||
4680 | 491 | # systems and the destination file might be busy for other | ||
4681 | 492 | # reasons. In this case, the final cleanup might fail but the new | ||
4682 | 493 | # file should still install successfully. | ||
4683 | 494 | { | ||
4684 | 495 | test ! -f "$dst" || | ||
4685 | 496 | $doit $rmcmd -f "$dst" 2>/dev/null || | ||
4686 | 497 | { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && | ||
4687 | 498 | { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } | ||
4688 | 499 | } || | ||
4689 | 500 | { echo "$0: cannot unlink or rename $dst" >&2 | ||
4690 | 501 | (exit 1); exit 1 | ||
4691 | 502 | } | ||
4692 | 503 | } && | ||
4693 | 504 | |||
4694 | 505 | # Now rename the file to the real destination. | ||
4695 | 506 | $doit $mvcmd "$dsttmp" "$dst" | ||
4696 | 507 | } | ||
4697 | 508 | fi || exit 1 | ||
4698 | 509 | |||
4699 | 510 | trap '' 0 | ||
4700 | 511 | fi | ||
4701 | 512 | done | ||
4702 | 513 | |||
4703 | 514 | # Local variables: | ||
4704 | 515 | # eval: (add-hook 'write-file-hooks 'time-stamp) | ||
4705 | 516 | # time-stamp-start: "scriptversion=" | ||
4706 | 517 | # time-stamp-format: "%:y-%02m-%02d.%02H" | ||
4707 | 518 | # time-stamp-time-zone: "UTC" | ||
4708 | 519 | # time-stamp-end: "; # UTC" | ||
4709 | 520 | # End: | ||
4710 | 521 | 0 | ||
4711 | === modified file 'libindicator/indicator-image-helper.c' | |||
4712 | --- libindicator/indicator-image-helper.c 2012-03-26 16:24:33 +0000 | |||
4713 | +++ libindicator/indicator-image-helper.c 2012-04-11 15:58:20 +0000 | |||
4714 | @@ -143,7 +143,7 @@ | |||
4715 | 143 | { | 143 | { |
4716 | 144 | g_return_if_fail(name != NULL); | 144 | g_return_if_fail(name != NULL); |
4717 | 145 | g_return_if_fail(name[0] != '\0'); | 145 | g_return_if_fail(name[0] != '\0'); |
4719 | 146 | g_return_if_fail(image != NULL); | 146 | g_return_if_fail(GTK_IS_IMAGE(image)); |
4720 | 147 | gboolean seen_previously = FALSE; | 147 | gboolean seen_previously = FALSE; |
4721 | 148 | 148 | ||
4722 | 149 | /* Build us a GIcon */ | 149 | /* Build us a GIcon */ |
4723 | 150 | 150 | ||
4724 | === removed file 'ltmain.sh' | |||
4725 | --- ltmain.sh 2012-04-04 19:34:11 +0000 | |||
4726 | +++ ltmain.sh 1970-01-01 00:00:00 +0000 | |||
4727 | @@ -1,8413 +0,0 @@ | |||
4728 | 1 | # Generated from ltmain.m4sh. | ||
4729 | 2 | |||
4730 | 3 | # ltmain.sh (GNU libtool) 2.2.6b | ||
4731 | 4 | # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | ||
4732 | 5 | |||
4733 | 6 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc. | ||
4734 | 7 | # This is free software; see the source for copying conditions. There is NO | ||
4735 | 8 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
4736 | 9 | |||
4737 | 10 | # GNU Libtool is free software; you can redistribute it and/or modify | ||
4738 | 11 | # it under the terms of the GNU General Public License as published by | ||
4739 | 12 | # the Free Software Foundation; either version 2 of the License, or | ||
4740 | 13 | # (at your option) any later version. | ||
4741 | 14 | # | ||
4742 | 15 | # As a special exception to the GNU General Public License, | ||
4743 | 16 | # if you distribute this file as part of a program or library that | ||
4744 | 17 | # is built using GNU Libtool, you may include this file under the | ||
4745 | 18 | # same distribution terms that you use for the rest of that program. | ||
4746 | 19 | # | ||
4747 | 20 | # GNU Libtool is distributed in the hope that it will be useful, but | ||
4748 | 21 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
4749 | 22 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
4750 | 23 | # General Public License for more details. | ||
4751 | 24 | # | ||
4752 | 25 | # You should have received a copy of the GNU General Public License | ||
4753 | 26 | # along with GNU Libtool; see the file COPYING. If not, a copy | ||
4754 | 27 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, | ||
4755 | 28 | # or obtained by writing to the Free Software Foundation, Inc., | ||
4756 | 29 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
4757 | 30 | |||
4758 | 31 | # Usage: $progname [OPTION]... [MODE-ARG]... | ||
4759 | 32 | # | ||
4760 | 33 | # Provide generalized library-building support services. | ||
4761 | 34 | # | ||
4762 | 35 | # --config show all configuration variables | ||
4763 | 36 | # --debug enable verbose shell tracing | ||
4764 | 37 | # -n, --dry-run display commands without modifying any files | ||
4765 | 38 | # --features display basic configuration information and exit | ||
4766 | 39 | # --mode=MODE use operation mode MODE | ||
4767 | 40 | # --preserve-dup-deps don't remove duplicate dependency libraries | ||
4768 | 41 | # --quiet, --silent don't print informational messages | ||
4769 | 42 | # --tag=TAG use configuration variables from tag TAG | ||
4770 | 43 | # -v, --verbose print informational messages (default) | ||
4771 | 44 | # --version print version information | ||
4772 | 45 | # -h, --help print short or long help message | ||
4773 | 46 | # | ||
4774 | 47 | # MODE must be one of the following: | ||
4775 | 48 | # | ||
4776 | 49 | # clean remove files from the build directory | ||
4777 | 50 | # compile compile a source file into a libtool object | ||
4778 | 51 | # execute automatically set library path, then run a program | ||
4779 | 52 | # finish complete the installation of libtool libraries | ||
4780 | 53 | # install install libraries or executables | ||
4781 | 54 | # link create a library or an executable | ||
4782 | 55 | # uninstall remove libraries from an installed directory | ||
4783 | 56 | # | ||
4784 | 57 | # MODE-ARGS vary depending on the MODE. | ||
4785 | 58 | # Try `$progname --help --mode=MODE' for a more detailed description of MODE. | ||
4786 | 59 | # | ||
4787 | 60 | # When reporting a bug, please describe a test case to reproduce it and | ||
4788 | 61 | # include the following information: | ||
4789 | 62 | # | ||
4790 | 63 | # host-triplet: $host | ||
4791 | 64 | # shell: $SHELL | ||
4792 | 65 | # compiler: $LTCC | ||
4793 | 66 | # compiler flags: $LTCFLAGS | ||
4794 | 67 | # linker: $LD (gnu? $with_gnu_ld) | ||
4795 | 68 | # $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1 | ||
4796 | 69 | # automake: $automake_version | ||
4797 | 70 | # autoconf: $autoconf_version | ||
4798 | 71 | # | ||
4799 | 72 | # Report bugs to <bug-libtool@gnu.org>. | ||
4800 | 73 | |||
4801 | 74 | PROGRAM=ltmain.sh | ||
4802 | 75 | PACKAGE=libtool | ||
4803 | 76 | VERSION="2.2.6b Debian-2.2.6b-2ubuntu1" | ||
4804 | 77 | TIMESTAMP="" | ||
4805 | 78 | package_revision=1.3017 | ||
4806 | 79 | |||
4807 | 80 | # Be Bourne compatible | ||
4808 | 81 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
4809 | 82 | emulate sh | ||
4810 | 83 | NULLCMD=: | ||
4811 | 84 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
4812 | 85 | # is contrary to our usage. Disable this feature. | ||
4813 | 86 | alias -g '${1+"$@"}'='"$@"' | ||
4814 | 87 | setopt NO_GLOB_SUBST | ||
4815 | 88 | else | ||
4816 | 89 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | ||
4817 | 90 | fi | ||
4818 | 91 | BIN_SH=xpg4; export BIN_SH # for Tru64 | ||
4819 | 92 | DUALCASE=1; export DUALCASE # for MKS sh | ||
4820 | 93 | |||
4821 | 94 | # NLS nuisances: We save the old values to restore during execute mode. | ||
4822 | 95 | # Only set LANG and LC_ALL to C if already set. | ||
4823 | 96 | # These must not be set unconditionally because not all systems understand | ||
4824 | 97 | # e.g. LANG=C (notably SCO). | ||
4825 | 98 | lt_user_locale= | ||
4826 | 99 | lt_safe_locale= | ||
4827 | 100 | for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES | ||
4828 | 101 | do | ||
4829 | 102 | eval "if test \"\${$lt_var+set}\" = set; then | ||
4830 | 103 | save_$lt_var=\$$lt_var | ||
4831 | 104 | $lt_var=C | ||
4832 | 105 | export $lt_var | ||
4833 | 106 | lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" | ||
4834 | 107 | lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" | ||
4835 | 108 | fi" | ||
4836 | 109 | done | ||
4837 | 110 | |||
4838 | 111 | $lt_unset CDPATH | ||
4839 | 112 | |||
4840 | 113 | |||
4841 | 114 | |||
4842 | 115 | |||
4843 | 116 | |||
4844 | 117 | : ${CP="cp -f"} | ||
4845 | 118 | : ${ECHO="echo"} | ||
4846 | 119 | : ${EGREP="/bin/grep -E"} | ||
4847 | 120 | : ${FGREP="/bin/grep -F"} | ||
4848 | 121 | : ${GREP="/bin/grep"} | ||
4849 | 122 | : ${LN_S="ln -s"} | ||
4850 | 123 | : ${MAKE="make"} | ||
4851 | 124 | : ${MKDIR="mkdir"} | ||
4852 | 125 | : ${MV="mv -f"} | ||
4853 | 126 | : ${RM="rm -f"} | ||
4854 | 127 | : ${SED="/bin/sed"} | ||
4855 | 128 | : ${SHELL="${CONFIG_SHELL-/bin/sh}"} | ||
4856 | 129 | : ${Xsed="$SED -e 1s/^X//"} | ||
4857 | 130 | |||
4858 | 131 | # Global variables: | ||
4859 | 132 | EXIT_SUCCESS=0 | ||
4860 | 133 | EXIT_FAILURE=1 | ||
4861 | 134 | EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. | ||
4862 | 135 | EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. | ||
4863 | 136 | |||
4864 | 137 | exit_status=$EXIT_SUCCESS | ||
4865 | 138 | |||
4866 | 139 | # Make sure IFS has a sensible default | ||
4867 | 140 | lt_nl=' | ||
4868 | 141 | ' | ||
4869 | 142 | IFS=" $lt_nl" | ||
4870 | 143 | |||
4871 | 144 | dirname="s,/[^/]*$,," | ||
4872 | 145 | basename="s,^.*/,," | ||
4873 | 146 | |||
4874 | 147 | # func_dirname_and_basename file append nondir_replacement | ||
4875 | 148 | # perform func_basename and func_dirname in a single function | ||
4876 | 149 | # call: | ||
4877 | 150 | # dirname: Compute the dirname of FILE. If nonempty, | ||
4878 | 151 | # add APPEND to the result, otherwise set result | ||
4879 | 152 | # to NONDIR_REPLACEMENT. | ||
4880 | 153 | # value returned in "$func_dirname_result" | ||
4881 | 154 | # basename: Compute filename of FILE. | ||
4882 | 155 | # value retuned in "$func_basename_result" | ||
4883 | 156 | # Implementation must be kept synchronized with func_dirname | ||
4884 | 157 | # and func_basename. For efficiency, we do not delegate to | ||
4885 | 158 | # those functions but instead duplicate the functionality here. | ||
4886 | 159 | func_dirname_and_basename () | ||
4887 | 160 | { | ||
4888 | 161 | # Extract subdirectory from the argument. | ||
4889 | 162 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | ||
4890 | 163 | if test "X$func_dirname_result" = "X${1}"; then | ||
4891 | 164 | func_dirname_result="${3}" | ||
4892 | 165 | else | ||
4893 | 166 | func_dirname_result="$func_dirname_result${2}" | ||
4894 | 167 | fi | ||
4895 | 168 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | ||
4896 | 169 | } | ||
4897 | 170 | |||
4898 | 171 | # Generated shell functions inserted here. | ||
4899 | 172 | |||
4900 | 173 | # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh | ||
4901 | 174 | # is ksh but when the shell is invoked as "sh" and the current value of | ||
4902 | 175 | # the _XPG environment variable is not equal to 1 (one), the special | ||
4903 | 176 | # positional parameter $0, within a function call, is the name of the | ||
4904 | 177 | # function. | ||
4905 | 178 | progpath="$0" | ||
4906 | 179 | |||
4907 | 180 | # The name of this program: | ||
4908 | 181 | # In the unlikely event $progname began with a '-', it would play havoc with | ||
4909 | 182 | # func_echo (imagine progname=-n), so we prepend ./ in that case: | ||
4910 | 183 | func_dirname_and_basename "$progpath" | ||
4911 | 184 | progname=$func_basename_result | ||
4912 | 185 | case $progname in | ||
4913 | 186 | -*) progname=./$progname ;; | ||
4914 | 187 | esac | ||
4915 | 188 | |||
4916 | 189 | # Make sure we have an absolute path for reexecution: | ||
4917 | 190 | case $progpath in | ||
4918 | 191 | [\\/]*|[A-Za-z]:\\*) ;; | ||
4919 | 192 | *[\\/]*) | ||
4920 | 193 | progdir=$func_dirname_result | ||
4921 | 194 | progdir=`cd "$progdir" && pwd` | ||
4922 | 195 | progpath="$progdir/$progname" | ||
4923 | 196 | ;; | ||
4924 | 197 | *) | ||
4925 | 198 | save_IFS="$IFS" | ||
4926 | 199 | IFS=: | ||
4927 | 200 | for progdir in $PATH; do | ||
4928 | 201 | IFS="$save_IFS" | ||
4929 | 202 | test -x "$progdir/$progname" && break | ||
4930 | 203 | done | ||
4931 | 204 | IFS="$save_IFS" | ||
4932 | 205 | test -n "$progdir" || progdir=`pwd` | ||
4933 | 206 | progpath="$progdir/$progname" | ||
4934 | 207 | ;; | ||
4935 | 208 | esac | ||
4936 | 209 | |||
4937 | 210 | # Sed substitution that helps us do robust quoting. It backslashifies | ||
4938 | 211 | # metacharacters that are still active within double-quoted strings. | ||
4939 | 212 | Xsed="${SED}"' -e 1s/^X//' | ||
4940 | 213 | sed_quote_subst='s/\([`"$\\]\)/\\\1/g' | ||
4941 | 214 | |||
4942 | 215 | # Same as above, but do not quote variable references. | ||
4943 | 216 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | ||
4944 | 217 | |||
4945 | 218 | # Re-`\' parameter expansions in output of double_quote_subst that were | ||
4946 | 219 | # `\'-ed in input to the same. If an odd number of `\' preceded a '$' | ||
4947 | 220 | # in input to double_quote_subst, that '$' was protected from expansion. | ||
4948 | 221 | # Since each input `\' is now two `\'s, look for any number of runs of | ||
4949 | 222 | # four `\'s followed by two `\'s and then a '$'. `\' that '$'. | ||
4950 | 223 | bs='\\' | ||
4951 | 224 | bs2='\\\\' | ||
4952 | 225 | bs4='\\\\\\\\' | ||
4953 | 226 | dollar='\$' | ||
4954 | 227 | sed_double_backslash="\ | ||
4955 | 228 | s/$bs4/&\\ | ||
4956 | 229 | /g | ||
4957 | 230 | s/^$bs2$dollar/$bs&/ | ||
4958 | 231 | s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g | ||
4959 | 232 | s/\n//g" | ||
4960 | 233 | |||
4961 | 234 | # Standard options: | ||
4962 | 235 | opt_dry_run=false | ||
4963 | 236 | opt_help=false | ||
4964 | 237 | opt_quiet=false | ||
4965 | 238 | opt_verbose=false | ||
4966 | 239 | opt_warning=: | ||
4967 | 240 | |||
4968 | 241 | # func_echo arg... | ||
4969 | 242 | # Echo program name prefixed message, along with the current mode | ||
4970 | 243 | # name if it has been set yet. | ||
4971 | 244 | func_echo () | ||
4972 | 245 | { | ||
4973 | 246 | $ECHO "$progname${mode+: }$mode: $*" | ||
4974 | 247 | } | ||
4975 | 248 | |||
4976 | 249 | # func_verbose arg... | ||
4977 | 250 | # Echo program name prefixed message in verbose mode only. | ||
4978 | 251 | func_verbose () | ||
4979 | 252 | { | ||
4980 | 253 | $opt_verbose && func_echo ${1+"$@"} | ||
4981 | 254 | |||
4982 | 255 | # A bug in bash halts the script if the last line of a function | ||
4983 | 256 | # fails when set -e is in force, so we need another command to | ||
4984 | 257 | # work around that: | ||
4985 | 258 | : | ||
4986 | 259 | } | ||
4987 | 260 | |||
4988 | 261 | # func_error arg... | ||
4989 | 262 | # Echo program name prefixed message to standard error. | ||
4990 | 263 | func_error () | ||
4991 | 264 | { | ||
4992 | 265 | $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2 | ||
4993 | 266 | } | ||
4994 | 267 | |||
4995 | 268 | # func_warning arg... | ||
4996 | 269 | # Echo program name prefixed warning message to standard error. | ||
4997 | 270 | func_warning () | ||
4998 | 271 | { | ||
4999 | 272 | $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2 | ||
5000 | 273 |
The diff has been truncated for viewing.