Write parameters if -genparam option include.
[openssl.git] / config
diff --git a/config b/config
index 7008a1a659942072ddbfde814e28ffa020cb9ae0..6583959479a12e282a0b5426336b69f9b13dfd9d 100755 (executable)
--- a/config
+++ b/config
@@ -406,7 +406,7 @@ if [ "$GCCVER" != "" ]; then
   CC=gcc
   # then strip off whatever prefix egcs prepends the number with...
   # Hopefully, this will work for any future prefixes as well.
-  GCCVER=`echo $GCCVER | sed 's/^[a-zA-Z]*\-//'`
+  GCCVER=`echo $GCCVER | LC_ALL=C sed 's/^[a-zA-Z]*\-//'`
   # Since gcc 3.1 gcc --version behaviour has changed.  gcc -dumpversion
   # does give us what we want though, so we use that.  We just just the
   # major and minor version numbers.
@@ -451,8 +451,6 @@ if [ "$SYSTEM" = "SunOS" ]; then
       echo "         patch #107357-01 or later applied."
       sleep 5
     fi
-  elif [ "$CC" = "cc" -a $CCVER -gt 0 ]; then
-    CC=sc3
   fi
 fi
 
@@ -747,6 +745,11 @@ case "$GUESSOS" in
                fi
            fi
        fi
+       if (lsattr -E -O -l proc0 | grep -i powerpc) >/dev/null 2>&1; then
+           :   # this applies even to Power3 and later, as they return PowerPC_POWER[345]
+       else
+           options="$options no-asm"
+       fi
        ;;
   # these are all covered by the catchall below
   # *-dgux) OUT="dgux" ;;