1ebfedea0SLionel Sambuc$! 2ebfedea0SLionel Sambuc$! MAKEVMS.COM 3ebfedea0SLionel Sambuc$! Original Author: UNKNOWN 4ebfedea0SLionel Sambuc$! Rewritten By: Robert Byer 5ebfedea0SLionel Sambuc$! Vice-President 6ebfedea0SLionel Sambuc$! A-Com Computing, Inc. 7ebfedea0SLionel Sambuc$! byer@mail.all-net.net 8ebfedea0SLionel Sambuc$! 9ebfedea0SLionel Sambuc$! Changes by Richard Levitte <richard@levitte.org> 10ebfedea0SLionel Sambuc$! Zoltan Arpadffy <zoli@polarhome.com> 11ebfedea0SLionel Sambuc$! 12ebfedea0SLionel Sambuc$! This procedure creates the SSL libraries of "[.xxx.EXE.CRYPTO]LIBCRYPTO.OLB" 13ebfedea0SLionel Sambuc$! "[.xxx.EXE.SSL]LIBSSL.OLB" 14ebfedea0SLionel Sambuc$! The "xxx" denotes the machine architecture of ALPHA, IA64 or VAX. 15ebfedea0SLionel Sambuc$! 16ebfedea0SLionel Sambuc$! This procedures accepts two command line options listed below. 17ebfedea0SLionel Sambuc$! 18ebfedea0SLionel Sambuc$! P1 specifies one of the following build options: 19ebfedea0SLionel Sambuc$! 20ebfedea0SLionel Sambuc$! ALL Just build "everything". 21ebfedea0SLionel Sambuc$! CONFIG Just build the "[.CRYPTO._xxx]OPENSSLCONF.H" file. 22ebfedea0SLionel Sambuc$! BUILDINF Just build the "[.CRYPTO._xxx]BUILDINF.H" file. 23ebfedea0SLionel Sambuc$! SOFTLINKS Just fix the Unix soft links. 24ebfedea0SLionel Sambuc$! BUILDALL Same as ALL, except CONFIG, BUILDINF and SOFTILNKS aren't done. 25ebfedea0SLionel Sambuc$! CRYPTO Just build the "[.xxx.EXE.CRYPTO]LIBCRYPTO.OLB" library. 26ebfedea0SLionel Sambuc$! CRYPTO/x Just build the x part of the 27ebfedea0SLionel Sambuc$! "[.xxx.EXE.CRYPTO]LIBCRYPTO.OLB" library. 28ebfedea0SLionel Sambuc$! SSL Just build the "[.xxx.EXE.SSL]LIBSSL.OLB" library. 29ebfedea0SLionel Sambuc$! SSL_TASK Just build the "[.xxx.EXE.SSL]SSL_TASK.EXE" program. 30ebfedea0SLionel Sambuc$! TEST Just build the "[.xxx.EXE.TEST]" test programs for OpenSSL. 31ebfedea0SLionel Sambuc$! APPS Just build the "[.xxx.EXE.APPS]" application programs for OpenSSL. 32ebfedea0SLionel Sambuc$! ENGINES Just build the "[.xxx.EXE.ENGINES]" application programs for OpenSSL. 33ebfedea0SLionel Sambuc$! 34ebfedea0SLionel Sambuc$! P2, if defined, specifies the C pointer size. Ignored on VAX. 35ebfedea0SLionel Sambuc$! ("64=ARGV" gives more efficient code with HP C V7.3 or newer.) 36ebfedea0SLionel Sambuc$! Supported values are: 37ebfedea0SLionel Sambuc$! 38ebfedea0SLionel Sambuc$! "" Compile with default (/NOPOINTER_SIZE). 39ebfedea0SLionel Sambuc$! 32 Compile with /POINTER_SIZE=32 (SHORT). 40ebfedea0SLionel Sambuc$! 64 Compile with /POINTER_SIZE=64[=ARGV] (LONG[=ARGV]). 41ebfedea0SLionel Sambuc$! (Automatically select ARGV if compiler supports it.) 42ebfedea0SLionel Sambuc$! 64= Compile with /POINTER_SIZE=64 (LONG). 43ebfedea0SLionel Sambuc$! 64=ARGV Compile with /POINTER_SIZE=64=ARGV (LONG=ARGV). 44ebfedea0SLionel Sambuc$! 45ebfedea0SLionel Sambuc$! P3 specifies DEBUG or NODEBUG, to compile with or without debugging 46ebfedea0SLionel Sambuc$! information. 47ebfedea0SLionel Sambuc$! 48ebfedea0SLionel Sambuc$! P4 specifies which compiler to try to compile under. 49ebfedea0SLionel Sambuc$! 50ebfedea0SLionel Sambuc$! VAXC For VAX C. 51ebfedea0SLionel Sambuc$! DECC For DEC C. 52ebfedea0SLionel Sambuc$! GNUC For GNU C. 53ebfedea0SLionel Sambuc$! LINK To only link the programs from existing object files. 54ebfedea0SLionel Sambuc$! (not yet implemented) 55ebfedea0SLionel Sambuc$! 56ebfedea0SLionel Sambuc$! If you don't specify a compiler, it will try to determine which 57ebfedea0SLionel Sambuc$! "C" compiler to use. 58ebfedea0SLionel Sambuc$! 59ebfedea0SLionel Sambuc$! P5, if defined, sets a TCP/IP library to use, through one of the following 60ebfedea0SLionel Sambuc$! keywords: 61ebfedea0SLionel Sambuc$! 62ebfedea0SLionel Sambuc$! UCX for UCX or UCX emulation 63ebfedea0SLionel Sambuc$! TCPIP for TCP/IP Services or TCP/IP Services emulation 64ebfedea0SLionel Sambuc$! (this is prefered over UCX) 65ebfedea0SLionel Sambuc$! SOCKETSHR for SOCKETSHR+NETLIB 66ebfedea0SLionel Sambuc$! NONE to avoid specifying which TCP/IP implementation to 67ebfedea0SLionel Sambuc$! use at build time (this works with DEC C). This is 68ebfedea0SLionel Sambuc$! the default. 69ebfedea0SLionel Sambuc$! 70ebfedea0SLionel Sambuc$! P6, if defined, sets a compiler thread NOT needed on OpenVMS 7.1 (and up). 71ebfedea0SLionel Sambuc$! 72ebfedea0SLionel Sambuc$! P7, if defined, specifies a directory where ZLIB files (zlib.h, 73ebfedea0SLionel Sambuc$! libz.olb) may be found. Optionally, a non-default object library 74ebfedea0SLionel Sambuc$! name may be included ("dev:[dir]libz_64.olb", for example). 75ebfedea0SLionel Sambuc$! 76ebfedea0SLionel Sambuc$! 77ebfedea0SLionel Sambuc$! Announce/identify. 78ebfedea0SLionel Sambuc$! 79ebfedea0SLionel Sambuc$ proc = f$environment( "procedure") 80ebfedea0SLionel Sambuc$ write sys$output "@@@ "+ - 81ebfedea0SLionel Sambuc f$parse( proc, , , "name")+ f$parse( proc, , , "type") 82ebfedea0SLionel Sambuc$! 83ebfedea0SLionel Sambuc$ DEF_ORIG = F$ENVIRONMENT( "DEFAULT") 84ebfedea0SLionel Sambuc$ ON ERROR THEN GOTO TIDY 85ebfedea0SLionel Sambuc$ ON CONTROL_C THEN GOTO TIDY 86ebfedea0SLionel Sambuc$! 87ebfedea0SLionel Sambuc$! Check if we're in a batch job, and make sure we get to 88ebfedea0SLionel Sambuc$! the directory this script is in 89ebfedea0SLionel Sambuc$! 90ebfedea0SLionel Sambuc$ IF F$MODE() .EQS. "BATCH" 91ebfedea0SLionel Sambuc$ THEN 92ebfedea0SLionel Sambuc$ COMNAME=F$ENVIRONMENT("PROCEDURE") 93ebfedea0SLionel Sambuc$ COMPATH=F$PARSE("A.;",COMNAME) - "A.;" 94ebfedea0SLionel Sambuc$ SET DEF 'COMPATH' 95ebfedea0SLionel Sambuc$ ENDIF 96ebfedea0SLionel Sambuc$! 97ebfedea0SLionel Sambuc$! Check What Architecture We Are Using. 98ebfedea0SLionel Sambuc$! 99ebfedea0SLionel Sambuc$ IF (F$GETSYI("CPU").LT.128) 100ebfedea0SLionel Sambuc$ THEN 101ebfedea0SLionel Sambuc$! 102ebfedea0SLionel Sambuc$! The Architecture Is VAX. 103ebfedea0SLionel Sambuc$! 104ebfedea0SLionel Sambuc$ ARCH = "VAX" 105ebfedea0SLionel Sambuc$! 106ebfedea0SLionel Sambuc$! Else... 107ebfedea0SLionel Sambuc$! 108ebfedea0SLionel Sambuc$ ELSE 109ebfedea0SLionel Sambuc$! 110ebfedea0SLionel Sambuc$! The Architecture Is Alpha, IA64 or whatever comes in the future. 111ebfedea0SLionel Sambuc$! 112ebfedea0SLionel Sambuc$ ARCH = F$EDIT( F$GETSYI( "ARCH_NAME"), "UPCASE") 113ebfedea0SLionel Sambuc$ IF (ARCH .EQS. "") THEN ARCH = "UNK" 114ebfedea0SLionel Sambuc$! 115ebfedea0SLionel Sambuc$! End The Architecture Check. 116ebfedea0SLionel Sambuc$! 117ebfedea0SLionel Sambuc$ ENDIF 118ebfedea0SLionel Sambuc$! 119ebfedea0SLionel Sambuc$ ARCHD = ARCH 120ebfedea0SLionel Sambuc$ LIB32 = "32" 121ebfedea0SLionel Sambuc$ POINTER_SIZE = "" 122ebfedea0SLionel Sambuc$! 123ebfedea0SLionel Sambuc$! Get VMS version. 124ebfedea0SLionel Sambuc$! 125ebfedea0SLionel Sambuc$ VMS_VERSION = f$edit( f$getsyi( "VERSION"), "TRIM") 126ebfedea0SLionel Sambuc$! 127ebfedea0SLionel Sambuc$! Check To Make Sure We Have Valid Command Line Parameters. 128ebfedea0SLionel Sambuc$! 129ebfedea0SLionel Sambuc$ GOSUB CHECK_OPTIONS 130ebfedea0SLionel Sambuc$! 131ebfedea0SLionel Sambuc$! Check To See What We Are To Do. 132ebfedea0SLionel Sambuc$! 133ebfedea0SLionel Sambuc$ IF (BUILDCOMMAND.EQS."ALL") 134ebfedea0SLionel Sambuc$ THEN 135ebfedea0SLionel Sambuc$! 136ebfedea0SLionel Sambuc$! Start with building the OpenSSL configuration file. 137ebfedea0SLionel Sambuc$! 138ebfedea0SLionel Sambuc$ GOSUB CONFIG 139ebfedea0SLionel Sambuc$! 140ebfedea0SLionel Sambuc$! Create The "BUILDINF.H" Include File. 141ebfedea0SLionel Sambuc$! 142ebfedea0SLionel Sambuc$ GOSUB BUILDINF 143ebfedea0SLionel Sambuc$! 144ebfedea0SLionel Sambuc$! Fix The Unix Softlinks. 145ebfedea0SLionel Sambuc$! 146ebfedea0SLionel Sambuc$ GOSUB SOFTLINKS 147ebfedea0SLionel Sambuc$! 148ebfedea0SLionel Sambuc$ ENDIF 149ebfedea0SLionel Sambuc$! 150ebfedea0SLionel Sambuc$ IF (BUILDCOMMAND.EQS."ALL".OR.BUILDCOMMAND.EQS."BUILDALL") 151ebfedea0SLionel Sambuc$ THEN 152ebfedea0SLionel Sambuc$! 153ebfedea0SLionel Sambuc$! Build The [.xxx.EXE.CRYPTO]LIBCRYPTO.OLB Library. 154ebfedea0SLionel Sambuc$! 155ebfedea0SLionel Sambuc$ GOSUB CRYPTO 156ebfedea0SLionel Sambuc$! 157ebfedea0SLionel Sambuc$! Build The [.xxx.EXE.SSL]LIBSSL.OLB Library. 158ebfedea0SLionel Sambuc$! 159ebfedea0SLionel Sambuc$ GOSUB SSL 160ebfedea0SLionel Sambuc$! 161ebfedea0SLionel Sambuc$! Build The [.xxx.EXE.SSL]SSL_TASK.EXE DECNet SSL Engine. 162ebfedea0SLionel Sambuc$! 163ebfedea0SLionel Sambuc$ GOSUB SSL_TASK 164ebfedea0SLionel Sambuc$! 165ebfedea0SLionel Sambuc$! Build The [.xxx.EXE.TEST] OpenSSL Test Utilities. 166ebfedea0SLionel Sambuc$! 167ebfedea0SLionel Sambuc$ GOSUB TEST 168ebfedea0SLionel Sambuc$! 169ebfedea0SLionel Sambuc$! Build The [.xxx.EXE.APPS] OpenSSL Application Utilities. 170ebfedea0SLionel Sambuc$! 171ebfedea0SLionel Sambuc$ GOSUB APPS 172ebfedea0SLionel Sambuc$! 173ebfedea0SLionel Sambuc$! Build The [.xxx.EXE.ENGINES] OpenSSL Shareable Engines. 174ebfedea0SLionel Sambuc$! 175ebfedea0SLionel Sambuc$ GOSUB ENGINES 176ebfedea0SLionel Sambuc$! 177ebfedea0SLionel Sambuc$! Else... 178ebfedea0SLionel Sambuc$! 179ebfedea0SLionel Sambuc$ ELSE 180ebfedea0SLionel Sambuc$! 181ebfedea0SLionel Sambuc$! Build Just What The User Wants Us To Build. 182ebfedea0SLionel Sambuc$! 183ebfedea0SLionel Sambuc$ GOSUB 'BUILDCOMMAND' 184ebfedea0SLionel Sambuc$! 185ebfedea0SLionel Sambuc$ ENDIF 186ebfedea0SLionel Sambuc$! 187ebfedea0SLionel Sambuc$! Time To EXIT. 188ebfedea0SLionel Sambuc$! 189ebfedea0SLionel Sambuc$ GOTO TIDY 190ebfedea0SLionel Sambuc$! 191ebfedea0SLionel Sambuc$! Rebuild The [.CRYPTO._xxx]OPENSSLCONF.H" file. 192ebfedea0SLionel Sambuc$! 193ebfedea0SLionel Sambuc$ CONFIG: 194ebfedea0SLionel Sambuc$! 195ebfedea0SLionel Sambuc$! Tell The User We Are Creating The [.CRYPTO._xxx]OPENSSLCONF.H File. 196ebfedea0SLionel Sambuc$! 197ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "Creating [.CRYPTO.''ARCHD']OPENSSLCONF.H Include File." 198ebfedea0SLionel Sambuc$! 199ebfedea0SLionel Sambuc$! First, make sure the directory exists. 200ebfedea0SLionel Sambuc$! 201ebfedea0SLionel Sambuc$ IF F$PARSE("SYS$DISK:[.CRYPTO.''ARCHD']") .EQS. "" THEN - 202ebfedea0SLionel Sambuc CREATE/DIRECTORY SYS$DISK:[.CRYPTO.'ARCHD'] 203ebfedea0SLionel Sambuc$! 204ebfedea0SLionel Sambuc$! Different tar/UnZip versions/option may have named the file differently 205ebfedea0SLionel Sambuc$ IF F$SEARCH("[.crypto]opensslconf.h_in") .NES. "" 206ebfedea0SLionel Sambuc$ THEN 207ebfedea0SLionel Sambuc$ OPENSSLCONF_H_IN = "[.crypto]opensslconf.h_in" 208ebfedea0SLionel Sambuc$ ELSE 209ebfedea0SLionel Sambuc$ IF F$SEARCH( "[.crypto]opensslconf_h.in") .NES. "" 210ebfedea0SLionel Sambuc$ THEN 211ebfedea0SLionel Sambuc$ OPENSSLCONF_H_IN = "[.crypto]opensslconf_h.in" 212ebfedea0SLionel Sambuc$ ELSE 213ebfedea0SLionel Sambuc$ ! For ODS-5 214ebfedea0SLionel Sambuc$ IF F$SEARCH( "[.crypto]opensslconf.h.in") .NES. "" 215ebfedea0SLionel Sambuc$ THEN 216ebfedea0SLionel Sambuc$ OPENSSLCONF_H_IN = "[.crypto]opensslconf.h.in" 217ebfedea0SLionel Sambuc$ ELSE 218ebfedea0SLionel Sambuc$ WRITE SYS$ERROR "Couldn't find a [.crypto]opensslconf.h.in. Exiting!" 219ebfedea0SLionel Sambuc$ $STATUS = %X00018294 ! "%RMS-F-FNF, file not found". 220ebfedea0SLionel Sambuc$ GOTO TIDY 221ebfedea0SLionel Sambuc$ ENDIF 222ebfedea0SLionel Sambuc$ ENDIF 223ebfedea0SLionel Sambuc$ ENDIF 224ebfedea0SLionel Sambuc$! 225ebfedea0SLionel Sambuc$! Create The [.CRYPTO._xxx]OPENSSLCONF.H File. 226ebfedea0SLionel Sambuc$! Make sure it has the right format. 227ebfedea0SLionel Sambuc$! 228ebfedea0SLionel Sambuc$ OSCH_NAME = "SYS$DISK:[.CRYPTO.''ARCHD']OPENSSLCONF.H" 229ebfedea0SLionel Sambuc$ CREATE /FDL=SYS$INPUT: 'OSCH_NAME' 230ebfedea0SLionel SambucRECORD 231ebfedea0SLionel Sambuc FORMAT stream_lf 232ebfedea0SLionel Sambuc$ OPEN /APPEND H_FILE 'OSCH_NAME' 233ebfedea0SLionel Sambuc$! 234ebfedea0SLionel Sambuc$! Write The [.CRYPTO._xxx]OPENSSLCONF.H File. 235ebfedea0SLionel Sambuc$! 236ebfedea0SLionel Sambuc$ WRITE H_FILE "/* This file was automatically built using makevms.com */" 237ebfedea0SLionel Sambuc$ WRITE H_FILE "/* and ''OPENSSLCONF_H_IN' */" 238ebfedea0SLionel Sambuc$! 239ebfedea0SLionel Sambuc$! Write a few macros that indicate how this system was built. 240ebfedea0SLionel Sambuc$! 241ebfedea0SLionel Sambuc$ WRITE H_FILE "" 242ebfedea0SLionel Sambuc$ WRITE H_FILE "#ifndef OPENSSL_SYS_VMS" 243ebfedea0SLionel Sambuc$ WRITE H_FILE "# define OPENSSL_SYS_VMS" 244ebfedea0SLionel Sambuc$ WRITE H_FILE "#endif" 245ebfedea0SLionel Sambuc$ 246ebfedea0SLionel Sambuc$! One of the best way to figure out what the list should be is to do 247ebfedea0SLionel Sambuc$! the following on a Unix system: 248ebfedea0SLionel Sambuc$! grep OPENSSL_NO_ crypto/*/*.h ssl/*.h engines/*.h engines/*/*.h|grep ':# *if'|sed -e 's/^.*def //'|sort|uniq 249ebfedea0SLionel Sambuc$! For that reason, the list will also always end up in alphabetical order 250ebfedea0SLionel Sambuc$ CONFIG_LOGICALS := AES,- 251ebfedea0SLionel Sambuc ASM,INLINE_ASM,- 252ebfedea0SLionel Sambuc BF,- 253ebfedea0SLionel Sambuc BIO,- 254ebfedea0SLionel Sambuc BUFFER,- 255ebfedea0SLionel Sambuc BUF_FREELISTS,- 256ebfedea0SLionel Sambuc CAMELLIA,- 257ebfedea0SLionel Sambuc CAST,- 258ebfedea0SLionel Sambuc CMS,- 259ebfedea0SLionel Sambuc COMP,- 260ebfedea0SLionel Sambuc DEPRECATED,- 261ebfedea0SLionel Sambuc DES,- 262ebfedea0SLionel Sambuc DGRAM,- 263ebfedea0SLionel Sambuc DH,- 264ebfedea0SLionel Sambuc DSA,- 265ebfedea0SLionel Sambuc EC,- 266ebfedea0SLionel Sambuc EC2M,- 267ebfedea0SLionel Sambuc ECDH,- 268ebfedea0SLionel Sambuc ECDSA,- 269ebfedea0SLionel Sambuc EC_NISTP_64_GCC_128,- 270ebfedea0SLionel Sambuc ENGINE,- 271ebfedea0SLionel Sambuc ERR,- 272ebfedea0SLionel Sambuc EVP,- 273ebfedea0SLionel Sambuc FP_API,- 274ebfedea0SLionel Sambuc GMP,- 275ebfedea0SLionel Sambuc GOST,- 276ebfedea0SLionel Sambuc HASH_COMP,- 277ebfedea0SLionel Sambuc HMAC,- 278ebfedea0SLionel Sambuc IDEA,- 279ebfedea0SLionel Sambuc JPAKE,- 280ebfedea0SLionel Sambuc KRB5,- 281ebfedea0SLionel Sambuc LHASH,- 282ebfedea0SLionel Sambuc MD2,- 283ebfedea0SLionel Sambuc MD4,- 284ebfedea0SLionel Sambuc MD5,- 285ebfedea0SLionel Sambuc MDC2,- 286*0a6a1f1dSLionel Sambuc NEXTPROTONEG,- 287ebfedea0SLionel Sambuc OCSP,- 288ebfedea0SLionel Sambuc PSK,- 289ebfedea0SLionel Sambuc RC2,- 290ebfedea0SLionel Sambuc RC4,- 291ebfedea0SLionel Sambuc RC5,- 292ebfedea0SLionel Sambuc RFC3779,- 293ebfedea0SLionel Sambuc RIPEMD,- 294ebfedea0SLionel Sambuc RSA,- 295ebfedea0SLionel Sambuc SEED,- 296ebfedea0SLionel Sambuc SHA,- 297ebfedea0SLionel Sambuc SHA0,- 298ebfedea0SLionel Sambuc SHA1,- 299ebfedea0SLionel Sambuc SHA256,- 300ebfedea0SLionel Sambuc SHA512,- 301ebfedea0SLionel Sambuc SOCK,- 302ebfedea0SLionel Sambuc SRP,- 303ebfedea0SLionel Sambuc SSL2,- 304ebfedea0SLionel Sambuc SSL_INTERN,- 305ebfedea0SLionel Sambuc STACK,- 306ebfedea0SLionel Sambuc STATIC_ENGINE,- 307ebfedea0SLionel Sambuc STDIO,- 308ebfedea0SLionel Sambuc STORE,- 309ebfedea0SLionel Sambuc TLSEXT,- 310ebfedea0SLionel Sambuc WHIRLPOOL,- 311ebfedea0SLionel Sambuc X509 312ebfedea0SLionel Sambuc$! Add a few that we know about 313ebfedea0SLionel Sambuc$ CONFIG_LOGICALS := 'CONFIG_LOGICALS',- 314ebfedea0SLionel Sambuc THREADS 315ebfedea0SLionel Sambuc$! The following rules, which dictate how some algorithm choices affect 316ebfedea0SLionel Sambuc$! others, are picked from Configure. 317ebfedea0SLionel Sambuc$! Quick syntax: 318ebfedea0SLionel Sambuc$! list = item[ ; list] 319ebfedea0SLionel Sambuc$! item = algos / dependents 320ebfedea0SLionel Sambuc$! algos = algo [, algos] 321ebfedea0SLionel Sambuc$! dependents = dependent [, dependents] 322ebfedea0SLionel Sambuc$! When a list of algos is specified in one item, it means that they must 323ebfedea0SLionel Sambuc$! all be disabled for the rule to apply. 324ebfedea0SLionel Sambuc$! When a list of dependents is specified in one item, it means that they 325ebfedea0SLionel Sambuc$! will all be disabled if the rule applies. 326ebfedea0SLionel Sambuc$! Rules are checked sequentially. If a rule disables an algorithm, it will 327ebfedea0SLionel Sambuc$! affect all following rules that depend on that algorithm being disabled. 328ebfedea0SLionel Sambuc$! To force something to be enabled or disabled, have no algorithms in the 329ebfedea0SLionel Sambuc$! algos part. 330ebfedea0SLionel Sambuc$ CONFIG_DISABLE_RULES := RIJNDAEL/AES;- 331ebfedea0SLionel Sambuc DES/MDC2;- 332ebfedea0SLionel Sambuc EC/ECDSA,ECDH;- 333ebfedea0SLionel Sambuc MD5/SSL2,SSL3,TLS1;- 334ebfedea0SLionel Sambuc SHA/SSL3,TLS1;- 335ebfedea0SLionel Sambuc RSA/SSL2;- 336ebfedea0SLionel Sambuc RSA,DSA/SSL2;- 337ebfedea0SLionel Sambuc DH/SSL3,TLS1;- 338ebfedea0SLionel Sambuc TLS1/TLSEXT;- 339ebfedea0SLionel Sambuc EC/GOST;- 340ebfedea0SLionel Sambuc DSA/GOST;- 341ebfedea0SLionel Sambuc DH/GOST;- 342ebfedea0SLionel Sambuc /STATIC_ENGINE;- 343ebfedea0SLionel Sambuc /KRB5;- 344*0a6a1f1dSLionel Sambuc /EC_NISTP_64_GCC_128;- 345*0a6a1f1dSLionel Sambuc /GMP;- 346*0a6a1f1dSLionel Sambuc /MD2;- 347*0a6a1f1dSLionel Sambuc /RC5;- 348*0a6a1f1dSLionel Sambuc /RFC3779;- 349*0a6a1f1dSLionel Sambuc /SCTP 350ebfedea0SLionel Sambuc$ CONFIG_ENABLE_RULES := ZLIB_DYNAMIC/ZLIB;- 351ebfedea0SLionel Sambuc /THREADS 352ebfedea0SLionel Sambuc$ 353ebfedea0SLionel Sambuc$! Architecture specific rule addtions 354ebfedea0SLionel Sambuc$ IF ARCH .EQS. "VAX" 355ebfedea0SLionel Sambuc$ THEN 356ebfedea0SLionel Sambuc$ ! Disable algorithms that require 64-bit integers in C 357ebfedea0SLionel Sambuc$ CONFIG_DISABLE_RULES = CONFIG_DISABLE_RULES + - 358ebfedea0SLionel Sambuc ";/GOST" + - 359ebfedea0SLionel Sambuc ";/WHIRLPOOL" 360ebfedea0SLionel Sambuc$ ENDIF 361ebfedea0SLionel Sambuc$ 362ebfedea0SLionel Sambuc$ CONFIG_LOG_I = 0 363ebfedea0SLionel Sambuc$ CONFIG_LOG_LOOP1: 364ebfedea0SLionel Sambuc$ CONFIG_LOG_E = F$EDIT(F$ELEMENT(CONFIG_LOG_I,",",CONFIG_LOGICALS),"TRIM") 365ebfedea0SLionel Sambuc$ CONFIG_LOG_I = CONFIG_LOG_I + 1 366ebfedea0SLionel Sambuc$ IF CONFIG_LOG_E .EQS. "" THEN GOTO CONFIG_LOG_LOOP1 367ebfedea0SLionel Sambuc$ IF CONFIG_LOG_E .EQS. "," THEN GOTO CONFIG_LOG_LOOP1_END 368ebfedea0SLionel Sambuc$ IF F$TRNLNM("OPENSSL_NO_"+CONFIG_LOG_E) 369ebfedea0SLionel Sambuc$ THEN 370ebfedea0SLionel Sambuc$ CONFIG_DISABLED_'CONFIG_LOG_E' := YES 371ebfedea0SLionel Sambuc$ CONFIG_ENABLED_'CONFIG_LOG_E' := NO 372ebfedea0SLionel Sambuc$ CONFIG_CHANGED_'CONFIG_LOG_E' := YES 373ebfedea0SLionel Sambuc$ ELSE 374ebfedea0SLionel Sambuc$ CONFIG_DISABLED_'CONFIG_LOG_E' := NO 375ebfedea0SLionel Sambuc$ CONFIG_ENABLED_'CONFIG_LOG_E' := YES 376ebfedea0SLionel Sambuc$ ! Because all algorithms are assumed enabled by default 377ebfedea0SLionel Sambuc$ CONFIG_CHANGED_'CONFIG_LOG_E' := NO 378ebfedea0SLionel Sambuc$ ENDIF 379ebfedea0SLionel Sambuc$ GOTO CONFIG_LOG_LOOP1 380ebfedea0SLionel Sambuc$ CONFIG_LOG_LOOP1_END: 381ebfedea0SLionel Sambuc$ 382ebfedea0SLionel Sambuc$! Apply cascading disable rules 383ebfedea0SLionel Sambuc$ CONFIG_DISABLE_I = 0 384ebfedea0SLionel Sambuc$ CONFIG_DISABLE_LOOP0: 385ebfedea0SLionel Sambuc$ CONFIG_DISABLE_E = F$EDIT(F$ELEMENT(CONFIG_DISABLE_I,";", - 386ebfedea0SLionel Sambuc CONFIG_DISABLE_RULES),"TRIM") 387ebfedea0SLionel Sambuc$ CONFIG_DISABLE_I = CONFIG_DISABLE_I + 1 388ebfedea0SLionel Sambuc$ IF CONFIG_DISABLE_E .EQS. "" THEN GOTO CONFIG_DISABLE_LOOP0 389ebfedea0SLionel Sambuc$ IF CONFIG_DISABLE_E .EQS. ";" THEN GOTO CONFIG_DISABLE_LOOP0_END 390ebfedea0SLionel Sambuc$ 391ebfedea0SLionel Sambuc$ CONFIG_DISABLE_ALGOS = F$EDIT(F$ELEMENT(0,"/",CONFIG_DISABLE_E),"TRIM") 392ebfedea0SLionel Sambuc$ CONFIG_DISABLE_DEPENDENTS = F$EDIT(F$ELEMENT(1,"/",CONFIG_DISABLE_E),"TRIM") 393ebfedea0SLionel Sambuc$ TO_DISABLE := YES 394ebfedea0SLionel Sambuc$ CONFIG_ALGO_I = 0 395ebfedea0SLionel Sambuc$ CONFIG_DISABLE_LOOP1: 396ebfedea0SLionel Sambuc$ CONFIG_ALGO_E = F$EDIT(F$ELEMENT(CONFIG_ALGO_I,",", - 397ebfedea0SLionel Sambuc CONFIG_DISABLE_ALGOS),"TRIM") 398ebfedea0SLionel Sambuc$ CONFIG_ALGO_I = CONFIG_ALGO_I + 1 399ebfedea0SLionel Sambuc$ IF CONFIG_ALGO_E .EQS. "" THEN GOTO CONFIG_DISABLE_LOOP1 400ebfedea0SLionel Sambuc$ IF CONFIG_ALGO_E .EQS. "," THEN GOTO CONFIG_DISABLE_LOOP1_END 401ebfedea0SLionel Sambuc$ IF F$TYPE(CONFIG_DISABLED_'CONFIG_ALGO_E') .EQS. "" 402ebfedea0SLionel Sambuc$ THEN 403ebfedea0SLionel Sambuc$ TO_DISABLE := NO 404ebfedea0SLionel Sambuc$ ELSE 405ebfedea0SLionel Sambuc$ IF .NOT. CONFIG_DISABLED_'CONFIG_ALGO_E' THEN TO_DISABLE := NO 406ebfedea0SLionel Sambuc$ ENDIF 407ebfedea0SLionel Sambuc$ GOTO CONFIG_DISABLE_LOOP1 408ebfedea0SLionel Sambuc$ CONFIG_DISABLE_LOOP1_END: 409ebfedea0SLionel Sambuc$ 410ebfedea0SLionel Sambuc$ IF TO_DISABLE 411ebfedea0SLionel Sambuc$ THEN 412ebfedea0SLionel Sambuc$ CONFIG_DEPENDENT_I = 0 413ebfedea0SLionel Sambuc$ CONFIG_DISABLE_LOOP2: 414ebfedea0SLionel Sambuc$ CONFIG_DEPENDENT_E = F$EDIT(F$ELEMENT(CONFIG_DEPENDENT_I,",", - 415ebfedea0SLionel Sambuc CONFIG_DISABLE_DEPENDENTS),"TRIM") 416ebfedea0SLionel Sambuc$ CONFIG_DEPENDENT_I = CONFIG_DEPENDENT_I + 1 417ebfedea0SLionel Sambuc$ IF CONFIG_DEPENDENT_E .EQS. "" THEN GOTO CONFIG_DISABLE_LOOP2 418ebfedea0SLionel Sambuc$ IF CONFIG_DEPENDENT_E .EQS. "," THEN GOTO CONFIG_DISABLE_LOOP2_END 419ebfedea0SLionel Sambuc$ CONFIG_DISABLED_'CONFIG_DEPENDENT_E' := YES 420ebfedea0SLionel Sambuc$ CONFIG_ENABLED_'CONFIG_DEPENDENT_E' := NO 421ebfedea0SLionel Sambuc$ ! Better not to assume defaults at this point... 422ebfedea0SLionel Sambuc$ CONFIG_CHANGED_'CONFIG_DEPENDENT_E' := YES 423ebfedea0SLionel Sambuc$ WRITE SYS$ERROR - 424ebfedea0SLionel Sambuc "''CONFIG_DEPENDENT_E' disabled by rule ''CONFIG_DISABLE_E'" 425ebfedea0SLionel Sambuc$ GOTO CONFIG_DISABLE_LOOP2 426ebfedea0SLionel Sambuc$ CONFIG_DISABLE_LOOP2_END: 427ebfedea0SLionel Sambuc$ ENDIF 428ebfedea0SLionel Sambuc$ GOTO CONFIG_DISABLE_LOOP0 429ebfedea0SLionel Sambuc$ CONFIG_DISABLE_LOOP0_END: 430ebfedea0SLionel Sambuc$ 431ebfedea0SLionel Sambuc$! Apply cascading enable rules 432ebfedea0SLionel Sambuc$ CONFIG_ENABLE_I = 0 433ebfedea0SLionel Sambuc$ CONFIG_ENABLE_LOOP0: 434ebfedea0SLionel Sambuc$ CONFIG_ENABLE_E = F$EDIT(F$ELEMENT(CONFIG_ENABLE_I,";", - 435ebfedea0SLionel Sambuc CONFIG_ENABLE_RULES),"TRIM") 436ebfedea0SLionel Sambuc$ CONFIG_ENABLE_I = CONFIG_ENABLE_I + 1 437ebfedea0SLionel Sambuc$ IF CONFIG_ENABLE_E .EQS. "" THEN GOTO CONFIG_ENABLE_LOOP0 438ebfedea0SLionel Sambuc$ IF CONFIG_ENABLE_E .EQS. ";" THEN GOTO CONFIG_ENABLE_LOOP0_END 439ebfedea0SLionel Sambuc$ 440ebfedea0SLionel Sambuc$ CONFIG_ENABLE_ALGOS = F$EDIT(F$ELEMENT(0,"/",CONFIG_ENABLE_E),"TRIM") 441ebfedea0SLionel Sambuc$ CONFIG_ENABLE_DEPENDENTS = F$EDIT(F$ELEMENT(1,"/",CONFIG_ENABLE_E),"TRIM") 442ebfedea0SLionel Sambuc$ TO_ENABLE := YES 443ebfedea0SLionel Sambuc$ CONFIG_ALGO_I = 0 444ebfedea0SLionel Sambuc$ CONFIG_ENABLE_LOOP1: 445ebfedea0SLionel Sambuc$ CONFIG_ALGO_E = F$EDIT(F$ELEMENT(CONFIG_ALGO_I,",", - 446ebfedea0SLionel Sambuc CONFIG_ENABLE_ALGOS),"TRIM") 447ebfedea0SLionel Sambuc$ CONFIG_ALGO_I = CONFIG_ALGO_I + 1 448ebfedea0SLionel Sambuc$ IF CONFIG_ALGO_E .EQS. "" THEN GOTO CONFIG_ENABLE_LOOP1 449ebfedea0SLionel Sambuc$ IF CONFIG_ALGO_E .EQS. "," THEN GOTO CONFIG_ENABLE_LOOP1_END 450ebfedea0SLionel Sambuc$ IF F$TYPE(CONFIG_ENABLED_'CONFIG_ALGO_E') .EQS. "" 451ebfedea0SLionel Sambuc$ THEN 452ebfedea0SLionel Sambuc$ TO_ENABLE := NO 453ebfedea0SLionel Sambuc$ ELSE 454ebfedea0SLionel Sambuc$ IF .NOT. CONFIG_ENABLED_'CONFIG_ALGO_E' THEN TO_ENABLE := NO 455ebfedea0SLionel Sambuc$ ENDIF 456ebfedea0SLionel Sambuc$ GOTO CONFIG_ENABLE_LOOP1 457ebfedea0SLionel Sambuc$ CONFIG_ENABLE_LOOP1_END: 458ebfedea0SLionel Sambuc$ 459ebfedea0SLionel Sambuc$ IF TO_ENABLE 460ebfedea0SLionel Sambuc$ THEN 461ebfedea0SLionel Sambuc$ CONFIG_DEPENDENT_I = 0 462ebfedea0SLionel Sambuc$ CONFIG_ENABLE_LOOP2: 463ebfedea0SLionel Sambuc$ CONFIG_DEPENDENT_E = F$EDIT(F$ELEMENT(CONFIG_DEPENDENT_I,",", - 464ebfedea0SLionel Sambuc CONFIG_ENABLE_DEPENDENTS),"TRIM") 465ebfedea0SLionel Sambuc$ CONFIG_DEPENDENT_I = CONFIG_DEPENDENT_I + 1 466ebfedea0SLionel Sambuc$ IF CONFIG_DEPENDENT_E .EQS. "" THEN GOTO CONFIG_ENABLE_LOOP2 467ebfedea0SLionel Sambuc$ IF CONFIG_DEPENDENT_E .EQS. "," THEN GOTO CONFIG_ENABLE_LOOP2_END 468ebfedea0SLionel Sambuc$ CONFIG_DISABLED_'CONFIG_DEPENDENT_E' := NO 469ebfedea0SLionel Sambuc$ CONFIG_ENABLED_'CONFIG_DEPENDENT_E' := YES 470ebfedea0SLionel Sambuc$ ! Better not to assume defaults at this point... 471ebfedea0SLionel Sambuc$ CONFIG_CHANGED_'CONFIG_DEPENDENT_E' := YES 472ebfedea0SLionel Sambuc$ WRITE SYS$ERROR - 473ebfedea0SLionel Sambuc "''CONFIG_DEPENDENT_E' enabled by rule ''CONFIG_ENABLE_E'" 474ebfedea0SLionel Sambuc$ GOTO CONFIG_ENABLE_LOOP2 475ebfedea0SLionel Sambuc$ CONFIG_ENABLE_LOOP2_END: 476ebfedea0SLionel Sambuc$ ENDIF 477ebfedea0SLionel Sambuc$ GOTO CONFIG_ENABLE_LOOP0 478ebfedea0SLionel Sambuc$ CONFIG_ENABLE_LOOP0_END: 479ebfedea0SLionel Sambuc$ 480ebfedea0SLionel Sambuc$! Write to the configuration 481ebfedea0SLionel Sambuc$ CONFIG_LOG_I = 0 482ebfedea0SLionel Sambuc$ CONFIG_LOG_LOOP2: 483ebfedea0SLionel Sambuc$ CONFIG_LOG_E = F$EDIT(F$ELEMENT(CONFIG_LOG_I,",",CONFIG_LOGICALS),"TRIM") 484ebfedea0SLionel Sambuc$ CONFIG_LOG_I = CONFIG_LOG_I + 1 485ebfedea0SLionel Sambuc$ IF CONFIG_LOG_E .EQS. "" THEN GOTO CONFIG_LOG_LOOP2 486ebfedea0SLionel Sambuc$ IF CONFIG_LOG_E .EQS. "," THEN GOTO CONFIG_LOG_LOOP2_END 487ebfedea0SLionel Sambuc$ IF CONFIG_CHANGED_'CONFIG_LOG_E' 488ebfedea0SLionel Sambuc$ THEN 489ebfedea0SLionel Sambuc$ IF CONFIG_DISABLED_'CONFIG_LOG_E' 490ebfedea0SLionel Sambuc$ THEN 491ebfedea0SLionel Sambuc$ WRITE H_FILE "#ifndef OPENSSL_NO_",CONFIG_LOG_E 492ebfedea0SLionel Sambuc$ WRITE H_FILE "# define OPENSSL_NO_",CONFIG_LOG_E 493ebfedea0SLionel Sambuc$ WRITE H_FILE "#endif" 494ebfedea0SLionel Sambuc$ ELSE 495ebfedea0SLionel Sambuc$ WRITE H_FILE "#ifndef OPENSSL_",CONFIG_LOG_E 496ebfedea0SLionel Sambuc$ WRITE H_FILE "# define OPENSSL_",CONFIG_LOG_E 497ebfedea0SLionel Sambuc$ WRITE H_FILE "#endif" 498ebfedea0SLionel Sambuc$ ENDIF 499ebfedea0SLionel Sambuc$ ENDIF 500ebfedea0SLionel Sambuc$ GOTO CONFIG_LOG_LOOP2 501ebfedea0SLionel Sambuc$ CONFIG_LOG_LOOP2_END: 502ebfedea0SLionel Sambuc$! 503ebfedea0SLionel Sambuc$ WRITE H_FILE "" 504ebfedea0SLionel Sambuc$ WRITE H_FILE "/* 2011-02-23 SMS." 505ebfedea0SLionel Sambuc$ WRITE H_FILE " * On VMS (V8.3), setvbuf() doesn't support a 64-bit" 506ebfedea0SLionel Sambuc$ WRITE H_FILE " * ""in"" pointer, and the help says:" 507ebfedea0SLionel Sambuc$ WRITE H_FILE " * Please note that the previously documented" 508ebfedea0SLionel Sambuc$ WRITE H_FILE " * value _IONBF is not supported." 509ebfedea0SLionel Sambuc$ WRITE H_FILE " * So, skip it on VMS." 510ebfedea0SLionel Sambuc$ WRITE H_FILE " */" 511ebfedea0SLionel Sambuc$ WRITE H_FILE "#define OPENSSL_NO_SETVBUF_IONBF" 512ebfedea0SLionel Sambuc$ WRITE H_FILE "/* STCP support comes with TCPIP 5.7 ECO 2 " 513ebfedea0SLionel Sambuc$ WRITE H_FILE " * enable on newer systems / 2012-02-24 arpadffy */" 514ebfedea0SLionel Sambuc$ WRITE H_FILE "#define OPENSSL_NO_SCTP" 515ebfedea0SLionel Sambuc$ WRITE H_FILE "" 516ebfedea0SLionel Sambuc$! 517ebfedea0SLionel Sambuc$! Add in the common "crypto/opensslconf.h.in". 518ebfedea0SLionel Sambuc$! 519ebfedea0SLionel Sambuc$ TYPE 'OPENSSLCONF_H_IN' /OUTPUT=H_FILE: 520ebfedea0SLionel Sambuc$! 521ebfedea0SLionel Sambuc$ IF ARCH .NES. "VAX" 522ebfedea0SLionel Sambuc$ THEN 523ebfedea0SLionel Sambuc$! 524ebfedea0SLionel Sambuc$! Write the non-VAX specific data 525ebfedea0SLionel Sambuc$! 526ebfedea0SLionel Sambuc$ WRITE H_FILE "#if defined(HEADER_RC4_H)" 527ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef RC4_INT" 528ebfedea0SLionel Sambuc$ WRITE H_FILE "#define RC4_INT unsigned int" 529ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef RC4_CHUNK" 530ebfedea0SLionel Sambuc$ WRITE H_FILE "#define RC4_CHUNK unsigned long long" 531ebfedea0SLionel Sambuc$ WRITE H_FILE "#endif" 532ebfedea0SLionel Sambuc$! 533ebfedea0SLionel Sambuc$ WRITE H_FILE "#if defined(HEADER_DES_LOCL_H)" 534ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef DES_LONG" 535ebfedea0SLionel Sambuc$ WRITE H_FILE "#define DES_LONG unsigned int" 536ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef DES_PTR" 537ebfedea0SLionel Sambuc$ WRITE H_FILE "#define DES_PTR" 538ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef DES_RISC1" 539ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef DES_RISC2" 540ebfedea0SLionel Sambuc$ WRITE H_FILE "#define DES_RISC1" 541ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef DES_UNROLL" 542ebfedea0SLionel Sambuc$ WRITE H_FILE "#define DES_UNROLL" 543ebfedea0SLionel Sambuc$ WRITE H_FILE "#endif" 544ebfedea0SLionel Sambuc$! 545ebfedea0SLionel Sambuc$ WRITE H_FILE "#if defined(HEADER_BN_H)" 546ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef BN_LLONG" ! Never define with SIXTY_FOUR_BIT 547ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef SIXTY_FOUR_BIT_LONG" 548ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef SIXTY_FOUR_BIT" 549ebfedea0SLionel Sambuc$ WRITE H_FILE "#define SIXTY_FOUR_BIT" 550ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef THIRTY_TWO_BIT" 551ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef SIXTEEN_BIT" 552ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef EIGHT_BIT" 553ebfedea0SLionel Sambuc$ WRITE H_FILE "#endif" 554ebfedea0SLionel Sambuc$ 555ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef OPENSSL_EXPORT_VAR_AS_FUNCTION" 556ebfedea0SLionel Sambuc$! 557ebfedea0SLionel Sambuc$! Else... 558ebfedea0SLionel Sambuc$! 559ebfedea0SLionel Sambuc$ ELSE 560ebfedea0SLionel Sambuc$! 561ebfedea0SLionel Sambuc$! Write the VAX specific data 562ebfedea0SLionel Sambuc$! 563ebfedea0SLionel Sambuc$ WRITE H_FILE "#if defined(HEADER_RC4_H)" 564ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef RC4_INT" 565ebfedea0SLionel Sambuc$ WRITE H_FILE "#define RC4_INT unsigned char" 566ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef RC4_CHUNK" 567ebfedea0SLionel Sambuc$ WRITE H_FILE "#define RC4_CHUNK unsigned long" 568ebfedea0SLionel Sambuc$ WRITE H_FILE "#endif" 569ebfedea0SLionel Sambuc$! 570ebfedea0SLionel Sambuc$ WRITE H_FILE "#if defined(HEADER_DES_LOCL_H)" 571ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef DES_LONG" 572ebfedea0SLionel Sambuc$ WRITE H_FILE "#define DES_LONG unsigned long" 573ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef DES_PTR" 574ebfedea0SLionel Sambuc$ WRITE H_FILE "#define DES_PTR" 575ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef DES_RISC1" 576ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef DES_RISC2" 577ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef DES_UNROLL" 578ebfedea0SLionel Sambuc$ WRITE H_FILE "#endif" 579ebfedea0SLionel Sambuc$! 580ebfedea0SLionel Sambuc$ WRITE H_FILE "#if defined(HEADER_BN_H)" 581ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef BN_LLONG" ! VAX C/DEC C doesn't have long long 582ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef SIXTY_FOUR_BIT_LONG" 583ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef SIXTY_FOUR_BIT" 584ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef THIRTY_TWO_BIT" 585ebfedea0SLionel Sambuc$ WRITE H_FILE "#define THIRTY_TWO_BIT" 586ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef SIXTEEN_BIT" 587ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef EIGHT_BIT" 588ebfedea0SLionel Sambuc$ WRITE H_FILE "#endif" 589ebfedea0SLionel Sambuc$! 590ebfedea0SLionel Sambuc$! Oddly enough, the following symbol is tested in crypto/sha/sha512.c 591ebfedea0SLionel Sambuc$! before sha.h gets included (and HEADER_SHA_H defined), so we will not 592ebfedea0SLionel Sambuc$! protect this one... 593ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef OPENSSL_NO_SHA512" 594ebfedea0SLionel Sambuc$ WRITE H_FILE "#define OPENSSL_NO_SHA512" 595ebfedea0SLionel Sambuc$! 596ebfedea0SLionel Sambuc$ WRITE H_FILE "#undef OPENSSL_EXPORT_VAR_AS_FUNCTION" 597ebfedea0SLionel Sambuc$ WRITE H_FILE "#define OPENSSL_EXPORT_VAR_AS_FUNCTION" 598ebfedea0SLionel Sambuc$! 599ebfedea0SLionel Sambuc$! End 600ebfedea0SLionel Sambuc$! 601ebfedea0SLionel Sambuc$ ENDIF 602ebfedea0SLionel Sambuc$! 603ebfedea0SLionel Sambuc$! Close the [.CRYPTO._xxx]OPENSSLCONF.H file 604ebfedea0SLionel Sambuc$! 605ebfedea0SLionel Sambuc$ CLOSE H_FILE 606ebfedea0SLionel Sambuc$! 607ebfedea0SLionel Sambuc$! Purge The [.CRYPTO._xxx]OPENSSLCONF.H file 608ebfedea0SLionel Sambuc$! 609ebfedea0SLionel Sambuc$ PURGE SYS$DISK:[.CRYPTO.'ARCHD']OPENSSLCONF.H 610ebfedea0SLionel Sambuc$! 611ebfedea0SLionel Sambuc$! That's All, Time To RETURN. 612ebfedea0SLionel Sambuc$! 613ebfedea0SLionel Sambuc$ RETURN 614ebfedea0SLionel Sambuc$! 615ebfedea0SLionel Sambuc$! Rebuild The "[.CRYPTO._xxx]BUILDINF.H" file. 616ebfedea0SLionel Sambuc$! 617ebfedea0SLionel Sambuc$ BUILDINF: 618ebfedea0SLionel Sambuc$! 619ebfedea0SLionel Sambuc$! Tell The User We Are Creating The [.CRYPTO._xxx]BUILDINF.H File. 620ebfedea0SLionel Sambuc$! 621ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "Creating [.CRYPTO.''ARCHD']BUILDINF.H Include File." 622ebfedea0SLionel Sambuc$! 623ebfedea0SLionel Sambuc$! Create The [.CRYPTO._xxx]BUILDINF.H File. 624ebfedea0SLionel Sambuc$! 625ebfedea0SLionel Sambuc$ BIH_NAME = "SYS$DISK:[.CRYPTO.''ARCHD']BUILDINF.H" 626ebfedea0SLionel Sambuc$ CREATE /FDL=SYS$INPUT: 'BIH_NAME' 627ebfedea0SLionel SambucRECORD 628ebfedea0SLionel Sambuc FORMAT stream_lf 629ebfedea0SLionel Sambuc$! 630ebfedea0SLionel Sambuc$ OPEN /APPEND H_FILE 'bih_name' 631ebfedea0SLionel Sambuc$! 632ebfedea0SLionel Sambuc$! Get The Current Date & Time. 633ebfedea0SLionel Sambuc$! 634ebfedea0SLionel Sambuc$ TIME = F$TIME() 635ebfedea0SLionel Sambuc$! 636ebfedea0SLionel Sambuc$! Write The [.CRYPTO._xxx]BUILDINF.H File. 637ebfedea0SLionel Sambuc$! 638ebfedea0SLionel Sambuc$ CFLAGS = "" 639ebfedea0SLionel Sambuc$ if (POINTER_SIZE .nes. "") 640ebfedea0SLionel Sambuc$ then 641ebfedea0SLionel Sambuc$ CFLAGS = CFLAGS+ "/POINTER_SIZE=''POINTER_SIZE'" 642ebfedea0SLionel Sambuc$ endif 643ebfedea0SLionel Sambuc$ if (ZLIB .nes. "") 644ebfedea0SLionel Sambuc$ then 645ebfedea0SLionel Sambuc$ if (CFLAGS .nes. "") then CFLAGS = CFLAGS+ " " 646ebfedea0SLionel Sambuc$ CFLAGS = CFLAGS+ "/DEFINE=ZLIB" 647ebfedea0SLionel Sambuc$ endif 648ebfedea0SLionel Sambuc$! 649*0a6a1f1dSLionel Sambuc$ WRITE H_FILE "#define CFLAGS cflags" 650*0a6a1f1dSLionel Sambuc$ WRITE H_FILE "static const char cflags[] = ""compiler: ''CFLAGS'"";" 651*0a6a1f1dSLionel Sambuc$ WRITE H_FILE "#define PLATFORM ""platform: VMS ''ARCHD' ''VMS_VERSION'""" 652*0a6a1f1dSLionel Sambuc$ WRITE H_FILE "#define DATE ""built on: ''TIME'"" " 653ebfedea0SLionel Sambuc$! 654ebfedea0SLionel Sambuc$! Close The [.CRYPTO._xxx]BUILDINF.H File. 655ebfedea0SLionel Sambuc$! 656ebfedea0SLionel Sambuc$ CLOSE H_FILE 657ebfedea0SLionel Sambuc$! 658ebfedea0SLionel Sambuc$! Purge The [.CRYPTO._xxx]BUILDINF.H File. 659ebfedea0SLionel Sambuc$! 660ebfedea0SLionel Sambuc$ PURGE SYS$DISK:[.CRYPTO.'ARCHD']BUILDINF.H 661ebfedea0SLionel Sambuc$! 662ebfedea0SLionel Sambuc$! Delete [.CRYPTO]BUILDINF.H File, as there might be some residue from Unix. 663ebfedea0SLionel Sambuc$! 664ebfedea0SLionel Sambuc$ IF F$SEARCH("[.CRYPTO]BUILDINF.H") .NES. "" THEN - 665ebfedea0SLionel Sambuc DELETE SYS$DISK:[.CRYPTO]BUILDINF.H;* 666ebfedea0SLionel Sambuc$! 667ebfedea0SLionel Sambuc$! That's All, Time To RETURN. 668ebfedea0SLionel Sambuc$! 669ebfedea0SLionel Sambuc$ RETURN 670ebfedea0SLionel Sambuc$! 671ebfedea0SLionel Sambuc$! Copy a lot of files around. 672ebfedea0SLionel Sambuc$! 673ebfedea0SLionel Sambuc$ SOFTLINKS: 674ebfedea0SLionel Sambuc$! 675ebfedea0SLionel Sambuc$!!!! Tell The User We Are Partly Rebuilding The [.APPS] Directory. 676ebfedea0SLionel Sambuc$!!!! 677ebfedea0SLionel Sambuc$!!! WRITE SYS$OUTPUT "Rebuilding The '[.APPS]MD4.C' File." 678ebfedea0SLionel Sambuc$!!!! 679ebfedea0SLionel Sambuc$!!! DELETE SYS$DISK:[.APPS]MD4.C;* 680ebfedea0SLionel Sambuc$!!!! 681ebfedea0SLionel Sambuc$!!!! Copy MD4.C from [.CRYPTO.MD4] into [.APPS] 682ebfedea0SLionel Sambuc$!!!! 683ebfedea0SLionel Sambuc$!!! COPY SYS$DISK:[.CRYPTO.MD4]MD4.C SYS$DISK:[.APPS] 684ebfedea0SLionel Sambuc$! 685ebfedea0SLionel Sambuc$! Ensure that the [.include.openssl] directory contains a full set of 686ebfedea0SLionel Sambuc$! real header files. The distribution kit may have left real or fake 687ebfedea0SLionel Sambuc$! symlinks there. Rather than think about what's there, simply delete 688ebfedea0SLionel Sambuc$! the destination files (fake or real symlinks) before copying the real 689ebfedea0SLionel Sambuc$! header files in. (Copying a real header file onto a real symlink 690ebfedea0SLionel Sambuc$! merely duplicates the real header file at its source.) 691ebfedea0SLionel Sambuc$! 692ebfedea0SLionel Sambuc$! Tell The User We Are Rebuilding The [.include.openssl] Directory. 693ebfedea0SLionel Sambuc$! 694ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "Rebuilding The '[.include.openssl]' Directory." 695ebfedea0SLionel Sambuc$! 696ebfedea0SLionel Sambuc$! First, make sure the directory exists. If it did exist, delete all 697ebfedea0SLionel Sambuc$! the existing header files (or fake or real symlinks). 698ebfedea0SLionel Sambuc$! 699ebfedea0SLionel Sambuc$ if f$parse( "sys$disk:[.include.openssl]") .eqs. "" 700ebfedea0SLionel Sambuc$ then 701ebfedea0SLionel Sambuc$ create /directory sys$disk:[.include.openssl] 702ebfedea0SLionel Sambuc$ else 703ebfedea0SLionel Sambuc$ delete sys$disk:[.include.openssl]*.h;* 704ebfedea0SLionel Sambuc$ endif 705ebfedea0SLionel Sambuc$! 706ebfedea0SLionel Sambuc$! Copy All The ".H" Files From The Main Directory. 707ebfedea0SLionel Sambuc$! 708ebfedea0SLionel Sambuc$ EXHEADER := e_os2.h 709ebfedea0SLionel Sambuc$ copy 'exheader' sys$disk:[.include.openssl] 710ebfedea0SLionel Sambuc$! 711ebfedea0SLionel Sambuc$! Copy All The ".H" Files From The [.CRYPTO] Directory Tree. 712ebfedea0SLionel Sambuc$! 713ebfedea0SLionel Sambuc$ SDIRS := , - 714ebfedea0SLionel Sambuc 'ARCHD', - 715ebfedea0SLionel Sambuc OBJECTS, - 716*0a6a1f1dSLionel Sambuc MD4, MD5, SHA, MDC2, HMAC, RIPEMD, WHRLPOOL, - 717*0a6a1f1dSLionel Sambuc DES, AES, RC2, RC4, IDEA, BF, CAST, CAMELLIA, SEED, MODES, - 718ebfedea0SLionel Sambuc BN, EC, RSA, DSA, ECDSA, DH, ECDH, DSO, ENGINE, - 719ebfedea0SLionel Sambuc BUFFER, BIO, STACK, LHASH, RAND, ERR, - 720ebfedea0SLionel Sambuc EVP, ASN1, PEM, X509, X509V3, CONF, TXT_DB, PKCS7, PKCS12, - 721ebfedea0SLionel Sambuc COMP, OCSP, UI, KRB5, - 722ebfedea0SLionel Sambuc CMS, PQUEUE, TS, JPAKE, SRP, STORE, CMAC 723ebfedea0SLionel Sambuc$! 724ebfedea0SLionel Sambuc$ EXHEADER_ := crypto.h, opensslv.h, ebcdic.h, symhacks.h, ossl_typ.h 725ebfedea0SLionel Sambuc$ EXHEADER_'ARCHD' := opensslconf.h 726ebfedea0SLionel Sambuc$ EXHEADER_OBJECTS := objects.h, obj_mac.h 727ebfedea0SLionel Sambuc$ EXHEADER_MD2 := md2.h 728ebfedea0SLionel Sambuc$ EXHEADER_MD4 := md4.h 729ebfedea0SLionel Sambuc$ EXHEADER_MD5 := md5.h 730ebfedea0SLionel Sambuc$ EXHEADER_SHA := sha.h 731ebfedea0SLionel Sambuc$ EXHEADER_MDC2 := mdc2.h 732ebfedea0SLionel Sambuc$ EXHEADER_HMAC := hmac.h 733ebfedea0SLionel Sambuc$ EXHEADER_RIPEMD := ripemd.h 734ebfedea0SLionel Sambuc$ EXHEADER_WHRLPOOL := whrlpool.h 735ebfedea0SLionel Sambuc$ EXHEADER_DES := des.h, des_old.h 736ebfedea0SLionel Sambuc$ EXHEADER_AES := aes.h 737ebfedea0SLionel Sambuc$ EXHEADER_RC2 := rc2.h 738ebfedea0SLionel Sambuc$ EXHEADER_RC4 := rc4.h 739ebfedea0SLionel Sambuc$ EXHEADER_RC5 := rc5.h 740ebfedea0SLionel Sambuc$ EXHEADER_IDEA := idea.h 741ebfedea0SLionel Sambuc$ EXHEADER_BF := blowfish.h 742ebfedea0SLionel Sambuc$ EXHEADER_CAST := cast.h 743ebfedea0SLionel Sambuc$ EXHEADER_CAMELLIA := camellia.h 744ebfedea0SLionel Sambuc$ EXHEADER_SEED := seed.h 745ebfedea0SLionel Sambuc$ EXHEADER_MODES := modes.h 746ebfedea0SLionel Sambuc$ EXHEADER_BN := bn.h 747ebfedea0SLionel Sambuc$ EXHEADER_EC := ec.h 748ebfedea0SLionel Sambuc$ EXHEADER_RSA := rsa.h 749ebfedea0SLionel Sambuc$ EXHEADER_DSA := dsa.h 750ebfedea0SLionel Sambuc$ EXHEADER_ECDSA := ecdsa.h 751ebfedea0SLionel Sambuc$ EXHEADER_DH := dh.h 752ebfedea0SLionel Sambuc$ EXHEADER_ECDH := ecdh.h 753ebfedea0SLionel Sambuc$ EXHEADER_DSO := dso.h 754ebfedea0SLionel Sambuc$ EXHEADER_ENGINE := engine.h 755ebfedea0SLionel Sambuc$ EXHEADER_BUFFER := buffer.h 756ebfedea0SLionel Sambuc$ EXHEADER_BIO := bio.h 757ebfedea0SLionel Sambuc$ EXHEADER_STACK := stack.h, safestack.h 758ebfedea0SLionel Sambuc$ EXHEADER_LHASH := lhash.h 759ebfedea0SLionel Sambuc$ EXHEADER_RAND := rand.h 760ebfedea0SLionel Sambuc$ EXHEADER_ERR := err.h 761ebfedea0SLionel Sambuc$ EXHEADER_EVP := evp.h 762ebfedea0SLionel Sambuc$ EXHEADER_ASN1 := asn1.h, asn1_mac.h, asn1t.h 763ebfedea0SLionel Sambuc$ EXHEADER_PEM := pem.h, pem2.h 764ebfedea0SLionel Sambuc$ EXHEADER_X509 := x509.h, x509_vfy.h 765ebfedea0SLionel Sambuc$ EXHEADER_X509V3 := x509v3.h 766ebfedea0SLionel Sambuc$ EXHEADER_CONF := conf.h, conf_api.h 767ebfedea0SLionel Sambuc$ EXHEADER_TXT_DB := txt_db.h 768ebfedea0SLionel Sambuc$ EXHEADER_PKCS7 := pkcs7.h 769ebfedea0SLionel Sambuc$ EXHEADER_PKCS12 := pkcs12.h 770ebfedea0SLionel Sambuc$ EXHEADER_COMP := comp.h 771ebfedea0SLionel Sambuc$ EXHEADER_OCSP := ocsp.h 772ebfedea0SLionel Sambuc$ EXHEADER_UI := ui.h, ui_compat.h 773ebfedea0SLionel Sambuc$ EXHEADER_KRB5 := krb5_asn.h 774ebfedea0SLionel Sambuc$ EXHEADER_CMS := cms.h 775ebfedea0SLionel Sambuc$ EXHEADER_PQUEUE := pqueue.h 776ebfedea0SLionel Sambuc$ EXHEADER_TS := ts.h 777ebfedea0SLionel Sambuc$ EXHEADER_JPAKE := jpake.h 778ebfedea0SLionel Sambuc$ EXHEADER_SRP := srp.h 779ebfedea0SLionel Sambuc$!!! EXHEADER_STORE := store.h, str_compat.h 780ebfedea0SLionel Sambuc$ EXHEADER_STORE := store.h 781ebfedea0SLionel Sambuc$ EXHEADER_CMAC := cmac.h 782ebfedea0SLionel Sambuc$! 783ebfedea0SLionel Sambuc$ i = 0 784ebfedea0SLionel Sambuc$ loop_sdirs: 785ebfedea0SLionel Sambuc$ sdir = f$edit( f$element( i, ",", sdirs), "trim") 786ebfedea0SLionel Sambuc$ i = i + 1 787ebfedea0SLionel Sambuc$ if (sdir .eqs. ",") then goto loop_sdirs_end 788ebfedea0SLionel Sambuc$ hdr_list = exheader_'sdir' 789ebfedea0SLionel Sambuc$ if (sdir .nes. "") then sdir = "."+ sdir 790ebfedea0SLionel Sambuc$ copy [.crypto'sdir']'hdr_list' sys$disk:[.include.openssl] 791ebfedea0SLionel Sambuc$ goto loop_sdirs 792ebfedea0SLionel Sambuc$ loop_sdirs_end: 793ebfedea0SLionel Sambuc$! 794ebfedea0SLionel Sambuc$! Copy All The ".H" Files From The [.SSL] Directory. 795ebfedea0SLionel Sambuc$! 796ebfedea0SLionel Sambuc$! (keep these in the same order as ssl/Makefile) 797ebfedea0SLionel Sambuc$ EXHEADER := ssl.h, ssl2.h, ssl3.h, ssl23.h, tls1.h, dtls1.h, kssl.h, srtp.h 798ebfedea0SLionel Sambuc$ copy sys$disk:[.ssl]'exheader' sys$disk:[.include.openssl] 799ebfedea0SLionel Sambuc$! 800ebfedea0SLionel Sambuc$! Purge the [.include.openssl] header files. 801ebfedea0SLionel Sambuc$! 802ebfedea0SLionel Sambuc$ purge sys$disk:[.include.openssl]*.h 803ebfedea0SLionel Sambuc$! 804ebfedea0SLionel Sambuc$! That's All, Time To RETURN. 805ebfedea0SLionel Sambuc$! 806ebfedea0SLionel Sambuc$ RETURN 807ebfedea0SLionel Sambuc$! 808ebfedea0SLionel Sambuc$! Build The "[.xxx.EXE.CRYPTO]SSL_LIBCRYPTO''LIB32'.OLB" Library. 809ebfedea0SLionel Sambuc$! 810ebfedea0SLionel Sambuc$ CRYPTO: 811ebfedea0SLionel Sambuc$! 812ebfedea0SLionel Sambuc$! Tell The User What We Are Doing. 813ebfedea0SLionel Sambuc$! 814ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 815ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT - 816ebfedea0SLionel Sambuc "Building The [.",ARCHD,".EXE.CRYPTO]SSL_LIBCRYPTO''LIB32'.OLB Library." 817ebfedea0SLionel Sambuc$! 818ebfedea0SLionel Sambuc$! Go To The [.CRYPTO] Directory. 819ebfedea0SLionel Sambuc$! 820ebfedea0SLionel Sambuc$ SET DEFAULT SYS$DISK:[.CRYPTO] 821ebfedea0SLionel Sambuc$! 822ebfedea0SLionel Sambuc$! Build The [.xxx.EXE.CRYPTO]LIBCRYPTO.OLB Library. 823ebfedea0SLionel Sambuc$! 824ebfedea0SLionel Sambuc$ @CRYPTO-LIB LIBRARY 'DEBUGGER' "''COMPILER'" "''TCPIP_TYPE'" - 825ebfedea0SLionel Sambuc "''ISSEVEN'" "''BUILDPART'" "''POINTER_SIZE'" "''ZLIB'" 826ebfedea0SLionel Sambuc$! 827ebfedea0SLionel Sambuc$! Build The [.xxx.EXE.CRYPTO]*.EXE Test Applications. 828ebfedea0SLionel Sambuc$! 829*0a6a1f1dSLionel Sambuc$!!! DISABLED, as these test programs lack any support 830*0a6a1f1dSLionel Sambuc$!!!$ @CRYPTO-LIB APPS 'DEBUGGER' "''COMPILER'" "''TCPIP_TYPE'" - 831*0a6a1f1dSLionel Sambuc$!!! "''ISSEVEN'" "''BUILDPART'" "''POINTER_SIZE'" "''ZLIB'" 832ebfedea0SLionel Sambuc$! 833ebfedea0SLionel Sambuc$! Go Back To The Main Directory. 834ebfedea0SLionel Sambuc$! 835ebfedea0SLionel Sambuc$ SET DEFAULT [-] 836ebfedea0SLionel Sambuc$! 837ebfedea0SLionel Sambuc$! Time To RETURN. 838ebfedea0SLionel Sambuc$! 839ebfedea0SLionel Sambuc$ RETURN 840ebfedea0SLionel Sambuc$! 841ebfedea0SLionel Sambuc$! Build The "[.xxx.EXE.SSL]SSL_LIBSSL''LIB32'.OLB" Library. 842ebfedea0SLionel Sambuc$! 843ebfedea0SLionel Sambuc$ SSL: 844ebfedea0SLionel Sambuc$! 845ebfedea0SLionel Sambuc$! Tell The User What We Are Doing. 846ebfedea0SLionel Sambuc$! 847ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 848ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT - 849ebfedea0SLionel Sambuc "Building The [.",ARCHD,".EXE.SSL]SSL_LIBSSL''LIB32'.OLB Library." 850ebfedea0SLionel Sambuc$! 851ebfedea0SLionel Sambuc$! Go To The [.SSL] Directory. 852ebfedea0SLionel Sambuc$! 853ebfedea0SLionel Sambuc$ SET DEFAULT SYS$DISK:[.SSL] 854ebfedea0SLionel Sambuc$! 855ebfedea0SLionel Sambuc$! Build The [.xxx.EXE.SSL]LIBSSL.OLB Library. 856ebfedea0SLionel Sambuc$! 857ebfedea0SLionel Sambuc$ @SSL-LIB LIBRARY 'DEBUGGER' "''COMPILER'" "''TCPIP_TYPE'" - 858ebfedea0SLionel Sambuc "''ISSEVEN'" "''POINTER_SIZE'" "''ZLIB'" 859ebfedea0SLionel Sambuc$! 860ebfedea0SLionel Sambuc$! Go Back To The Main Directory. 861ebfedea0SLionel Sambuc$! 862ebfedea0SLionel Sambuc$ SET DEFAULT [-] 863ebfedea0SLionel Sambuc$! 864ebfedea0SLionel Sambuc$! Time To Return. 865ebfedea0SLionel Sambuc$! 866ebfedea0SLionel Sambuc$ RETURN 867ebfedea0SLionel Sambuc$! 868ebfedea0SLionel Sambuc$! Build The "[.xxx.EXE.SSL]SSL_TASK.EXE" Program. 869ebfedea0SLionel Sambuc$! 870ebfedea0SLionel Sambuc$ SSL_TASK: 871ebfedea0SLionel Sambuc$! 872ebfedea0SLionel Sambuc$! Tell The User What We Are Doing. 873ebfedea0SLionel Sambuc$! 874ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 875ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT - 876ebfedea0SLionel Sambuc "Building DECNet Based SSL Engine, [.",ARCHD,".EXE.SSL]SSL_TASK.EXE" 877ebfedea0SLionel Sambuc$! 878ebfedea0SLionel Sambuc$! Go To The [.SSL] Directory. 879ebfedea0SLionel Sambuc$! 880ebfedea0SLionel Sambuc$ SET DEFAULT SYS$DISK:[.SSL] 881ebfedea0SLionel Sambuc$! 882ebfedea0SLionel Sambuc$! Build The [.xxx.EXE.SSL]SSL_TASK.EXE 883ebfedea0SLionel Sambuc$! 884ebfedea0SLionel Sambuc$ @SSL-LIB SSL_TASK 'DEBUGGER' "''COMPILER'" "''TCPIP_TYPE'" - 885ebfedea0SLionel Sambuc "''ISSEVEN'" "''POINTER_SIZE'" "''ZLIB'" 886ebfedea0SLionel Sambuc$! 887ebfedea0SLionel Sambuc$! Go Back To The Main Directory. 888ebfedea0SLionel Sambuc$! 889ebfedea0SLionel Sambuc$ SET DEFAULT [-] 890ebfedea0SLionel Sambuc$! 891ebfedea0SLionel Sambuc$! That's All, Time To RETURN. 892ebfedea0SLionel Sambuc$! 893ebfedea0SLionel Sambuc$ RETURN 894ebfedea0SLionel Sambuc$! 895ebfedea0SLionel Sambuc$! Build The OpenSSL Test Programs. 896ebfedea0SLionel Sambuc$! 897ebfedea0SLionel Sambuc$ TEST: 898ebfedea0SLionel Sambuc$! 899ebfedea0SLionel Sambuc$! Tell The User What We Are Doing. 900ebfedea0SLionel Sambuc$! 901ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 902ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "Building The OpenSSL [.",ARCHD,".EXE.TEST] Test Utilities." 903ebfedea0SLionel Sambuc$! 904ebfedea0SLionel Sambuc$! Go To The [.TEST] Directory. 905ebfedea0SLionel Sambuc$! 906ebfedea0SLionel Sambuc$ SET DEFAULT SYS$DISK:[.TEST] 907ebfedea0SLionel Sambuc$! 908ebfedea0SLionel Sambuc$! Build The Test Programs. 909ebfedea0SLionel Sambuc$! 910ebfedea0SLionel Sambuc$ @MAKETESTS 'DEBUGGER' "''COMPILER'" "''TCPIP_TYPE'" "''ISSEVEN'" - 911ebfedea0SLionel Sambuc "''POINTER_SIZE'" "''ZLIB'" 912ebfedea0SLionel Sambuc$! 913ebfedea0SLionel Sambuc$! Go Back To The Main Directory. 914ebfedea0SLionel Sambuc$! 915ebfedea0SLionel Sambuc$ SET DEFAULT [-] 916ebfedea0SLionel Sambuc$! 917ebfedea0SLionel Sambuc$! That's All, Time To RETURN. 918ebfedea0SLionel Sambuc$! 919ebfedea0SLionel Sambuc$ RETURN 920ebfedea0SLionel Sambuc$! 921ebfedea0SLionel Sambuc$! Build The OpenSSL Application Programs. 922ebfedea0SLionel Sambuc$! 923ebfedea0SLionel Sambuc$ APPS: 924ebfedea0SLionel Sambuc$! 925ebfedea0SLionel Sambuc$! Tell The User What We Are Doing. 926ebfedea0SLionel Sambuc$! 927ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 928ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "Building OpenSSL [.",ARCHD,".EXE.APPS] Applications." 929ebfedea0SLionel Sambuc$! 930ebfedea0SLionel Sambuc$! Go To The [.APPS] Directory. 931ebfedea0SLionel Sambuc$! 932ebfedea0SLionel Sambuc$ SET DEFAULT SYS$DISK:[.APPS] 933ebfedea0SLionel Sambuc$! 934ebfedea0SLionel Sambuc$! Build The Application Programs. 935ebfedea0SLionel Sambuc$! 936ebfedea0SLionel Sambuc$ @MAKEAPPS 'DEBUGGER' "''COMPILER'" "''TCPIP_TYPE'" "''ISSEVEN'" - 937ebfedea0SLionel Sambuc "" "''POINTER_SIZE'" "''ZLIB'" 938ebfedea0SLionel Sambuc$! 939ebfedea0SLionel Sambuc$! Go Back To The Main Directory. 940ebfedea0SLionel Sambuc$! 941ebfedea0SLionel Sambuc$ SET DEFAULT [-] 942ebfedea0SLionel Sambuc$! 943ebfedea0SLionel Sambuc$! That's All, Time To RETURN. 944ebfedea0SLionel Sambuc$! 945ebfedea0SLionel Sambuc$ RETURN 946ebfedea0SLionel Sambuc$! 947ebfedea0SLionel Sambuc$! Build The OpenSSL Application Programs. 948ebfedea0SLionel Sambuc$! 949ebfedea0SLionel Sambuc$ ENGINES: 950ebfedea0SLionel Sambuc$! 951ebfedea0SLionel Sambuc$! Tell The User What We Are Doing. 952ebfedea0SLionel Sambuc$! 953ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 954ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "Building OpenSSL [.",ARCHD,".EXE.ENGINES] Engines." 955ebfedea0SLionel Sambuc$! 956ebfedea0SLionel Sambuc$! Go To The [.ENGINES] Directory. 957ebfedea0SLionel Sambuc$! 958ebfedea0SLionel Sambuc$ SET DEFAULT SYS$DISK:[.ENGINES] 959ebfedea0SLionel Sambuc$! 960ebfedea0SLionel Sambuc$! Build The Application Programs. 961ebfedea0SLionel Sambuc$! 962ebfedea0SLionel Sambuc$ @MAKEENGINES ENGINES 'DEBUGGER' "''COMPILER'" "''TCPIP_TYPE'" - 963ebfedea0SLionel Sambuc "''ISSEVEN'" "''BUILDPART'" "''POINTER_SIZE'" "''ZLIB'" 964ebfedea0SLionel Sambuc$! 965ebfedea0SLionel Sambuc$! Go Back To The Main Directory. 966ebfedea0SLionel Sambuc$! 967ebfedea0SLionel Sambuc$ SET DEFAULT [-] 968ebfedea0SLionel Sambuc$! 969ebfedea0SLionel Sambuc$! That's All, Time To RETURN. 970ebfedea0SLionel Sambuc$! 971ebfedea0SLionel Sambuc$ RETURN 972ebfedea0SLionel Sambuc$! 973ebfedea0SLionel Sambuc$! Check The User's Options. 974ebfedea0SLionel Sambuc$! 975ebfedea0SLionel Sambuc$ CHECK_OPTIONS: 976ebfedea0SLionel Sambuc$! 977ebfedea0SLionel Sambuc$! Check if there's a "part", and separate it out 978ebfedea0SLionel Sambuc$! 979ebfedea0SLionel Sambuc$ BUILDPART = F$ELEMENT(1,"/",P1) 980ebfedea0SLionel Sambuc$ IF BUILDPART .EQS. "/" 981ebfedea0SLionel Sambuc$ THEN 982ebfedea0SLionel Sambuc$ BUILDPART = "" 983ebfedea0SLionel Sambuc$ ELSE 984ebfedea0SLionel Sambuc$ P1 = F$EXTRACT(0,F$LENGTH(P1) - F$LENGTH(BUILDPART) - 1, P1) 985ebfedea0SLionel Sambuc$ ENDIF 986ebfedea0SLionel Sambuc$! 987ebfedea0SLionel Sambuc$! Check To See If P1 Is Blank. 988ebfedea0SLionel Sambuc$! 989ebfedea0SLionel Sambuc$ IF (P1.EQS."ALL") 990ebfedea0SLionel Sambuc$ THEN 991ebfedea0SLionel Sambuc$! 992ebfedea0SLionel Sambuc$! P1 Is ALL, So Build Everything. 993ebfedea0SLionel Sambuc$! 994ebfedea0SLionel Sambuc$ BUILDCOMMAND = "ALL" 995ebfedea0SLionel Sambuc$! 996ebfedea0SLionel Sambuc$! Else... 997ebfedea0SLionel Sambuc$! 998ebfedea0SLionel Sambuc$ ELSE 999ebfedea0SLionel Sambuc$! 1000ebfedea0SLionel Sambuc$! Else, Check To See If P1 Has A Valid Argument. 1001ebfedea0SLionel Sambuc$! 1002ebfedea0SLionel Sambuc$ IF (P1.EQS."CONFIG").OR.(P1.EQS."BUILDINF").OR.(P1.EQS."SOFTLINKS") - 1003ebfedea0SLionel Sambuc .OR.(P1.EQS."BUILDALL") - 1004ebfedea0SLionel Sambuc .OR.(P1.EQS."CRYPTO").OR.(P1.EQS."SSL") - 1005ebfedea0SLionel Sambuc .OR.(P1.EQS."SSL_TASK").OR.(P1.EQS."TEST").OR.(P1.EQS."APPS") - 1006ebfedea0SLionel Sambuc .OR.(P1.EQS."ENGINES") 1007ebfedea0SLionel Sambuc$ THEN 1008ebfedea0SLionel Sambuc$! 1009ebfedea0SLionel Sambuc$! A Valid Argument. 1010ebfedea0SLionel Sambuc$! 1011ebfedea0SLionel Sambuc$ BUILDCOMMAND = P1 1012ebfedea0SLionel Sambuc$! 1013ebfedea0SLionel Sambuc$! Else... 1014ebfedea0SLionel Sambuc$! 1015ebfedea0SLionel Sambuc$ ELSE 1016ebfedea0SLionel Sambuc$! 1017ebfedea0SLionel Sambuc$! Tell The User We Don't Know What They Want. 1018ebfedea0SLionel Sambuc$! 1019ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 1020ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "USAGE: @MAKEVMS.COM [Target] [Pointer size] [Debug option] <Compiler>" 1021ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 1022ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "Example: @MAKEVMS.COM ALL """" NODEBUG " 1023ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 1024ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "The Target ",P1," Is Invalid. The Valid Target Options Are:" 1025ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 1026ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " ALL : Just Build Everything." 1027ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " CONFIG : Just build the [.CRYPTO._xxx]OPENSSLCONF.H file." 1028ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " BUILDINF : Just build the [.CRYPTO._xxx]BUILDINF.H file." 1029ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " SOFTLINKS: Just Fix The Unix soft links." 1030ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " BUILDALL : Same as ALL, except CONFIG, BUILDINF and SOFTILNKS aren't done." 1031ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " CRYPTO : To Build Just The [.xxx.EXE.CRYPTO]LIBCRYPTO.OLB Library." 1032ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " CRYPTO/x : To Build Just The x Part Of The" 1033ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " [.xxx.EXE.CRYPTO]LIBCRYPTO.OLB Library." 1034ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " SSL : To Build Just The [.xxx.EXE.SSL]LIBSSL.OLB Library." 1035ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " SSL_TASK : To Build Just The [.xxx.EXE.SSL]SSL_TASK.EXE Program." 1036ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " TEST : To Build Just The OpenSSL Test Programs." 1037ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " APPS : To Build Just The OpenSSL Application Programs." 1038ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " ENGINES : To Build Just The ENGINES" 1039ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 1040ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " Where 'xxx' Stands For:" 1041ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 1042ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " ALPHA[64]: Alpha Architecture." 1043ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " IA64[64] : IA64 Architecture." 1044ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " VAX : VAX Architecture." 1045ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 1046ebfedea0SLionel Sambuc$! 1047ebfedea0SLionel Sambuc$! Time To EXIT. 1048ebfedea0SLionel Sambuc$! 1049ebfedea0SLionel Sambuc$ GOTO TIDY 1050ebfedea0SLionel Sambuc$! 1051ebfedea0SLionel Sambuc$! End The Valid Argument Check. 1052ebfedea0SLionel Sambuc$! 1053ebfedea0SLionel Sambuc$ ENDIF 1054ebfedea0SLionel Sambuc$! 1055ebfedea0SLionel Sambuc$! End The P1 Check. 1056ebfedea0SLionel Sambuc$! 1057ebfedea0SLionel Sambuc$ ENDIF 1058ebfedea0SLionel Sambuc$! 1059ebfedea0SLionel Sambuc$! Check P2 (POINTER_SIZE). 1060ebfedea0SLionel Sambuc$! 1061ebfedea0SLionel Sambuc$ IF (P2 .NES. "") .AND. (ARCH .NES. "VAX") 1062ebfedea0SLionel Sambuc$ THEN 1063ebfedea0SLionel Sambuc$! 1064ebfedea0SLionel Sambuc$ IF (P2 .EQS. "32") 1065ebfedea0SLionel Sambuc$ THEN 1066ebfedea0SLionel Sambuc$ POINTER_SIZE = "32" 1067ebfedea0SLionel Sambuc$ ELSE 1068ebfedea0SLionel Sambuc$ POINTER_SIZE = F$EDIT( P2, "COLLAPSE, UPCASE") 1069ebfedea0SLionel Sambuc$ IF ((POINTER_SIZE .EQS. "64") .OR. - 1070ebfedea0SLionel Sambuc (POINTER_SIZE .EQS. "64=") .OR. - 1071ebfedea0SLionel Sambuc (POINTER_SIZE .EQS. "64=ARGV")) 1072ebfedea0SLionel Sambuc$ THEN 1073ebfedea0SLionel Sambuc$ ARCHD = ARCH+ "_64" 1074ebfedea0SLionel Sambuc$ LIB32 = "" 1075ebfedea0SLionel Sambuc$ ELSE 1076ebfedea0SLionel Sambuc$! 1077ebfedea0SLionel Sambuc$! Tell The User Entered An Invalid Option. 1078ebfedea0SLionel Sambuc$! 1079ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 1080ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "The Option ", P2, - 1081ebfedea0SLionel Sambuc " Is Invalid. The Valid Options Are:" 1082ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 1083ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT - 1084ebfedea0SLionel Sambuc " """" : Compile with default (short) pointers." 1085ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT - 1086ebfedea0SLionel Sambuc " 32 : Compile with 32-bit (short) pointers." 1087ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT - 1088ebfedea0SLionel Sambuc " 64 : Compile with 64-bit (long) pointers (auto ARGV)." 1089ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT - 1090ebfedea0SLionel Sambuc " 64= : Compile with 64-bit (long) pointers (no ARGV)." 1091ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT - 1092ebfedea0SLionel Sambuc " 64=ARGV : Compile with 64-bit (long) pointers (ARGV)." 1093ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 1094ebfedea0SLionel Sambuc$! 1095ebfedea0SLionel Sambuc$! Time To EXIT. 1096ebfedea0SLionel Sambuc$! 1097ebfedea0SLionel Sambuc$ GOTO TIDY 1098ebfedea0SLionel Sambuc$! 1099ebfedea0SLionel Sambuc$ ENDIF 1100ebfedea0SLionel Sambuc$! 1101ebfedea0SLionel Sambuc$ ENDIF 1102ebfedea0SLionel Sambuc$! 1103ebfedea0SLionel Sambuc$! End The P2 (POINTER_SIZE) Check. 1104ebfedea0SLionel Sambuc$! 1105ebfedea0SLionel Sambuc$ ENDIF 1106ebfedea0SLionel Sambuc$! 1107ebfedea0SLionel Sambuc$! Check To See If P3 Is Blank. 1108ebfedea0SLionel Sambuc$! 1109ebfedea0SLionel Sambuc$ IF (P3.EQS."NODEBUG") 1110ebfedea0SLionel Sambuc$ THEN 1111ebfedea0SLionel Sambuc$! 1112ebfedea0SLionel Sambuc$! P3 Is NODEBUG, So Compile Without Debugger Information. 1113ebfedea0SLionel Sambuc$! 1114ebfedea0SLionel Sambuc$ DEBUGGER = "NODEBUG" 1115ebfedea0SLionel Sambuc$! 1116ebfedea0SLionel Sambuc$! Else... 1117ebfedea0SLionel Sambuc$! 1118ebfedea0SLionel Sambuc$ ELSE 1119ebfedea0SLionel Sambuc$! 1120ebfedea0SLionel Sambuc$! Check To See If We Are To Compile With Debugger Information. 1121ebfedea0SLionel Sambuc$! 1122ebfedea0SLionel Sambuc$ IF (P3.EQS."DEBUG") 1123ebfedea0SLionel Sambuc$ THEN 1124ebfedea0SLionel Sambuc$! 1125ebfedea0SLionel Sambuc$! Compile With Debugger Information. 1126ebfedea0SLionel Sambuc$! 1127ebfedea0SLionel Sambuc$ DEBUGGER = "DEBUG" 1128ebfedea0SLionel Sambuc$! 1129ebfedea0SLionel Sambuc$! Else... 1130ebfedea0SLionel Sambuc$! 1131ebfedea0SLionel Sambuc$ ELSE 1132ebfedea0SLionel Sambuc$! 1133ebfedea0SLionel Sambuc$! Tell The User Entered An Invalid Option. 1134ebfedea0SLionel Sambuc$! 1135ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 1136ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "The Option ",P3," Is Invalid. The Valid Options Are:" 1137ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 1138ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " DEBUG : Compile With The Debugger Information." 1139ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " NODEBUG : Compile Without The Debugger Information." 1140ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 1141ebfedea0SLionel Sambuc$! 1142ebfedea0SLionel Sambuc$! Time To EXIT. 1143ebfedea0SLionel Sambuc$! 1144ebfedea0SLionel Sambuc$ GOTO TIDY 1145ebfedea0SLionel Sambuc$! 1146ebfedea0SLionel Sambuc$! End The Valid Argument Check. 1147ebfedea0SLionel Sambuc$! 1148ebfedea0SLionel Sambuc$ ENDIF 1149ebfedea0SLionel Sambuc$! 1150ebfedea0SLionel Sambuc$! End The P3 Check. 1151ebfedea0SLionel Sambuc$! 1152ebfedea0SLionel Sambuc$ ENDIF 1153ebfedea0SLionel Sambuc$! 1154ebfedea0SLionel Sambuc$! Check To See If P4 Is Blank. 1155ebfedea0SLionel Sambuc$! 1156ebfedea0SLionel Sambuc$ IF (P4.EQS."") 1157ebfedea0SLionel Sambuc$ THEN 1158ebfedea0SLionel Sambuc$! 1159ebfedea0SLionel Sambuc$! O.K., The User Didn't Specify A Compiler, Let's Try To 1160ebfedea0SLionel Sambuc$! Find Out Which One To Use. 1161ebfedea0SLionel Sambuc$! 1162ebfedea0SLionel Sambuc$! Check To See If We Have GNU C. 1163ebfedea0SLionel Sambuc$! 1164ebfedea0SLionel Sambuc$ IF (F$TRNLNM("GNU_CC").NES."") 1165ebfedea0SLionel Sambuc$ THEN 1166ebfedea0SLionel Sambuc$! 1167ebfedea0SLionel Sambuc$! Looks Like GNUC, Set To Use GNUC. 1168ebfedea0SLionel Sambuc$! 1169ebfedea0SLionel Sambuc$ COMPILER = "GNUC" 1170ebfedea0SLionel Sambuc$! 1171ebfedea0SLionel Sambuc$! Tell The User We Are Using GNUC. 1172ebfedea0SLionel Sambuc$! 1173ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "Using GNU 'C' Compiler." 1174ebfedea0SLionel Sambuc$! 1175ebfedea0SLionel Sambuc$! End The GNU C Compiler Check. 1176ebfedea0SLionel Sambuc$! 1177ebfedea0SLionel Sambuc$ ENDIF 1178ebfedea0SLionel Sambuc$! 1179ebfedea0SLionel Sambuc$! Check To See If We Have VAXC Or DECC. 1180ebfedea0SLionel Sambuc$! 1181ebfedea0SLionel Sambuc$ IF (F$GETSYI("CPU").GE.128).OR.(F$TRNLNM("DECC$CC_DEFAULT").EQS."/DECC") 1182ebfedea0SLionel Sambuc$ THEN 1183ebfedea0SLionel Sambuc$! 1184ebfedea0SLionel Sambuc$! Looks Like DECC, Set To Use DECC. 1185ebfedea0SLionel Sambuc$! 1186ebfedea0SLionel Sambuc$ COMPILER = "DECC" 1187ebfedea0SLionel Sambuc$! 1188ebfedea0SLionel Sambuc$! Tell The User We Are Using DECC. 1189ebfedea0SLionel Sambuc$! 1190ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "Using DECC 'C' Compiler." 1191ebfedea0SLionel Sambuc$! 1192ebfedea0SLionel Sambuc$! Else... 1193ebfedea0SLionel Sambuc$! 1194ebfedea0SLionel Sambuc$ ELSE 1195ebfedea0SLionel Sambuc$! 1196ebfedea0SLionel Sambuc$! Looks Like VAXC, Set To Use VAXC. 1197ebfedea0SLionel Sambuc$! 1198ebfedea0SLionel Sambuc$ COMPILER = "VAXC" 1199ebfedea0SLionel Sambuc$! 1200ebfedea0SLionel Sambuc$! Tell The User We Are Using VAX C. 1201ebfedea0SLionel Sambuc$! 1202ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "Using VAXC 'C' Compiler." 1203ebfedea0SLionel Sambuc$! 1204ebfedea0SLionel Sambuc$! End The DECC & VAXC Compiler Check. 1205ebfedea0SLionel Sambuc$! 1206ebfedea0SLionel Sambuc$ ENDIF 1207ebfedea0SLionel Sambuc$! 1208ebfedea0SLionel Sambuc$! Else... 1209ebfedea0SLionel Sambuc$! 1210ebfedea0SLionel Sambuc$ ELSE 1211ebfedea0SLionel Sambuc$! 1212ebfedea0SLionel Sambuc$! Check To See If The User Entered A Valid Parameter. 1213ebfedea0SLionel Sambuc$! 1214ebfedea0SLionel Sambuc$ IF (P4.EQS."VAXC").OR.(P4.EQS."DECC").OR.(P4.EQS."GNUC")!.OR.(P4.EQS."LINK") 1215ebfedea0SLionel Sambuc$ THEN 1216ebfedea0SLionel Sambuc$! 1217ebfedea0SLionel Sambuc$! Check To See If The User Wanted To Just LINK. 1218ebfedea0SLionel Sambuc$! 1219ebfedea0SLionel Sambuc$ IF (P4.EQS."LINK") 1220ebfedea0SLionel Sambuc$ THEN 1221ebfedea0SLionel Sambuc$! 1222ebfedea0SLionel Sambuc$! Looks Like LINK-only 1223ebfedea0SLionel Sambuc$! 1224ebfedea0SLionel Sambuc$ COMPILER = "LINK" 1225ebfedea0SLionel Sambuc$! 1226ebfedea0SLionel Sambuc$! Tell The User We Are Only Linking. 1227ebfedea0SLionel Sambuc$! 1228ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "LINK Only. This actually NOT YET SUPPORTED!" 1229ebfedea0SLionel Sambuc$! 1230ebfedea0SLionel Sambuc$! End LINK Check. 1231ebfedea0SLionel Sambuc$! 1232ebfedea0SLionel Sambuc$ ENDIF 1233ebfedea0SLionel Sambuc$! 1234ebfedea0SLionel Sambuc$! Check To See If The User Wanted DECC. 1235ebfedea0SLionel Sambuc$! 1236ebfedea0SLionel Sambuc$ IF (P4.EQS."DECC") 1237ebfedea0SLionel Sambuc$ THEN 1238ebfedea0SLionel Sambuc$! 1239ebfedea0SLionel Sambuc$! Looks Like DECC, Set To Use DECC. 1240ebfedea0SLionel Sambuc$! 1241ebfedea0SLionel Sambuc$ COMPILER = "DECC" 1242ebfedea0SLionel Sambuc$! 1243ebfedea0SLionel Sambuc$! Tell The User We Are Using DECC. 1244ebfedea0SLionel Sambuc$! 1245ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "Using DECC 'C' Compiler." 1246ebfedea0SLionel Sambuc$! 1247ebfedea0SLionel Sambuc$! End DECC Check. 1248ebfedea0SLionel Sambuc$! 1249ebfedea0SLionel Sambuc$ ENDIF 1250ebfedea0SLionel Sambuc$! 1251ebfedea0SLionel Sambuc$! Check To See If We Are To Use VAXC. 1252ebfedea0SLionel Sambuc$! 1253ebfedea0SLionel Sambuc$ IF (P4.EQS."VAXC") 1254ebfedea0SLionel Sambuc$ THEN 1255ebfedea0SLionel Sambuc$! 1256ebfedea0SLionel Sambuc$! Looks Like VAXC, Set To Use VAXC. 1257ebfedea0SLionel Sambuc$! 1258ebfedea0SLionel Sambuc$ COMPILER = "VAXC" 1259ebfedea0SLionel Sambuc$! 1260ebfedea0SLionel Sambuc$! Tell The User We Are Using VAX C. 1261ebfedea0SLionel Sambuc$! 1262ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "Using VAXC 'C' Compiler." 1263ebfedea0SLionel Sambuc$! 1264ebfedea0SLionel Sambuc$! End VAXC Check 1265ebfedea0SLionel Sambuc$! 1266ebfedea0SLionel Sambuc$ ENDIF 1267ebfedea0SLionel Sambuc$! 1268ebfedea0SLionel Sambuc$! Check To See If We Are To Use GNU C. 1269ebfedea0SLionel Sambuc$! 1270ebfedea0SLionel Sambuc$ IF (P4.EQS."GNUC") 1271ebfedea0SLionel Sambuc$ THEN 1272ebfedea0SLionel Sambuc$! 1273ebfedea0SLionel Sambuc$! Looks Like GNUC, Set To Use GNUC. 1274ebfedea0SLionel Sambuc$! 1275ebfedea0SLionel Sambuc$ COMPILER = "GNUC" 1276ebfedea0SLionel Sambuc$! 1277ebfedea0SLionel Sambuc$! Tell The User We Are Using GNUC. 1278ebfedea0SLionel Sambuc$! 1279ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "Using GNU 'C' Compiler." 1280ebfedea0SLionel Sambuc$! 1281ebfedea0SLionel Sambuc$! End The GNU C Check. 1282ebfedea0SLionel Sambuc$! 1283ebfedea0SLionel Sambuc$ ENDIF 1284ebfedea0SLionel Sambuc$! 1285ebfedea0SLionel Sambuc$! Else The User Entered An Invalid Argument. 1286ebfedea0SLionel Sambuc$! 1287ebfedea0SLionel Sambuc$ ELSE 1288ebfedea0SLionel Sambuc$! 1289ebfedea0SLionel Sambuc$! Tell The User We Don't Know What They Want. 1290ebfedea0SLionel Sambuc$! 1291ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 1292ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "The Option ",P4," Is Invalid. The Valid Options Are:" 1293ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 1294ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " VAXC : To Compile With VAX C." 1295ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " DECC : To Compile With DEC C." 1296ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " GNUC : To Compile With GNU C." 1297ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 1298ebfedea0SLionel Sambuc$! 1299ebfedea0SLionel Sambuc$! Time To EXIT. 1300ebfedea0SLionel Sambuc$! 1301ebfedea0SLionel Sambuc$ GOTO TIDY 1302ebfedea0SLionel Sambuc$! 1303ebfedea0SLionel Sambuc$! End The Valid Argument Check. 1304ebfedea0SLionel Sambuc$! 1305ebfedea0SLionel Sambuc$ ENDIF 1306ebfedea0SLionel Sambuc$! 1307ebfedea0SLionel Sambuc$! End The P4 Check. 1308ebfedea0SLionel Sambuc$! 1309ebfedea0SLionel Sambuc$ ENDIF 1310ebfedea0SLionel Sambuc$! 1311ebfedea0SLionel Sambuc$! Time to check the contents of P5, and to make sure we get the correct 1312ebfedea0SLionel Sambuc$! library. 1313ebfedea0SLionel Sambuc$! 1314ebfedea0SLionel Sambuc$ IF P5.EQS."SOCKETSHR" .OR. P5.EQS."MULTINET" .OR. P5.EQS."UCX" - 1315ebfedea0SLionel Sambuc .OR. P5.EQS."TCPIP" .OR. P5.EQS."NONE" 1316ebfedea0SLionel Sambuc$ THEN 1317ebfedea0SLionel Sambuc$! 1318ebfedea0SLionel Sambuc$! Check to see if SOCKETSHR was chosen 1319ebfedea0SLionel Sambuc$! 1320ebfedea0SLionel Sambuc$ IF P5.EQS."SOCKETSHR" 1321ebfedea0SLionel Sambuc$ THEN 1322ebfedea0SLionel Sambuc$! 1323ebfedea0SLionel Sambuc$! Set the library to use SOCKETSHR 1324ebfedea0SLionel Sambuc$! 1325ebfedea0SLionel Sambuc$ TCPIP_LIB = "SYS$DISK:[-.VMS]SOCKETSHR_SHR.OPT /OPTIONS" 1326ebfedea0SLionel Sambuc$! 1327ebfedea0SLionel Sambuc$! Tell the user 1328ebfedea0SLionel Sambuc$! 1329ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "Using SOCKETSHR for TCP/IP" 1330ebfedea0SLionel Sambuc$! 1331ebfedea0SLionel Sambuc$! Done with SOCKETSHR 1332ebfedea0SLionel Sambuc$! 1333ebfedea0SLionel Sambuc$ ENDIF 1334ebfedea0SLionel Sambuc$! 1335ebfedea0SLionel Sambuc$! Check to see if MULTINET was chosen 1336ebfedea0SLionel Sambuc$! 1337ebfedea0SLionel Sambuc$ IF P5.EQS."MULTINET" 1338ebfedea0SLionel Sambuc$ THEN 1339ebfedea0SLionel Sambuc$! 1340ebfedea0SLionel Sambuc$! Set the library to use UCX emulation. 1341ebfedea0SLionel Sambuc$! 1342ebfedea0SLionel Sambuc$ P5 = "UCX" 1343ebfedea0SLionel Sambuc$! 1344ebfedea0SLionel Sambuc$! Tell the user 1345ebfedea0SLionel Sambuc$! 1346ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "Using MultiNet via UCX emulation for TCP/IP" 1347ebfedea0SLionel Sambuc$! 1348ebfedea0SLionel Sambuc$! Done with MULTINET 1349ebfedea0SLionel Sambuc$! 1350ebfedea0SLionel Sambuc$ ENDIF 1351ebfedea0SLionel Sambuc$! 1352ebfedea0SLionel Sambuc$! Check to see if UCX was chosen 1353ebfedea0SLionel Sambuc$! 1354ebfedea0SLionel Sambuc$ IF P5.EQS."UCX" 1355ebfedea0SLionel Sambuc$ THEN 1356ebfedea0SLionel Sambuc$! 1357ebfedea0SLionel Sambuc$! Set the library to use UCX. 1358ebfedea0SLionel Sambuc$! 1359ebfedea0SLionel Sambuc$ TCPIP_LIB = "SYS$DISK:[-.VMS]UCX_SHR_DECC.OPT /OPTIONS" 1360ebfedea0SLionel Sambuc$! 1361ebfedea0SLionel Sambuc$! Tell the user 1362ebfedea0SLionel Sambuc$! 1363ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "Using UCX or an emulation thereof for TCP/IP" 1364ebfedea0SLionel Sambuc$! 1365ebfedea0SLionel Sambuc$! Done with UCX 1366ebfedea0SLionel Sambuc$! 1367ebfedea0SLionel Sambuc$ ENDIF 1368ebfedea0SLionel Sambuc$! 1369ebfedea0SLionel Sambuc$! Check to see if TCPIP was chosen 1370ebfedea0SLionel Sambuc$! 1371ebfedea0SLionel Sambuc$ IF P5.EQS."TCPIP" 1372ebfedea0SLionel Sambuc$ THEN 1373ebfedea0SLionel Sambuc$! 1374ebfedea0SLionel Sambuc$! Set the library to use TCPIP (post UCX). 1375ebfedea0SLionel Sambuc$! 1376ebfedea0SLionel Sambuc$ TCPIP_LIB = "SYS$DISK:[-.VMS]TCPIP_SHR_DECC.OPT /OPTIONS" 1377ebfedea0SLionel Sambuc$! 1378ebfedea0SLionel Sambuc$! Tell the user 1379ebfedea0SLionel Sambuc$! 1380ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "Using TCPIP (post UCX) for TCP/IP" 1381ebfedea0SLionel Sambuc$! 1382ebfedea0SLionel Sambuc$! Done with TCPIP 1383ebfedea0SLionel Sambuc$! 1384ebfedea0SLionel Sambuc$ ENDIF 1385ebfedea0SLionel Sambuc$! 1386ebfedea0SLionel Sambuc$! Check to see if NONE was chosen 1387ebfedea0SLionel Sambuc$! 1388ebfedea0SLionel Sambuc$ IF P5.EQS."NONE" 1389ebfedea0SLionel Sambuc$ THEN 1390ebfedea0SLionel Sambuc$! 1391ebfedea0SLionel Sambuc$! Do not use a TCPIP library. 1392ebfedea0SLionel Sambuc$! 1393ebfedea0SLionel Sambuc$ TCPIP_LIB = "" 1394ebfedea0SLionel Sambuc$! 1395ebfedea0SLionel Sambuc$! Tell the user 1396ebfedea0SLionel Sambuc$! 1397ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "A specific TCPIP library will not be used." 1398ebfedea0SLionel Sambuc$! 1399ebfedea0SLionel Sambuc$! Done with NONE. 1400ebfedea0SLionel Sambuc$! 1401ebfedea0SLionel Sambuc$ ENDIF 1402ebfedea0SLionel Sambuc$! 1403ebfedea0SLionel Sambuc$! Set the TCPIP_TYPE symbol 1404ebfedea0SLionel Sambuc$! 1405ebfedea0SLionel Sambuc$ TCPIP_TYPE = P5 1406ebfedea0SLionel Sambuc$! 1407ebfedea0SLionel Sambuc$! Print info 1408ebfedea0SLionel Sambuc$! 1409ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "TCP/IP library spec: ", TCPIP_LIB 1410ebfedea0SLionel Sambuc$! 1411ebfedea0SLionel Sambuc$! Else The User Entered An Invalid Argument. 1412ebfedea0SLionel Sambuc$! 1413ebfedea0SLionel Sambuc$ ELSE 1414ebfedea0SLionel Sambuc$ IF P5 .NES. "" 1415ebfedea0SLionel Sambuc$ THEN 1416ebfedea0SLionel Sambuc$! 1417ebfedea0SLionel Sambuc$! Tell The User We Don't Know What They Want. 1418ebfedea0SLionel Sambuc$! 1419ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 1420ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "The Option ",P5," Is Invalid. The Valid Options Are:" 1421ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 1422ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " SOCKETSHR : To link with SOCKETSHR TCP/IP library." 1423ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " UCX : To link with UCX TCP/IP library." 1424ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " TCPIP : To link with TCPIP TCP/IP (post UCX) library." 1425ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " NONE : To not link with a specific TCP/IP library." 1426ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 1427ebfedea0SLionel Sambuc$! 1428ebfedea0SLionel Sambuc$! Time To EXIT. 1429ebfedea0SLionel Sambuc$! 1430ebfedea0SLionel Sambuc$ GOTO TIDY 1431ebfedea0SLionel Sambuc$ ELSE 1432ebfedea0SLionel Sambuc$! 1433ebfedea0SLionel Sambuc$! If TCPIP is not defined, then hardcode it to make 1434ebfedea0SLionel Sambuc$! it clear that no TCPIP is desired. 1435ebfedea0SLionel Sambuc$! 1436ebfedea0SLionel Sambuc$ IF P5 .EQS. "" 1437ebfedea0SLionel Sambuc$ THEN 1438ebfedea0SLionel Sambuc$ TCPIP_LIB = "" 1439ebfedea0SLionel Sambuc$ TCPIP_TYPE = "NONE" 1440ebfedea0SLionel Sambuc$ ELSE 1441ebfedea0SLionel Sambuc$! 1442ebfedea0SLionel Sambuc$! Set the TCPIP_TYPE symbol 1443ebfedea0SLionel Sambuc$! 1444ebfedea0SLionel Sambuc$ TCPIP_TYPE = P5 1445ebfedea0SLionel Sambuc$ ENDIF 1446ebfedea0SLionel Sambuc$ ENDIF 1447ebfedea0SLionel Sambuc$! 1448ebfedea0SLionel Sambuc$! Done with TCP/IP libraries 1449ebfedea0SLionel Sambuc$! 1450ebfedea0SLionel Sambuc$ ENDIF 1451ebfedea0SLionel Sambuc$! 1452ebfedea0SLionel Sambuc$! Special Threads For OpenVMS v7.1 Or Later 1453ebfedea0SLionel Sambuc$! 1454ebfedea0SLionel Sambuc$! Written By: Richard Levitte 1455ebfedea0SLionel Sambuc$! richard@levitte.org 1456ebfedea0SLionel Sambuc$! 1457ebfedea0SLionel Sambuc$! 1458ebfedea0SLionel Sambuc$! Check To See If We Have A Option For P6. 1459ebfedea0SLionel Sambuc$! 1460ebfedea0SLionel Sambuc$ IF (P6.EQS."") 1461ebfedea0SLionel Sambuc$ THEN 1462ebfedea0SLionel Sambuc$! 1463ebfedea0SLionel Sambuc$! Get The Version Of VMS We Are Using. 1464ebfedea0SLionel Sambuc$! 1465ebfedea0SLionel Sambuc$ ISSEVEN := 1466ebfedea0SLionel Sambuc$ TMP = F$ELEMENT(0,"-",F$EXTRACT(1,4,VMS_VERSION)) 1467ebfedea0SLionel Sambuc$ TMP = F$INTEGER(F$ELEMENT(0,".",TMP)+F$ELEMENT(1,".",TMP)) 1468ebfedea0SLionel Sambuc$! 1469ebfedea0SLionel Sambuc$! Check To See If The VMS Version Is v7.1 Or Later. 1470ebfedea0SLionel Sambuc$! 1471ebfedea0SLionel Sambuc$ IF (TMP.GE.71) 1472ebfedea0SLionel Sambuc$ THEN 1473ebfedea0SLionel Sambuc$! 1474ebfedea0SLionel Sambuc$! We Have OpenVMS v7.1 Or Later, So Use The Special Threads. 1475ebfedea0SLionel Sambuc$! 1476ebfedea0SLionel Sambuc$ ISSEVEN := ,PTHREAD_USE_D4 1477ebfedea0SLionel Sambuc$! 1478ebfedea0SLionel Sambuc$! End The VMS Version Check. 1479ebfedea0SLionel Sambuc$! 1480ebfedea0SLionel Sambuc$ ENDIF 1481ebfedea0SLionel Sambuc$! 1482ebfedea0SLionel Sambuc$! End The P6 Check. 1483ebfedea0SLionel Sambuc$! 1484ebfedea0SLionel Sambuc$ ENDIF 1485ebfedea0SLionel Sambuc$! 1486ebfedea0SLionel Sambuc$! 1487ebfedea0SLionel Sambuc$! Check To See If We Have A ZLIB Option. 1488ebfedea0SLionel Sambuc$! 1489ebfedea0SLionel Sambuc$ ZLIB = P7 1490ebfedea0SLionel Sambuc$ IF (ZLIB .NES. "") 1491ebfedea0SLionel Sambuc$ THEN 1492ebfedea0SLionel Sambuc$! 1493ebfedea0SLionel Sambuc$! Check for expected ZLIB files. 1494ebfedea0SLionel Sambuc$! 1495ebfedea0SLionel Sambuc$ err = 0 1496ebfedea0SLionel Sambuc$ file1 = f$parse( "zlib.h", ZLIB, , , "SYNTAX_ONLY") 1497ebfedea0SLionel Sambuc$ if (f$search( file1) .eqs. "") 1498ebfedea0SLionel Sambuc$ then 1499ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 1500ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "The Option ", ZLIB, " Is Invalid." 1501ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " Can't find header: ''file1'" 1502ebfedea0SLionel Sambuc$ err = 1 1503ebfedea0SLionel Sambuc$ endif 1504ebfedea0SLionel Sambuc$! 1505ebfedea0SLionel Sambuc$ file2 = f$parse( ZLIB, "libz.olb", , , "SYNTAX_ONLY") 1506ebfedea0SLionel Sambuc$ if (f$search( file2) .eqs. "") 1507ebfedea0SLionel Sambuc$ then 1508ebfedea0SLionel Sambuc$ if (err .eq. 0) 1509ebfedea0SLionel Sambuc$ then 1510ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 1511ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "The Option ", ZLIB, " Is Invalid." 1512ebfedea0SLionel Sambuc$ endif 1513ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT " Can't find library: ''file2'" 1514ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 1515ebfedea0SLionel Sambuc$ err = err+ 2 1516ebfedea0SLionel Sambuc$ endif 1517ebfedea0SLionel Sambuc$ if (err .eq. 1) 1518ebfedea0SLionel Sambuc$ then 1519ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "" 1520ebfedea0SLionel Sambuc$ endif 1521ebfedea0SLionel Sambuc$! 1522ebfedea0SLionel Sambuc$ if (err .ne. 0) 1523ebfedea0SLionel Sambuc$ then 1524ebfedea0SLionel Sambuc$ GOTO TIDY 1525ebfedea0SLionel Sambuc$ endif 1526ebfedea0SLionel Sambuc$! 1527ebfedea0SLionel Sambuc$! Print info 1528ebfedea0SLionel Sambuc$! 1529ebfedea0SLionel Sambuc$ WRITE SYS$OUTPUT "ZLIB library spec: ", file2 1530ebfedea0SLionel Sambuc$! 1531ebfedea0SLionel Sambuc$! End The ZLIB Check. 1532ebfedea0SLionel Sambuc$! 1533ebfedea0SLionel Sambuc$ ENDIF 1534ebfedea0SLionel Sambuc$! 1535ebfedea0SLionel Sambuc$! Time To RETURN... 1536ebfedea0SLionel Sambuc$! 1537ebfedea0SLionel Sambuc$ RETURN 1538ebfedea0SLionel Sambuc$! 1539ebfedea0SLionel Sambuc$ TIDY: 1540ebfedea0SLionel Sambuc$! 1541ebfedea0SLionel Sambuc$! Close any open files. 1542ebfedea0SLionel Sambuc$! 1543ebfedea0SLionel Sambuc$ if (f$trnlnm( "h_file", "LNM$PROCESS", 0, "SUPERVISOR") .nes. "") then - 1544ebfedea0SLionel Sambuc close h_file 1545ebfedea0SLionel Sambuc$! 1546ebfedea0SLionel Sambuc$! Restore the original default device:[directory]. 1547ebfedea0SLionel Sambuc$! 1548ebfedea0SLionel Sambuc$ SET DEFAULT 'DEF_ORIG' 1549ebfedea0SLionel Sambuc$! 1550ebfedea0SLionel Sambuc$ EXIT 1551ebfedea0SLionel Sambuc$! 1552