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 af3ae9a..8a47ca1 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