Don't use ...-oldgcc for egcs compiler.
authorBodo Möller <bodo@openssl.org>
Fri, 2 Jul 1999 13:38:17 +0000 (13:38 +0000)
committerBodo Möller <bodo@openssl.org>
Fri, 2 Jul 1999 13:38:17 +0000 (13:38 +0000)
config

diff --git a/config b/config
index af3ae9ae1199db59768a601979911a679ccde377..8a47ca102dea40a04948bab9a0f934c30fd92e7e 100755 (executable)
--- a/config
+++ b/config
@@ -355,10 +355,16 @@ then
  GCCVERMAJOR="`echo $GCCVER | sed 's/.*version \([^.]*\).*/\1/`"
  GCCVERMINOR="`echo $GCCVER | sed 's/.*version[^.]*\.\([^.]*\).*/\1/`"
  echo "gcc version $GCCVERMAJOR.$GCCVERMINOR.x"
- if [ $GCCVERMAJOR$GCCVERMINOR -lt 28 ]
- then
-  OUT=solaris-usparc-oldgcc
- fi
+ case "$GCCVERMAJOR" in
+   egcs*)
+     ;;
+   *)
+     if [ $GCCVERMAJOR$GCCVERMINOR -lt 28 ]
+     then
+       OUT=solaris-usparc-oldgcc
+     fi
+     ;;
+  esac
 fi
 
 case "$GUESSOS" in