comparison config.guess @ 12364:a910242e72c0

(i386-sequent-ptx): Properly get version number.
author Richard Kenner <kenner@gnu.org>
date Thu, 22 Jun 1995 23:01:20 +0000
parents cc16f6c558b4
children b4d39d2b9795
comparison
equal deleted inserted replaced
12363:cc16f6c558b4 12364:a910242e72c0
420 420
421 #echo '(No uname command or uname output not recognized.)' 1>&2 421 #echo '(No uname command or uname output not recognized.)' 1>&2
422 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 422 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
423 423
424 cat >dummy.c <<EOF 424 cat >dummy.c <<EOF
425 #ifdef _SEQUENT_
426 # include <sys/types.h>
427 # include <sys/utsname.h>
428 #endif
425 main () 429 main ()
426 { 430 {
427 #if defined (sony) 431 #if defined (sony)
428 #if defined (MIPSEB) 432 #if defined (MIPSEB)
429 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, 433 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
483 printf ("ns32k-sequent-dynix\n"); exit (0); 487 printf ("ns32k-sequent-dynix\n"); exit (0);
484 #endif 488 #endif
485 #endif 489 #endif
486 490
487 #if defined (_SEQUENT_) 491 #if defined (_SEQUENT_)
488 printf ("i386-sequent-ptx\n"); exit (0); 492 struct utsname un;
493
494 uname(&un);
495
496 if (strncmp(un.version, "V2", 2) == 0) {
497 printf ("i386-sequent-ptx2\n"); exit (0);
498 }
499 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
500 printf ("i386-sequent-ptx1\n"); exit (0);
501 }
502 printf ("i386-sequent-ptx\n"); exit (0);
503
489 #endif 504 #endif
490 505
491 #if defined (vax) 506 #if defined (vax)
492 #if !defined (ultrix) 507 #if !defined (ultrix)
493 printf ("vax-dec-bsd\n"); exit (0); 508 printf ("vax-dec-bsd\n"); exit (0);