Mercurial > emacs
comparison config.guess @ 16539:901db650f48e libc-961108 libc-961109 libc-961110 libc-961111
patches from bug-gnu-utils to support more architectures
author | David J. MacKenzie <djm@gnu.org> |
---|---|
date | Fri, 08 Nov 1996 07:35:31 +0000 |
parents | da1a2b74d099 |
children | a41b302694aa |
comparison
equal
deleted
inserted
replaced
16538:1e1026e6cd9d | 16539:901db650f48e |
---|---|
65 echo m68k-cbm-sysv4 | 65 echo m68k-cbm-sysv4 |
66 exit 0;; | 66 exit 0;; |
67 amiga:NetBSD:*:*) | 67 amiga:NetBSD:*:*) |
68 echo m68k-cbm-netbsd${UNAME_RELEASE} | 68 echo m68k-cbm-netbsd${UNAME_RELEASE} |
69 exit 0 ;; | 69 exit 0 ;; |
70 amiga:OpenBSD:*:*) | |
71 echo m68k-cbm-openbsd${UNAME_RELEASE} | |
72 exit 0 ;; | |
70 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) | 73 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
71 echo arm-acorn-riscix${UNAME_RELEASE} | 74 echo arm-acorn-riscix${UNAME_RELEASE} |
72 exit 0;; | 75 exit 0;; |
73 Pyramid*:OSx*:*:*) | 76 Pyramid*:OSx*:*:*|MIS*:OSx*:*:*) |
77 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. | |
74 if test "`(/bin/universe) 2>/dev/null`" = att ; then | 78 if test "`(/bin/universe) 2>/dev/null`" = att ; then |
75 echo pyramid-pyramid-sysv3 | 79 echo pyramid-pyramid-sysv3 |
76 else | 80 else |
77 echo pyramid-pyramid-bsd | 81 echo pyramid-pyramid-bsd |
78 fi | 82 fi |
83 exit 0 ;; | |
84 NILE:*:*:dcosx) | |
85 echo pyramid-pyramid-svr4 | |
79 exit 0 ;; | 86 exit 0 ;; |
80 sun4*:SunOS:5.*:*) | 87 sun4*:SunOS:5.*:*) |
81 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | 88 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
82 exit 0 ;; | 89 exit 0 ;; |
83 i86pc:SunOS:5.*:*) | 90 i86pc:SunOS:5.*:*) |
102 echo m68k-sun-sunos${UNAME_RELEASE} | 109 echo m68k-sun-sunos${UNAME_RELEASE} |
103 exit 0 ;; | 110 exit 0 ;; |
104 atari*:NetBSD:*:*) | 111 atari*:NetBSD:*:*) |
105 echo m68k-atari-netbsd${UNAME_RELEASE} | 112 echo m68k-atari-netbsd${UNAME_RELEASE} |
106 exit 0 ;; | 113 exit 0 ;; |
114 atari*:OpenBSD:*:*) | |
115 echo m68k-atari-openbsd${UNAME_RELEASE} | |
116 exit 0 ;; | |
107 sun3*:NetBSD:*:*) | 117 sun3*:NetBSD:*:*) |
108 echo m68k-sun-netbsd${UNAME_RELEASE} | 118 echo m68k-sun-netbsd${UNAME_RELEASE} |
109 exit 0 ;; | 119 exit 0 ;; |
120 sun3*:OpenBSD:*:*) | |
121 echo m68k-sun-openbsd${UNAME_RELEASE} | |
122 exit 0 ;; | |
110 mac68k:NetBSD:*:*) | 123 mac68k:NetBSD:*:*) |
111 echo m68k-apple-netbsd${UNAME_RELEASE} | 124 echo m68k-apple-netbsd${UNAME_RELEASE} |
125 exit 0 ;; | |
126 mac68k:OpenBSD:*:*) | |
127 echo m68k-apple-openbsd${UNAME_RELEASE} | |
112 exit 0 ;; | 128 exit 0 ;; |
113 RISC*:ULTRIX:*:*) | 129 RISC*:ULTRIX:*:*) |
114 echo mips-dec-ultrix${UNAME_RELEASE} | 130 echo mips-dec-ultrix${UNAME_RELEASE} |
115 exit 0 ;; | 131 exit 0 ;; |
116 VAX*:ULTRIX*:*:*) | 132 VAX*:ULTRIX*:*:*) |
177 echo m68k-tektronix-bsd | 193 echo m68k-tektronix-bsd |
178 exit 0 ;; | 194 exit 0 ;; |
179 *:IRIX*:*:*) | 195 *:IRIX*:*:*) |
180 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` | 196 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` |
181 exit 0 ;; | 197 exit 0 ;; |
182 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. | 198 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. |
183 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id | 199 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id |
184 exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' | 200 exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' |
185 i[34]86:AIX:*:*) | 201 i?86:AIX:*:*) |
186 echo i386-ibm-aix | 202 echo i386-ibm-aix |
187 exit 0 ;; | 203 exit 0 ;; |
188 *:AIX:2:3) | 204 *:AIX:2:3) |
189 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then | 205 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then |
190 sed 's/^ //' << EOF >dummy.c | 206 sed 's/^ //' << EOF >dummy.c |
329 echo cray2-cray-unicos | 345 echo cray2-cray-unicos |
330 exit 0 ;; | 346 exit 0 ;; |
331 hp3[0-9][05]:NetBSD:*:*) | 347 hp3[0-9][05]:NetBSD:*:*) |
332 echo m68k-hp-netbsd${UNAME_RELEASE} | 348 echo m68k-hp-netbsd${UNAME_RELEASE} |
333 exit 0 ;; | 349 exit 0 ;; |
334 i[34]86:BSD/386:*:* | *:BSD/OS:*:*) | 350 hp3[0-9][05]:OpenBSD:*:*) |
351 echo m68k-hp-openbsd${UNAME_RELEASE} | |
352 exit 0 ;; | |
353 i?86:BSD/386:*:* | *:BSD/OS:*:*) | |
335 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} | 354 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} |
336 exit 0 ;; | 355 exit 0 ;; |
337 *:FreeBSD:*:*) | 356 *:FreeBSD:*:*) |
338 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` | 357 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
339 exit 0 ;; | 358 exit 0 ;; |
340 *:NetBSD:*:*) | 359 *:NetBSD:*:*) |
341 echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | 360 echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` |
361 exit 0 ;; | |
362 *:OpenBSD:*:*) | |
363 echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | |
342 exit 0 ;; | 364 exit 0 ;; |
343 i*:CYGWIN*:*) | 365 i*:CYGWIN*:*) |
344 echo i386-pc-cygwin32 | 366 echo i386-pc-cygwin32 |
345 exit 0 ;; | 367 exit 0 ;; |
346 p*:CYGWIN*:*) | 368 p*:CYGWIN*:*) |
354 exit 0 ;; | 376 exit 0 ;; |
355 *:Linux:*:*) | 377 *:Linux:*:*) |
356 # The BFD linker knows what the default object file format is, so | 378 # The BFD linker knows what the default object file format is, so |
357 # first see if it will tell us. | 379 # first see if it will tell us. |
358 ld_help_string=`ld --help 2>&1` | 380 ld_help_string=`ld --help 2>&1` |
359 if echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf_i[345]86"; then | 381 if echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf_i.86"; then |
360 echo "${UNAME_MACHINE}-pc-linux-gnu" ; exit 0 | 382 echo "${UNAME_MACHINE}-pc-linux-gnu" ; exit 0 |
361 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i[345]86linux"; then | 383 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i.86linux"; then |
362 echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 | 384 echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 |
363 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i[345]86coff"; then | 385 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i.86coff"; then |
364 echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 | 386 echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 |
365 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68kelf"; then | 387 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68kelf"; then |
366 echo "${UNAME_MACHINE}-unknown-linux-gnu" ; exit 0 | 388 echo "${UNAME_MACHINE}-unknown-linux-gnu" ; exit 0 |
367 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68klinux"; then | 389 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68klinux"; then |
368 echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 | 390 echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 |
394 ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0 | 416 ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0 |
395 rm -f dummy.c dummy | 417 rm -f dummy.c dummy |
396 fi ;; | 418 fi ;; |
397 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions | 419 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions |
398 # are messed up and put the nodename in both sysname and nodename. | 420 # are messed up and put the nodename in both sysname and nodename. |
399 i[34]86:DYNIX/ptx:4*:*) | 421 i?86:DYNIX/ptx:4*:*) |
400 echo i386-sequent-sysv4 | 422 echo i386-sequent-sysv4 |
401 exit 0 ;; | 423 exit 0 ;; |
402 i[34]86:*:4.*:* | i[34]86:SYSTEM_V:4.*:*) | 424 i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) |
403 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then | 425 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then |
404 echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} | 426 echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} |
405 else | 427 else |
406 echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} | 428 echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} |
407 fi | 429 fi |
408 exit 0 ;; | 430 exit 0 ;; |
409 i[34]86:*:3.2:*) | 431 i?86:*:3.2:*) |
410 if test -f /usr/options/cb.name; then | 432 if test -f /usr/options/cb.name; then |
411 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` | 433 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` |
412 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL | 434 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL |
413 elif /bin/uname -X 2>/dev/null >/dev/null ; then | 435 elif /bin/uname -X 2>/dev/null >/dev/null ; then |
414 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` | 436 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` |
435 exit 0 ;; | 457 exit 0 ;; |
436 mini*:CTIX:SYS*5:*) | 458 mini*:CTIX:SYS*5:*) |
437 # "miniframe" | 459 # "miniframe" |
438 echo m68010-convergent-sysv | 460 echo m68010-convergent-sysv |
439 exit 0 ;; | 461 exit 0 ;; |
440 M680[234]0:*:R3V[567]*:*) | 462 m68*:*:R3V[567]*:*) |
441 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; | 463 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; |
442 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0) | 464 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0) |
443 UNAME_REL=4.3 | 465 UNAME_REL=4.3 |
444 if test -f /etc/.relid; then | 466 if test -f /etc/.relid; then |
445 UNAME_REL=4.3.`awk '{ print $3 }' /etc/.relid` | 467 UNAME_REL=4.3.`awk '{ print $3 }' /etc/.relid` |
449 uname -p 2>/dev/null | /bin/grep entium >/dev/null \ | 471 uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
450 && echo i586-ncr-sysv$UNAME_REL && exit 0 ;; | 472 && echo i586-ncr-sysv$UNAME_REL && exit 0 ;; |
451 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) | 473 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
452 uname -p 2>/dev/null | grep 86 >/dev/null \ | 474 uname -p 2>/dev/null | grep 86 >/dev/null \ |
453 && echo i486-ncr-sysv4 && exit 0 ;; | 475 && echo i486-ncr-sysv4 && exit 0 ;; |
454 m680[234]0:LynxOS:2.[23]*:*) | 476 m68*:LynxOS:2.*:*) |
455 echo m68k-lynx-lynxos${UNAME_RELEASE} | 477 echo m68k-unknown-lynxos${UNAME_RELEASE} |
456 exit 0 ;; | 478 exit 0 ;; |
457 mc68030:UNIX_System_V:4.*:*) | 479 mc68030:UNIX_System_V:4.*:*) |
458 echo m68k-atari-sysv4 | 480 echo m68k-atari-sysv4 |
459 exit 0 ;; | 481 exit 0 ;; |
460 i[34]86:LynxOS:2.[23]*:*) | 482 i?86:LynxOS:2.*:*) |
461 echo i386-lynx-lynxos${UNAME_RELEASE} | 483 echo i386-unknown-lynxos${UNAME_RELEASE} |
462 exit 0 ;; | 484 exit 0 ;; |
463 TSUNAMI:LynxOS:2.[23]*:*) | 485 TSUNAMI:LynxOS:2.*:*) |
464 echo sparc-lynx-lynxos${UNAME_RELEASE} | 486 echo sparc-unknown-lynxos${UNAME_RELEASE} |
465 exit 0 ;; | 487 exit 0 ;; |
466 rs6000:LynxOS:2.[23]*:*) | 488 rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*) |
467 echo rs6000-lynx-lynxos${UNAME_RELEASE} | 489 echo rs6000-unknown-lynxos${UNAME_RELEASE} |
468 exit 0 ;; | 490 exit 0 ;; |
469 RM*:SINIX-*:*:*) | 491 RM*:SINIX-*:*:*) |
470 echo mips-sni-sysv4 | 492 echo mips-sni-sysv4 |
471 exit 0 ;; | 493 exit 0 ;; |
472 *:SINIX-*:*:*) | 494 *:SINIX-*:*:*) |
474 UNAME_MACHINE=`(uname -p) 2>/dev/null` | 496 UNAME_MACHINE=`(uname -p) 2>/dev/null` |
475 echo ${UNAME_MACHINE}-sni-sysv4 | 497 echo ${UNAME_MACHINE}-sni-sysv4 |
476 else | 498 else |
477 echo ns32k-sni-sysv | 499 echo ns32k-sni-sysv |
478 fi | 500 fi |
501 exit 0 ;; | |
502 *:UNIX_System_V:4*:FTX*) | |
503 # From Gerald Hewes <hewes@openmarket.com>. | |
504 # How about differentiating between stratus architectures? -djm | |
505 echo hppa1.1-stratus-sysv4 | |
506 exit 0 ;; | |
507 *:*:*:FTX*) | |
508 # From seanf@swdc.stratus.com. | |
509 echo i860-stratus-sysv4 | |
479 exit 0 ;; | 510 exit 0 ;; |
480 mc68*:A/UX:*:*) | 511 mc68*:A/UX:*:*) |
481 echo m68k-apple-aux${UNAME_RELEASE} | 512 echo m68k-apple-aux${UNAME_RELEASE} |
482 exit 0 ;; | 513 exit 0 ;; |
483 R3000:*System_V*:*:*) | 514 R3000:*System_V*:*:*) |