SUBMISSION TYPE: TSU
   SUBMITTED BY: Tim Rice
   SUBMITTED FOR:
   POINT OF CONTACT: [EMAIL PROTECTED]
   PHONE and/or FAX:
   MANUFACTURER: (if relevant)
   PRODUCT NAME/MODEL #: openssl-0.9.7
   ECCN: 5D002

   NOTIFICATION: The attached patch applies to openssl-0.9.7. The source
   code is at ftp.openssl.org and its worldwide mirrors. Code submitted
   to the mailing list at [EMAIL PROTECTED]

   This patch to config, corrects build problems on UnixWare.
   The patch is against CVS OpenSSL_0_9_7-stable branch pulled Jan 17 2003
   It should be applied to OpenSSL_0_9_7-stable and HEAD

   Config was adding "386" to the Configure line causing the build
   to fail on the assembler modules.

-- 
Tim Rice                                Multitalents    (707) 887-1469
[EMAIL PROTECTED]
--- config.old  2003-01-13 20:51:39.000000000 -0800
+++ config      2003-01-17 07:13:17.640400027 -0800
@@ -74,33 +74,48 @@
                echo "whatever-whatever-sco5"; exit 0
                ;;
            4.2MP)
+               MACH=`uname -X 2>/dev/null | grep "^Machine" | awk '{print $3, $4}'`
+               case ${MACH} in
+                       *386*       ) MACH="i386"     ;;
+                       *486*       ) MACH="i486"     ;;
+                       Pentium\ Pro) MACH="i686"     ;;
+                       Pentium\ II*) MACH="i686"     ;;
+                       Pentium*    ) MACH="i586"     ;;
+                       *           ) MACH="$MACHINE" ;;
+               esac
                if [ "x$VERSION" = "x2.01" ]; then
-                   echo "${MACHINE}-whatever-unixware201"; exit 0
+                   echo "${MACH}-whatever-unixware201"; exit 0
                elif [ "x$VERSION" = "x2.02" ]; then
-                   echo "${MACHINE}-whatever-unixware202"; exit 0
+                   echo "${MACH}-whatever-unixware202"; exit 0
                elif [ "x$VERSION" = "x2.03" ]; then
-                   echo "${MACHINE}-whatever-unixware203"; exit 0
+                   echo "${MACH}-whatever-unixware203"; exit 0
                elif [ "x$VERSION" = "x2.1.1" ]; then
-                   echo "${MACHINE}-whatever-unixware211"; exit 0
+                   echo "${MACH}-whatever-unixware211"; exit 0
                elif [ "x$VERSION" = "x2.1.2" ]; then
-                   echo "${MACHINE}-whatever-unixware212"; exit 0
+                   echo "${MACH}-whatever-unixware212"; exit 0
                elif [ "x$VERSION" = "x2.1.3" ]; then
-                   echo "${MACHINE}-whatever-unixware213"; exit 0
+                   echo "${MACH}-whatever-unixware213"; exit 0
                else
-                   echo "${MACHINE}-whatever-unixware2"; exit 0
+                   echo "${MACH}-whatever-unixware2"; exit 0
                fi
                ;;
            4.2)
                echo "whatever-whatever-unixware1"; exit 0
                ;;
-           OpenUNIX)
-               if [ "`echo x$VERSION | sed -e 's/\..*//'`" = "x8" ]; then
-                   echo "${MACHINE}-unknown-OpenUNIX${VERSION}"; exit 0
-               fi
-               ;;
            5)
+               MACH=`uname -X 2>/dev/null | grep "^Machine" | awk '{print $3, $4}'`
+               case ${MACH} in
+                       *386*       ) MACH="i386"     ;;
+                       *486*       ) MACH="i486"     ;;
+                       Pentium\ Pro) MACH="i686"     ;;
+                       Pentium\ II*) MACH="i686"     ;;
+                       Pentium*    ) MACH="i586"     ;;
+                       *           ) MACH="$MACHINE" ;;
+               esac
                if [ "`echo x$VERSION | sed -e 's/\..*//'`" = "x7" ]; then
-                   echo "${MACHINE}-sco-unixware7"; exit 0
+                   echo "${MACH}-sco-unixware7"; exit 0
+               elif [ "`echo x$VERSION | sed -e 's/\..*//'`" = "x8" ]; then
+                   echo "${MACH}-unknown-OpenUNIX${VERSION}"; exit 0
                fi
                ;;
        esac

Reply via email to