aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-06-22 19:01:20 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-06-22 19:01:20 -0400
commit3e525997d7bff3bf668a128de616b1d51a06a4de (patch)
treec09882052696cbdff0af1c47d5c01c5e382cd427
parent83750c274bae76086912ab1e136e7d75f6f976b6 (diff)
downloadgcc-3e525997d7bff3bf668a128de616b1d51a06a4de.zip
gcc-3e525997d7bff3bf668a128de616b1d51a06a4de.tar.gz
gcc-3e525997d7bff3bf668a128de616b1d51a06a4de.tar.bz2
(i386-sequent-ptx): Properly get version number.
From-SVN: r10030
-rwxr-xr-xgcc/config.guess17
1 files changed, 16 insertions, 1 deletions
diff --git a/gcc/config.guess b/gcc/config.guess
index 478c406..6b815db 100755
--- a/gcc/config.guess
+++ b/gcc/config.guess
@@ -422,6 +422,10 @@ esac
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
cat >dummy.c <<EOF
+#ifdef _SEQUENT_
+# include <sys/types.h>
+# include <sys/utsname.h>
+#endif
main ()
{
#if defined (sony)
@@ -485,7 +489,18 @@ main ()
#endif
#if defined (_SEQUENT_)
- printf ("i386-sequent-ptx\n"); exit (0);
+ struct utsname un;
+
+ uname(&un);
+
+ if (strncmp(un.version, "V2", 2) == 0) {
+ printf ("i386-sequent-ptx2\n"); exit (0);
+ }
+ if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
+ printf ("i386-sequent-ptx1\n"); exit (0);
+ }
+ printf ("i386-sequent-ptx\n"); exit (0);
+
#endif
#if defined (vax)