Mercurial > hg > xemacs-beta
comparison config.guess @ 149:538048ae2ab8 r20-3b1
Import from CVS: tag r20-3b1
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:36:16 +0200 |
parents | 376386a54a3c |
children | c6de09ad3017 |
comparison
equal
deleted
inserted
replaced
148:f659db2a1f73 | 149:538048ae2ab8 |
---|---|
18 # | 18 # |
19 # As a special exception to the GNU General Public License, if you | 19 # As a special exception to the GNU General Public License, if you |
20 # distribute this file as part of a program that contains a | 20 # distribute this file as part of a program that contains a |
21 # configuration script generated by Autoconf, you may include it under | 21 # configuration script generated by Autoconf, you may include it under |
22 # the same distribution terms that you use for the rest of that program. | 22 # the same distribution terms that you use for the rest of that program. |
23 | |
24 # Synched up with: FSF 19.31. | |
25 | 23 |
26 # Written by Per Bothner <bothner@cygnus.com>. | 24 # Written by Per Bothner <bothner@cygnus.com>. |
27 # The master version of this file is at the FSF in /home/gd/gnu/lib. | 25 # The master version of this file is at the FSF in /home/gd/gnu/lib. |
28 # | 26 # |
29 # This script attempts to guess a canonical system name similar to | 27 # This script attempts to guess a canonical system name similar to |
51 trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15 | 49 trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15 |
52 | 50 |
53 # Note: order is significant - the case branches are not exclusive. | 51 # Note: order is significant - the case branches are not exclusive. |
54 | 52 |
55 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | 53 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
56 alpha:OSF1:V*.*) | |
57 # After 1.2, OSF1 uses "V1.3" for uname -r. | |
58 echo alpha-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^V//'` | |
59 exit 0 ;; | |
60 alpha:OSF1:*:*) | 54 alpha:OSF1:*:*) |
55 # A Vn.n version is a released version. | |
56 # A Tn.n version is a released field test version. | |
57 # A Xn.n version is an unreleased experimental baselevel. | |
61 # 1.2 uses "1.2" for uname -r. | 58 # 1.2 uses "1.2" for uname -r. |
62 echo alpha-dec-osf${UNAME_RELEASE} | 59 echo alpha-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//'` |
63 exit 0 ;; | 60 exit 0 ;; |
64 21064:Windows_NT:50:3) | 61 21064:Windows_NT:50:3) |
65 echo alpha-dec-winnt3.5 | 62 echo alpha-dec-winnt3.5 |
66 exit 0 ;; | 63 exit 0 ;; |
67 Amiga*:UNIX_System_V:4.0:*) | 64 Amiga*:UNIX_System_V:4.0:*) |
68 echo m68k-cbm-sysv4 | 65 echo m68k-cbm-sysv4 |
69 exit 0;; | 66 exit 0;; |
70 amiga:NetBSD:*:*) | 67 amiga:NetBSD:*:*) |
71 echo m68k-cbm-netbsd${UNAME_RELEASE} | 68 echo m68k-cbm-netbsd${UNAME_RELEASE} |
72 exit 0 ;; | 69 exit 0 ;; |
70 amiga:OpenBSD:*:*) | |
71 echo m68k-cbm-openbsd${UNAME_RELEASE} | |
72 exit 0 ;; | |
73 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) | 73 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
74 echo arm-acorn-riscix${UNAME_RELEASE} | 74 echo arm-acorn-riscix${UNAME_RELEASE} |
75 exit 0;; | 75 exit 0;; |
76 Pyramid*:OSx*:*:*) | 76 Pyramid*:OSx*:*:*|MIS*:OSx*:*:*) |
77 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. | |
77 if test "`(/bin/universe) 2>/dev/null`" = att ; then | 78 if test "`(/bin/universe) 2>/dev/null`" = att ; then |
78 echo pyramid-pyramid-sysv3 | 79 echo pyramid-pyramid-sysv3 |
79 else | 80 else |
80 echo pyramid-pyramid-bsd | 81 echo pyramid-pyramid-bsd |
81 fi | 82 fi |
82 exit 0 ;; | 83 exit 0 ;; |
83 sun4*:SunOS:5.*:*) | 84 NILE:*:*:dcosx) |
85 echo pyramid-pyramid-svr4 | |
86 exit 0 ;; | |
87 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) | |
84 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | 88 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
85 exit 0 ;; | 89 exit 0 ;; |
86 i86pc:SunOS:5.*:*) | 90 i86pc:SunOS:5.*:*) |
87 echo i386-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | 91 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
88 exit 0 ;; | 92 exit 0 ;; |
89 sun4*:SunOS:6*:*) | 93 sun4*:SunOS:6*:*) |
90 # According to config.sub, this is the proper way to canonicalize | 94 # According to config.sub, this is the proper way to canonicalize |
91 # SunOS6. Hard to guess exactly what SunOS6 will be like, but | 95 # SunOS6. Hard to guess exactly what SunOS6 will be like, but |
92 # it's likely to be more like Solaris than SunOS4. | 96 # it's likely to be more like Solaris than SunOS4. |
102 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` | 106 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` |
103 exit 0 ;; | 107 exit 0 ;; |
104 sun3*:SunOS:*:*) | 108 sun3*:SunOS:*:*) |
105 echo m68k-sun-sunos${UNAME_RELEASE} | 109 echo m68k-sun-sunos${UNAME_RELEASE} |
106 exit 0 ;; | 110 exit 0 ;; |
111 aushp:SunOS:*:*) | |
112 echo sparc-auspex-sunos${UNAME_RELEASE} | |
113 exit 0 ;; | |
107 atari*:NetBSD:*:*) | 114 atari*:NetBSD:*:*) |
108 echo m68k-atari-netbsd${UNAME_RELEASE} | 115 echo m68k-atari-netbsd${UNAME_RELEASE} |
109 exit 0 ;; | 116 exit 0 ;; |
117 atari*:OpenBSD:*:*) | |
118 echo m68k-atari-openbsd${UNAME_RELEASE} | |
119 exit 0 ;; | |
110 sun3*:NetBSD:*:*) | 120 sun3*:NetBSD:*:*) |
111 echo m68k-sun-netbsd${UNAME_RELEASE} | 121 echo m68k-sun-netbsd${UNAME_RELEASE} |
112 exit 0 ;; | 122 exit 0 ;; |
123 sun3*:OpenBSD:*:*) | |
124 echo m68k-sun-openbsd${UNAME_RELEASE} | |
125 exit 0 ;; | |
113 mac68k:NetBSD:*:*) | 126 mac68k:NetBSD:*:*) |
114 echo m68k-apple-netbsd${UNAME_RELEASE} | 127 echo m68k-apple-netbsd${UNAME_RELEASE} |
115 exit 0 ;; | 128 exit 0 ;; |
129 mac68k:OpenBSD:*:*) | |
130 echo m68k-apple-openbsd${UNAME_RELEASE} | |
131 exit 0 ;; | |
132 powerpc:machten:*:*) | |
133 echo powerpc-apple-machten${UNAME_RELEASE} | |
134 exit 0 ;; | |
135 RISC*:Mach:*:*) | |
136 echo mips-dec-mach_bsd4.3 | |
137 exit 0 ;; | |
116 RISC*:ULTRIX:*:*) | 138 RISC*:ULTRIX:*:*) |
117 echo mips-dec-ultrix${UNAME_RELEASE} | 139 echo mips-dec-ultrix${UNAME_RELEASE} |
118 exit 0 ;; | 140 exit 0 ;; |
119 VAX*:ULTRIX*:*:*) | 141 VAX*:ULTRIX*:*:*) |
120 echo vax-dec-ultrix${UNAME_RELEASE} | 142 echo vax-dec-ultrix${UNAME_RELEASE} |
121 exit 0 ;; | 143 exit 0 ;; |
122 mips:*:4*:UMIPS) | 144 mips:*:*:UMIPS | mips:*:*:RISCos) |
123 echo mips-mips-riscos4sysv | 145 sed 's/^ //' << EOF >dummy.c |
124 exit 0 ;; | 146 int main (argc, argv) int argc; char **argv; { |
125 mips:*:5*:RISCos) | 147 #if defined (host_mips) && defined (MIPSEB) |
148 #if defined (SYSTYPE_SYSV) | |
149 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); | |
150 #endif | |
151 #if defined (SYSTYPE_SVR4) | |
152 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); | |
153 #endif | |
154 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) | |
155 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); | |
156 #endif | |
157 #endif | |
158 exit (-1); | |
159 } | |
160 EOF | |
161 ${CC-cc} dummy.c -o dummy \ | |
162 && ./dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ | |
163 && rm dummy.c dummy && exit 0 | |
164 rm -f dummy.c dummy | |
126 echo mips-mips-riscos${UNAME_RELEASE} | 165 echo mips-mips-riscos${UNAME_RELEASE} |
127 exit 0 ;; | 166 exit 0 ;; |
128 Night_Hawk:Power_UNIX:*:*) | 167 Night_Hawk:Power_UNIX:*:*) |
129 echo powerpc-harris-powerunix | 168 echo powerpc-harris-powerunix |
130 exit 0 ;; | 169 exit 0 ;; |
138 echo m88k-motorola-sysv3 | 177 echo m88k-motorola-sysv3 |
139 exit 0 ;; | 178 exit 0 ;; |
140 AViiON:dgux:*:*) | 179 AViiON:dgux:*:*) |
141 # DG/UX returns AViiON for all architectures | 180 # DG/UX returns AViiON for all architectures |
142 UNAME_PROCESSOR=`/usr/bin/uname -p` | 181 UNAME_PROCESSOR=`/usr/bin/uname -p` |
143 if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88100 ] ; then | 182 if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then |
144 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \ | 183 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \ |
145 -o ${TARGET_BINARY_INTERFACE}x = x ] ; then | 184 -o ${TARGET_BINARY_INTERFACE}x = x ] ; then |
146 echo m88k-dg-dgux${UNAME_RELEASE} | 185 echo m88k-dg-dgux${UNAME_RELEASE} |
147 else | 186 else |
148 echo m88k-dg-dguxbcs${UNAME_RELEASE} | 187 echo m88k-dg-dguxbcs${UNAME_RELEASE} |
164 echo m68k-tektronix-bsd | 203 echo m68k-tektronix-bsd |
165 exit 0 ;; | 204 exit 0 ;; |
166 *:IRIX*:*:*) | 205 *:IRIX*:*:*) |
167 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` | 206 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` |
168 exit 0 ;; | 207 exit 0 ;; |
169 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. | 208 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. |
170 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id | 209 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id |
171 exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' | 210 exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' |
172 i[3-9]86:AIX:*:*) | 211 i?86:AIX:*:*) |
173 echo i386-ibm-aix | 212 echo i386-ibm-aix |
174 exit 0 ;; | 213 exit 0 ;; |
175 *:AIX:2:3) | 214 *:AIX:2:3) |
176 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then | 215 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then |
177 sed 's/^ //' << EOF >dummy.c | 216 sed 's/^ //' << EOF >dummy.c |
212 exit 0 ;; | 251 exit 0 ;; |
213 ibmrt:4.4BSD:*|romp-ibm:BSD:*) | 252 ibmrt:4.4BSD:*|romp-ibm:BSD:*) |
214 echo romp-ibm-bsd4.4 | 253 echo romp-ibm-bsd4.4 |
215 exit 0 ;; | 254 exit 0 ;; |
216 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and | 255 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and |
217 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to | 256 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to |
218 exit 0 ;; # report: romp-ibm BSD 4.3 | 257 exit 0 ;; # report: romp-ibm BSD 4.3 |
219 *:BOSX:*:*) | 258 *:BOSX:*:*) |
220 echo rs6000-bull-bosx | 259 echo rs6000-bull-bosx |
221 exit 0 ;; | 260 exit 0 ;; |
222 DPX/2?00:B.O.S.:*:*) | 261 DPX/2?00:B.O.S.:*:*) |
230 exit 0 ;; | 269 exit 0 ;; |
231 9000/[3478]??:HP-UX:*:*) | 270 9000/[3478]??:HP-UX:*:*) |
232 case "${UNAME_MACHINE}" in | 271 case "${UNAME_MACHINE}" in |
233 9000/31? ) HP_ARCH=m68000 ;; | 272 9000/31? ) HP_ARCH=m68000 ;; |
234 9000/[34]?? ) HP_ARCH=m68k ;; | 273 9000/[34]?? ) HP_ARCH=m68k ;; |
235 9000/7?? | 9000/8?[679] ) HP_ARCH=hppa1.1 ;; | 274 9000/7?? | 9000/8?[1679] ) HP_ARCH=hppa1.1 ;; |
236 9000/8?? ) HP_ARCH=hppa1.0 ;; | 275 9000/8?? ) HP_ARCH=hppa1.0 ;; |
237 esac | 276 esac |
238 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | 277 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` |
239 echo ${HP_ARCH}-hp-hpux${HPUX_REV} | 278 echo ${HP_ARCH}-hp-hpux${HPUX_REV} |
240 exit 0 ;; | 279 exit 0 ;; |
278 echo hppa1.1-hp-osf | 317 echo hppa1.1-hp-osf |
279 exit 0 ;; | 318 exit 0 ;; |
280 hp8??:OSF1:*:*) | 319 hp8??:OSF1:*:*) |
281 echo hppa1.0-hp-osf | 320 echo hppa1.0-hp-osf |
282 exit 0 ;; | 321 exit 0 ;; |
322 i?86:OSF1:*:*) | |
323 if [ -x /usr/sbin/sysversion ] ; then | |
324 echo ${UNAME_MACHINE}-unknown-osf1mk | |
325 else | |
326 echo ${UNAME_MACHINE}-unknown-osf1 | |
327 fi | |
328 exit 0 ;; | |
283 parisc*:Lites*:*:*) | 329 parisc*:Lites*:*:*) |
284 echo hppa1.1-hp-lites | 330 echo hppa1.1-hp-lites |
285 exit 0 ;; | 331 exit 0 ;; |
286 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) | 332 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
287 echo c1-convex-bsd | 333 echo c1-convex-bsd |
305 echo xmp-cray-unicos | 351 echo xmp-cray-unicos |
306 exit 0 ;; | 352 exit 0 ;; |
307 CRAY*Y-MP:*:*:*) | 353 CRAY*Y-MP:*:*:*) |
308 echo ymp-cray-unicos${UNAME_RELEASE} | 354 echo ymp-cray-unicos${UNAME_RELEASE} |
309 exit 0 ;; | 355 exit 0 ;; |
310 CRAY*C90:*:*:*) | 356 CRAY*[A-Z]90:*:*:*) |
311 echo c90-cray-unicos${UNAME_RELEASE} | 357 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ |
358 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ | |
359 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ | |
360 exit 0 ;; | |
361 CRAY*TS:*:*:*) | |
362 echo t90-cray-unicos${UNAME_RELEASE} | |
312 exit 0 ;; | 363 exit 0 ;; |
313 CRAY-2:*:*:*) | 364 CRAY-2:*:*:*) |
314 echo cray2-cray-unicos | 365 echo cray2-cray-unicos |
315 exit 0 ;; | 366 exit 0 ;; |
367 F300:UNIX_System_V:*:*) | |
368 FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'` | |
369 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` | |
370 echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | |
371 exit 0 ;; | |
372 F301:UNIX_System_V:*:*) | |
373 echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'` | |
374 exit 0 ;; | |
316 hp3[0-9][05]:NetBSD:*:*) | 375 hp3[0-9][05]:NetBSD:*:*) |
317 echo m68k-hp-netbsd${UNAME_RELEASE} | 376 echo m68k-hp-netbsd${UNAME_RELEASE} |
318 exit 0 ;; | 377 exit 0 ;; |
319 i[3-9]86:BSD/386:*:* | *:BSD/OS:*:*) | 378 hp3[0-9][05]:OpenBSD:*:*) |
320 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} | 379 echo m68k-hp-openbsd${UNAME_RELEASE} |
380 exit 0 ;; | |
381 i?86:BSD/386:*:* | *:BSD/OS:*:*) | |
382 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} | |
321 exit 0 ;; | 383 exit 0 ;; |
322 *:FreeBSD:*:*) | 384 *:FreeBSD:*:*) |
323 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` | 385 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
324 exit 0 ;; | 386 exit 0 ;; |
325 *:NetBSD:*:*) | 387 *:NetBSD:*:*) |
326 echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | 388 echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` |
327 exit 0 ;; | 389 exit 0 ;; |
390 *:OpenBSD:*:*) | |
391 echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | |
392 exit 0 ;; | |
328 i*:CYGWIN*:*) | 393 i*:CYGWIN*:*) |
329 echo i386-unknown-cygwin32 | 394 echo i386-pc-cygwin32 |
330 exit 0 ;; | 395 exit 0 ;; |
331 p*:CYGWIN*:*) | 396 p*:CYGWIN*:*) |
332 echo powerpcle-unknown-cygwin32 | 397 echo powerpcle-unknown-cygwin32 |
333 exit 0 ;; | 398 exit 0 ;; |
334 prep*:SunOS:5.*:*) | 399 prep*:SunOS:5.*:*) |
336 exit 0 ;; | 401 exit 0 ;; |
337 *:GNU:*:*) | 402 *:GNU:*:*) |
338 echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | 403 echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` |
339 exit 0 ;; | 404 exit 0 ;; |
340 *:Linux:*:*) | 405 *:Linux:*:*) |
341 # XEmacs changes in this section: add the version number of Linux | |
342 # (1.1.56 and above has working SIGIO) | |
343 # The BFD linker knows what the default object file format is, so | 406 # The BFD linker knows what the default object file format is, so |
344 # first see if it will tell us. | 407 # first see if it will tell us. |
345 ld_help_string=`ld --help 2>&1` | 408 ld_help_string=`ld --help 2>&1` |
346 if echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf_i[3-9]86"; then | 409 if echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf_i.86"; then |
347 echo "${UNAME_MACHINE}-unknown-linux${UNAME_RELEASE}" ; exit 0 | 410 echo "${UNAME_MACHINE}-pc-linux-gnu" ; exit 0 |
348 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i[3-9]86linux"; then | 411 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i.86linux"; then |
349 echo "${UNAME_MACHINE}-unknown-linuxaout${UNAME_RELEASE}" ; exit 0 | 412 echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 |
350 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i[3-9]86coff"; then | 413 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i.86coff"; then |
351 echo "${UNAME_MACHINE}-unknown-linuxcoff${UNAME_RELEASE}" ; exit 0 | 414 echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 |
352 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68kelf"; then | 415 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68kelf"; then |
353 echo "${UNAME_MACHINE}-unknown-linux${UNAME_RELEASE}" ; exit 0 | 416 echo "${UNAME_MACHINE}-unknown-linux-gnu" ; exit 0 |
354 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68klinux"; then | 417 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68klinux"; then |
355 echo "${UNAME_MACHINE}-unknown-linuxaout${UNAME_RELEASE}" ; exit 0 | 418 echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 |
419 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf32ppc"; then | |
420 echo "powerpc-unknown-linux-gnu" ; exit 0 | |
356 elif test "${UNAME_MACHINE}" = "alpha" ; then | 421 elif test "${UNAME_MACHINE}" = "alpha" ; then |
357 echo "alpha-unknown-linux${UNAME_RELEASE}" ; exit 0 | 422 echo alpha-unknown-linux-gnu ; exit 0 |
358 else | 423 elif test "${UNAME_MACHINE}" = "sparc" ; then |
359 # Either a pre-BFD a.out linker (linuxoldld) or one that does not give us | 424 echo sparc-unknown-linux-gnu ; exit 0 |
360 # useful --help. Gcc wants to distinguish between linuxoldld and linuxaout. | 425 else |
426 # Either a pre-BFD a.out linker (linux-gnuoldld) or one that does not give us | |
427 # useful --help. Gcc wants to distinguish between linux-gnuoldld and linux-gnuaout. | |
361 test ! -d /usr/lib/ldscripts/. \ | 428 test ! -d /usr/lib/ldscripts/. \ |
362 && echo "${UNAME_MACHINE}-unknown-linuxoldld${UNAME_RELEASE}" && exit 0 | 429 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0 |
363 # Determine whether the default compiler is a.out or elf | 430 # Determine whether the default compiler is a.out or elf |
364 cat >dummy.c <<EOF | 431 cat >dummy.c <<EOF |
365 main(argc, argv) | 432 main(argc, argv) |
366 int argc; | 433 int argc; |
367 char *argv[]; | 434 char *argv[]; |
368 { | 435 { |
369 #ifdef __ELF__ | 436 #ifdef __ELF__ |
370 printf ("%s-unknown-linux%s\n", argv[1], argv[2]); | 437 printf ("%s-pc-linux-gnu\n", argv[1]); |
371 #else | 438 #else |
372 printf ("%s-unknown-linuxaout%s\n", argv[1], argv[2]); | 439 printf ("%s-pc-linux-gnuaout\n", argv[1]); |
373 #endif | 440 #endif |
374 return 0; | 441 return 0; |
375 } | 442 } |
376 EOF | 443 EOF |
377 ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" "${UNAME_RELEASE}" && rm dummy.c dummy && exit 0 | 444 ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0 |
378 rm -f dummy.c dummy | 445 rm -f dummy.c dummy |
379 fi ;; | 446 fi ;; |
380 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions | 447 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions |
381 # are messed up and put the nodename in both sysname and nodename. | 448 # are messed up and put the nodename in both sysname and nodename. |
382 i[3-9]86:DYNIX/ptx:4*:*) | 449 i?86:DYNIX/ptx:4*:*) |
383 echo i386-sequent-sysv4 | 450 echo i386-sequent-sysv4 |
384 exit 0 ;; | 451 exit 0 ;; |
385 i[3-9]86:*:4.*:* | i[3-9]86:SYSTEM_V:4.*:*) | 452 i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) |
386 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then | 453 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then |
387 echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} | 454 echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} |
388 else | 455 else |
389 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE} | 456 echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} |
390 fi | 457 fi |
391 exit 0 ;; | 458 exit 0 ;; |
392 i[3-9]86:*:3.2:*) | 459 i?86:*:3.2:*) |
393 if test -f /usr/options/cb.name; then | 460 if test -f /usr/options/cb.name; then |
394 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` | 461 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` |
395 echo ${UNAME_MACHINE}-unknown-isc$UNAME_REL | 462 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL |
396 elif /bin/uname -X 2>/dev/null >/dev/null ; then | 463 elif /bin/uname -X 2>/dev/null >/dev/null ; then |
397 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` | 464 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` |
398 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 | 465 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 |
399 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ | 466 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ |
400 && UNAME_MACHINE=i586 | 467 && UNAME_MACHINE=i586 |
401 echo ${UNAME_MACHINE}-unknown-sco$UNAME_REL | 468 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL |
402 else | 469 else |
403 echo ${UNAME_MACHINE}-unknown-sysv32 | 470 echo ${UNAME_MACHINE}-pc-sysv32 |
404 fi | 471 fi |
405 exit 0 ;; | 472 exit 0 ;; |
406 Intel:Mach:3*:*) | 473 Intel:Mach:3*:*) |
407 echo i386-unknown-mach3 | 474 echo i386-pc-mach3 |
408 exit 0 ;; | 475 exit 0 ;; |
409 paragon:*:*:*) | 476 paragon:*:*:*) |
410 echo i860-intel-osf1 | 477 echo i860-intel-osf1 |
411 exit 0 ;; | 478 exit 0 ;; |
412 i860:*:4.*:*) # i860-SVR4 | 479 i860:*:4.*:*) # i860-SVR4 |
418 exit 0 ;; | 485 exit 0 ;; |
419 mini*:CTIX:SYS*5:*) | 486 mini*:CTIX:SYS*5:*) |
420 # "miniframe" | 487 # "miniframe" |
421 echo m68010-convergent-sysv | 488 echo m68010-convergent-sysv |
422 exit 0 ;; | 489 exit 0 ;; |
423 M680[234]0:*:R3V[567]*:*) | 490 M68*:*:R3V[567]*:*) |
424 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; | 491 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; |
425 3[34]??:*:4.0:3.0 | 3[345]??,*:*:4.0:3.0) | 492 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0) |
426 uname -p 2>/dev/null | grep 86 >/dev/null \ | 493 OS_REL='' |
427 && echo i486-ncr-sysv4.3 && exit 0 ;; | 494 test -r /etc/.relid \ |
428 3[34]??:*:4.0:* | 3[345]??,*:*:4.0:*) | 495 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
429 uname -p 2>/dev/null | grep 86 >/dev/null \ | 496 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
497 && echo i486-ncr-sysv4.3${OS_REL} && exit 0 | |
498 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ | |
499 && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; | |
500 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) | |
501 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | |
430 && echo i486-ncr-sysv4 && exit 0 ;; | 502 && echo i486-ncr-sysv4 && exit 0 ;; |
431 m680[234]0:LynxOS:2.[23]*:*) | 503 m68*:LynxOS:2.*:*) |
432 echo m68k-lynx-lynxos${UNAME_RELEASE} | 504 echo m68k-unknown-lynxos${UNAME_RELEASE} |
433 exit 0 ;; | 505 exit 0 ;; |
434 mc68030:UNIX_System_V:4.*:*) | 506 mc68030:UNIX_System_V:4.*:*) |
435 echo m68k-atari-sysv4 | 507 echo m68k-atari-sysv4 |
436 exit 0 ;; | 508 exit 0 ;; |
437 i[3-9]86:LynxOS:2.[23]*:*) | 509 i?86:LynxOS:2.*:*) |
438 echo i386-lynx-lynxos${UNAME_RELEASE} | 510 echo i386-unknown-lynxos${UNAME_RELEASE} |
439 exit 0 ;; | 511 exit 0 ;; |
440 TSUNAMI:LynxOS:2.[23]*:*) | 512 TSUNAMI:LynxOS:2.*:*) |
441 echo sparc-lynx-lynxos${UNAME_RELEASE} | 513 echo sparc-unknown-lynxos${UNAME_RELEASE} |
442 exit 0 ;; | 514 exit 0 ;; |
443 rs6000:LynxOS:2.[23]*:*) | 515 rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*) |
444 echo rs6000-lynx-lynxos${UNAME_RELEASE} | 516 echo rs6000-unknown-lynxos${UNAME_RELEASE} |
517 exit 0 ;; | |
518 SM[BE]S:UNIX_SV:*:*) | |
519 echo mips-dde-sysv${UNAME_RELEASE} | |
445 exit 0 ;; | 520 exit 0 ;; |
446 RM*:SINIX-*:*:*) | 521 RM*:SINIX-*:*:*) |
447 echo mips-sni-sysv4 | 522 echo mips-sni-sysv4 |
448 exit 0 ;; | 523 exit 0 ;; |
449 *:SINIX-*:*:*) | 524 *:SINIX-*:*:*) |
452 echo ${UNAME_MACHINE}-sni-sysv4 | 527 echo ${UNAME_MACHINE}-sni-sysv4 |
453 else | 528 else |
454 echo ns32k-sni-sysv | 529 echo ns32k-sni-sysv |
455 fi | 530 fi |
456 exit 0 ;; | 531 exit 0 ;; |
532 *:UNIX_System_V:4*:FTX*) | |
533 # From Gerald Hewes <hewes@openmarket.com>. | |
534 # How about differentiating between stratus architectures? -djm | |
535 echo hppa1.1-stratus-sysv4 | |
536 exit 0 ;; | |
537 *:*:*:FTX*) | |
538 # From seanf@swdc.stratus.com. | |
539 echo i860-stratus-sysv4 | |
540 exit 0 ;; | |
457 mc68*:A/UX:*:*) | 541 mc68*:A/UX:*:*) |
458 echo m68k-apple-aux${UNAME_RELEASE} | 542 echo m68k-apple-aux${UNAME_RELEASE} |
459 exit 0 ;; | 543 exit 0 ;; |
460 R3000:*System_V*:*:*) | 544 R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:*) |
461 if [ -d /usr/nec ]; then | 545 if [ -d /usr/nec ]; then |
462 echo mips-nec-sysv${UNAME_RELEASE} | 546 echo mips-nec-sysv${UNAME_RELEASE} |
463 else | 547 else |
464 echo mips-unknown-sysv${UNAME_RELEASE} | 548 echo mips-unknown-sysv${UNAME_RELEASE} |
465 fi | 549 fi |
550 exit 0 ;; | |
551 PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort | |
552 # says <Richard.M.Bartel@ccMail.Census.GOV> | |
553 echo i586-unisys-sysv4 | |
466 exit 0 ;; | 554 exit 0 ;; |
467 esac | 555 esac |
468 | 556 |
469 #echo '(No uname command or uname output not recognized.)' 1>&2 | 557 #echo '(No uname command or uname output not recognized.)' 1>&2 |
470 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 | 558 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 |
500 #if defined (hp300) && !defined (hpux) | 588 #if defined (hp300) && !defined (hpux) |
501 printf ("m68k-hp-bsd\n"); exit (0); | 589 printf ("m68k-hp-bsd\n"); exit (0); |
502 #endif | 590 #endif |
503 | 591 |
504 #if defined (NeXT) | 592 #if defined (NeXT) |
505 /*#if !defined (__ARCHITECTURE__) | 593 #if !defined (__ARCHITECTURE__) |
506 *#define __ARCHITECTURE__ "m68k" | 594 #define __ARCHITECTURE__ "m68k" |
507 *#endif | 595 #endif |
508 * int version; | 596 int version; |
509 * version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; | 597 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; |
510 * printf ("%s-next-nextstep%s\n", __ARCHITECTURE__, version==2 ? "2" : "3"); | 598 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); |
511 * exit (0); | 599 exit (0); |
512 */ | |
513 printf("mab-next-nextstep3\n"); exit(0); | |
514 #endif | |
515 | |
516 #if defined (MACH) | |
517 #if defined (vax) | |
518 printf("vax-dec-mach\n"); exit(0); | |
519 #else | |
520 #if defined (sun3) | |
521 printf("mc68000-sun-mach\n"); exit(0); | |
522 #else | |
523 #if defined (sparc) | |
524 printf("sparc-sun-mach\n"); exit(0); | |
525 #else | |
526 #if defined (mips) | |
527 printf("mips-dec-mach\n"); exit(0); | |
528 #else | |
529 #if defined (ibmrt) | |
530 printf("romp-ibm-mach\n"); exit(0); | |
531 #else | |
532 #if defined (i386) | |
533 printf("i386-unknown-mach\n"); exit(0); | |
534 #endif | |
535 #endif | |
536 #endif | |
537 #endif | |
538 #endif | |
539 #endif | |
540 #endif | 600 #endif |
541 | 601 |
542 #if defined (MULTIMAX) || defined (n16) | 602 #if defined (MULTIMAX) || defined (n16) |
543 #if defined (UMAXV) | 603 #if defined (UMAXV) |
544 printf ("ns32k-encore-sysv\n"); exit (0); | 604 printf ("ns32k-encore-sysv\n"); exit (0); |
550 #endif | 610 #endif |
551 #endif | 611 #endif |
552 #endif | 612 #endif |
553 | 613 |
554 #if defined (__386BSD__) | 614 #if defined (__386BSD__) |
555 printf ("i386-unknown-bsd\n"); exit (0); | 615 printf ("i386-pc-bsd\n"); exit (0); |
556 #endif | 616 #endif |
557 | 617 |
558 #if defined (sequent) | 618 #if defined (sequent) |
559 #if defined (i386) | 619 #if defined (i386) |
560 printf ("i386-sequent-dynix\n"); exit (0); | 620 printf ("i386-sequent-dynix\n"); exit (0); |