Detect Siemens platforms.
authorUlf Möller <ulf@openssl.org>
Thu, 20 May 1999 17:28:19 +0000 (17:28 +0000)
committerUlf Möller <ulf@openssl.org>
Thu, 20 May 1999 17:28:19 +0000 (17:28 +0000)
Submitted by: Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>

Configure
config

index 2cc831a8772fb84fc332bc47e7d0bbf3404cc688..e2d047602601765e1e560553b018983e8ed4e724 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -221,7 +221,10 @@ my %table=(
 # SCO cc.
 "sco5-cc",  "cc::(unknown):-lsocket:$x86_gcc_des ${x86_gcc_opts}:::", # des options?
 
-# Sinix RM400
+# Sinix/ReliantUNIX RM400
+# NOTE: The CDS++ Compiler up to V2.0Bsomething has the IRIX_CC_BUG optimizer problem. Better use -g  */
+"ReliantUNIX","cc:-KPIC -g -DSNI -DTERMIOS -DB_ENDIAN:-Kthread:-lsocket -lnsl -lc -L/usr/ucblib -lucb:BN_LLONG DES_PTR DES_RISC2 DES_UNROLL BF_PTR:::",
+"SINIX","cc:-O -DSNI:(unknown):-lsocket -lnsl -lc -L/usr/ucblib -lucb:RC4_INDEX RC4_CHAR:::",
 "SINIX-N","/usr/ucb/cc:-O2 -misaligned:(unknown):-lucb:RC4_INDEX RC4_CHAR:::",
 
 # Windows NT, Microsoft Visual C++ 4.0
@@ -452,7 +455,7 @@ while (<IN>)
        }
 close(IN);
 
-if ($version =~ /(^[0-9]*)\.([\0-9\.]*)/)
+if ($version =~ /(^[0-9]*)\.([0-9\.]*)/)
        {
        $major=$1;
        $minor=$2;
diff --git a/config b/config
index 484f7937f2c1e7ddeada9c756d6aec1ec66ad9c5..53cad40a5f13199678f2b4a9a0cbff2082da82c1 100755 (executable)
--- a/config
+++ b/config
@@ -201,8 +201,8 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
        echo "${MACHINE}-unknown-ultrix"; exit 0
        ;;
 
-    SINIX*)
-       echo "${MACHINE}-sni-sysv4"; exit 0
+    SINIX*|ReliantUNIX*)
+       echo "${MACHINE}-siemens-sysv4"; exit 0
        ;;
 
     machten:*)
@@ -322,7 +322,8 @@ case "$GUESSOS" in
   *-*-openbsd) OUT="OpenBSD" ;;
   *-*-osf) OUT="alpha-cc" ;;
   *-*-unixware*) OUT="unixware-2.0" ;;
-  *-sni-sysv4) OUT="SINIX" ;;
+  RM*-siemens-sysv4) OUT="ReliantUNIX" ;;
+  *-siemens-sysv4) OUT="SINIX" ;;
   # these are all covered by the catchall below
   # *-hpux*) OUT="hpux-$CC" ;;
   # *-aix) OUT="aix-$CC" ;;