Correct support for SunOS 4.1.3_U1.
[openssl.git] / Configure
index 1c00b7fdf1f1d0807ecee90036494d534ea57160..497fd23f0909f2fa5bf33b429de16016d9e1b5ec 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -206,8 +206,8 @@ my %table=(
 #"linux64-sparcv9","sparc64-linux-gcc:-m64 -mcpu=v9 -DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -DBN_DIV2W::-D_REENTRANT:ULTRASPARC::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::::asm/md5-sparcv9.o:",
 
 # Sunos configs, assuming sparc for the gcc one.
-##"sunos-cc", "cc:-O4 -DNOPROTO -DNOCONST::(unknown):::DES_UNROLL:::",
-"sunos-gcc","gcc:-O3 -mv8 -Dssize_t=int::(unknown):::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL DES_PTR DES_RISC1:::",
+##"sunos-cc", "cc:-O4 -DNOPROTO -DNOCONST::(unknown):SUNOS::DES_UNROLL:::",
+"sunos-gcc","gcc:-O3 -mv8 -Dssize_t=int::(unknown):SUNOS::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL DES_PTR DES_RISC1:::",
 
 #### IRIX 5.x configs
 # -mips2 flag is added by ./config when appropriate.
@@ -712,7 +712,7 @@ PROCESS_ARGS:
                        { $threads=1; }
                elsif (/^no-shared$/)
                        { $no_shared=1; }
-               elsif (/^shared$/)
+               elsif (/^shared$/ || /^-shared$/ || /^--shared$/)
                        { $no_shared=0; }
                elsif (/^no-zlib$/)
                        { $zlib=0; }
@@ -1117,6 +1117,17 @@ else
        $no_shared = 1;
        }
 
+if ($no_shared)
+       {
+       $cflags="-DOPENSSL_NO_DYNAMIC_ENGINE $cflags";
+       $openssl_other_defines.="#define OPENSSL_NO_DYNAMIC_ENGINE\n";
+       }
+else
+       {
+       $cflags="-DOPENSSL_NO_STATIC_ENGINE $cflags";
+       $openssl_other_defines.="#define OPENSSL_NO_STATIC_ENGINE\n";
+       }
+
 if ($sys_id ne "")
        {
        $cflags="-DOPENSSL_SYSNAME_$sys_id $cflags";