3 $! Original Author: UNKNOWN
4 $! Rewritten By: Robert Byer
6 $! A-Com Computing, Inc.
7 $! byer@mail.all-net.net
9 $! Changes by Richard Levitte <richard@levitte.org>
10 $! Zoltan Arpadffy <zoli@polarhome.com>
12 $! This procedure creates the SSL libraries of "[.xxx.EXE.CRYPTO]LIBCRYPTO.OLB"
13 $! "[.xxx.EXE.SSL]LIBSSL.OLB"
14 $! The "xxx" denotes the machine architecture of ALPHA, IA64 or VAX.
16 $! This procedures accepts two command line options listed below.
18 $! P1 specifies one of the following build options:
20 $! ALL Just build "everything".
21 $! CONFIG Just build the "[.CRYPTO._xxx]OPENSSLCONF.H" file.
22 $! BUILDINF Just build the "[.CRYPTO._xxx]BUILDINF.H" file.
23 $! SOFTLINKS Just fix the Unix soft links.
24 $! BUILDALL Same as ALL, except CONFIG, BUILDINF and SOFTILNKS aren't done.
25 $! CRYPTO Just build the "[.xxx.EXE.CRYPTO]LIBCRYPTO.OLB" library.
26 $! CRYPTO/x Just build the x part of the
27 $! "[.xxx.EXE.CRYPTO]LIBCRYPTO.OLB" library.
28 $! SSL Just build the "[.xxx.EXE.SSL]LIBSSL.OLB" library.
29 $! SSL_TASK Just build the "[.xxx.EXE.SSL]SSL_TASK.EXE" program.
30 $! TEST Just build the "[.xxx.EXE.TEST]" test programs for OpenSSL.
31 $! APPS Just build the "[.xxx.EXE.APPS]" application programs for OpenSSL.
32 $! ENGINES Just build the "[.xxx.EXE.ENGINES]" application programs for OpenSSL.
34 $! P2, if defined, specifies the C pointer size. Ignored on VAX.
35 $! ("64=ARGV" gives more efficient code with HP C V7.3 or newer.)
36 $! Supported values are:
38 $! "" Compile with default (/NOPOINTER_SIZE).
39 $! 32 Compile with /POINTER_SIZE=32 (SHORT).
40 $! 64 Compile with /POINTER_SIZE=64[=ARGV] (LONG[=ARGV]).
41 $! (Automatically select ARGV if compiler supports it.)
42 $! 64= Compile with /POINTER_SIZE=64 (LONG).
43 $! 64=ARGV Compile with /POINTER_SIZE=64=ARGV (LONG=ARGV).
45 $! P3 specifies DEBUG or NODEBUG, to compile with or without debugging
48 $! P4 specifies which compiler to try to compile under.
53 $! LINK To only link the programs from existing object files.
54 $! (not yet implemented)
56 $! If you don't specify a compiler, it will try to determine which
57 $! "C" compiler to use.
59 $! P5, if defined, sets a TCP/IP library to use, through one of the following
62 $! UCX for UCX or UCX emulation
63 $! TCPIP for TCP/IP Services or TCP/IP Services emulation
64 $! (this is prefered over UCX)
65 $! SOCKETSHR for SOCKETSHR+NETLIB
66 $! NONE to avoid specifying which TCP/IP implementation to
67 $! use at build time (this works with DEC C). This is
70 $! P6, if defined, sets a compiler thread NOT needed on OpenVMS 7.1 (and up).
72 $! P7, if defined, specifies a directory where ZLIB files (zlib.h,
73 $! libz.olb) may be found. Optionally, a non-default object library
74 $! name may be included ("dev:[dir]libz_64.olb", for example).
79 $ proc = f$environment( "procedure")
80 $ write sys$output "@@@ "+ -
81 f$parse( proc, , , "name")+ f$parse( proc, , , "type")
83 $ DEF_ORIG = F$ENVIRONMENT( "DEFAULT")
84 $ ON ERROR THEN GOTO TIDY
85 $ ON CONTROL_C THEN GOTO TIDY
87 $! Check if we're in a batch job, and make sure we get to
88 $! the directory this script is in
90 $ IF F$MODE() .EQS. "BATCH"
92 $ COMNAME=F$ENVIRONMENT("PROCEDURE")
93 $ COMPATH=F$PARSE("A.;",COMNAME) - "A.;"
97 $! Check What Architecture We Are Using.
99 $ IF (F$GETSYI("CPU").LT.128)
102 $! The Architecture Is VAX.
110 $! The Architecture Is Alpha, IA64 or whatever comes in the future.
112 $ ARCH = F$EDIT( F$GETSYI( "ARCH_NAME"), "UPCASE")
113 $ IF (ARCH .EQS. "") THEN ARCH = "UNK"
115 $! End The Architecture Check.
125 $ VMS_VERSION = f$edit( f$getsyi( "VERSION"), "TRIM")
127 $! Check To Make Sure We Have Valid Command Line Parameters.
129 $ GOSUB CHECK_OPTIONS
131 $! Check To See What We Are To Do.
133 $ IF (BUILDCOMMAND.EQS."ALL")
136 $! Start with building the OpenSSL configuration file.
140 $! Create The "BUILDINF.H" Include File.
144 $! Fix The Unix Softlinks.
150 $ IF (BUILDCOMMAND.EQS."ALL".OR.BUILDCOMMAND.EQS."BUILDALL")
153 $! Build The [.xxx.EXE.CRYPTO]LIBCRYPTO.OLB Library.
157 $! Build The [.xxx.EXE.SSL]LIBSSL.OLB Library.
161 $! Build The [.xxx.EXE.SSL]SSL_TASK.EXE DECNet SSL Engine.
165 $! Build The [.xxx.EXE.TEST] OpenSSL Test Utilities.
169 $! Build The [.xxx.EXE.APPS] OpenSSL Application Utilities.
173 $! Build The [.xxx.EXE.ENGINES] OpenSSL Shareable Engines.
181 $! Build Just What The User Wants Us To Build.
183 $ GOSUB 'BUILDCOMMAND'
191 $! Rebuild The [.CRYPTO._xxx]OPENSSLCONF.H" file.
195 $! Tell The User We Are Creating The [.CRYPTO._xxx]OPENSSLCONF.H File.
197 $ WRITE SYS$OUTPUT "Creating [.CRYPTO.''ARCHD']OPENSSLCONF.H Include File."
199 $! First, make sure the directory exists.
201 $ IF F$PARSE("SYS$DISK:[.CRYPTO.''ARCHD']") .EQS. "" THEN -
202 CREATE/DIRECTORY SYS$DISK:[.CRYPTO.'ARCHD']
204 $! Different tar/UnZip versions/option may have named the file differently
205 $ IF F$SEARCH("[.crypto]opensslconf.h_in") .NES. ""
207 $ OPENSSLCONF_H_IN = "[.crypto]opensslconf.h_in"
209 $ IF F$SEARCH( "[.crypto]opensslconf_h.in") .NES. ""
211 $ OPENSSLCONF_H_IN = "[.crypto]opensslconf_h.in"
214 $ IF F$SEARCH( "[.crypto]opensslconf.h.in") .NES. ""
216 $ OPENSSLCONF_H_IN = "[.crypto]opensslconf.h.in"
218 $ WRITE SYS$ERROR "Couldn't find a [.crypto]opensslconf.h.in. Exiting!"
219 $ $STATUS = %X00018294 ! "%RMS-F-FNF, file not found".
225 $! Create The [.CRYPTO._xxx]OPENSSLCONF.H File.
226 $! Make sure it has the right format.
228 $ OSCH_NAME = "SYS$DISK:[.CRYPTO.''ARCHD']OPENSSLCONF.H"
229 $ CREATE /FDL=SYS$INPUT: 'OSCH_NAME'
232 $ OPEN /APPEND H_FILE 'OSCH_NAME'
234 $! Write The [.CRYPTO._xxx]OPENSSLCONF.H File.
236 $ WRITE H_FILE "/* This file was automatically built using makevms.com */"
237 $ WRITE H_FILE "/* and ''OPENSSLCONF_H_IN' */"
239 $! Write a few macros that indicate how this system was built.
242 $ WRITE H_FILE "#ifndef OPENSSL_SYS_VMS"
243 $ WRITE H_FILE "# define OPENSSL_SYS_VMS"
244 $ WRITE H_FILE "#endif"
246 $! One of the best way to figure out what the list should be is to do
247 $! the following on a Unix system:
248 $! grep OPENSSL_NO_ crypto/*/*.h ssl/*.h engines/*.h engines/*/*.h|grep ':# *if'|sed -e 's/^.*def //'|sort|uniq
249 $! For that reason, the list will also always end up in alphabetical order
250 $ CONFIG_LOGICALS := AES,-
269 EC_NISTP_64_GCC_128,-
315 $! Add a few that we know about
316 $ CONFIG_LOGICALS := 'CONFIG_LOGICALS',-
318 $! The following rules, which dictate how some algorithm choices affect
319 $! others, are picked from Configure.
321 $! list = item[ ; list]
322 $! item = algos / dependents
323 $! algos = algo [, algos]
324 $! dependents = dependent [, dependents]
325 $! When a list of algos is specified in one item, it means that they must
326 $! all be disabled for the rule to apply.
327 $! When a list of dependents is specified in one item, it means that they
328 $! will all be disabled if the rule applies.
329 $! Rules are checked sequentially. If a rule disables an algorithm, it will
330 $! affect all following rules that depend on that algorithm being disabled.
331 $! To force something to be enabled or disabled, have no algorithms in the
333 $ CONFIG_DISABLE_RULES := RIJNDAEL/AES;-
347 /EC_NISTP_64_GCC_128;-
354 $ CONFIG_ENABLE_RULES := ZLIB_DYNAMIC/ZLIB;-
357 $! Architecture specific rule addtions
358 $ IF ARCH .EQS. "VAX"
360 $ ! Disable algorithms that require 64-bit integers in C
361 $ CONFIG_DISABLE_RULES = CONFIG_DISABLE_RULES + -
368 $ CONFIG_LOG_E = F$EDIT(F$ELEMENT(CONFIG_LOG_I,",",CONFIG_LOGICALS),"TRIM")
369 $ CONFIG_LOG_I = CONFIG_LOG_I + 1
370 $ IF CONFIG_LOG_E .EQS. "" THEN GOTO CONFIG_LOG_LOOP1
371 $ IF CONFIG_LOG_E .EQS. "," THEN GOTO CONFIG_LOG_LOOP1_END
372 $ IF F$TRNLNM("OPENSSL_NO_"+CONFIG_LOG_E)
374 $ CONFIG_DISABLED_'CONFIG_LOG_E' := YES
375 $ CONFIG_ENABLED_'CONFIG_LOG_E' := NO
376 $ CONFIG_CHANGED_'CONFIG_LOG_E' := YES
378 $ CONFIG_DISABLED_'CONFIG_LOG_E' := NO
379 $ CONFIG_ENABLED_'CONFIG_LOG_E' := YES
380 $ ! Because all algorithms are assumed enabled by default
381 $ CONFIG_CHANGED_'CONFIG_LOG_E' := NO
383 $ GOTO CONFIG_LOG_LOOP1
384 $ CONFIG_LOG_LOOP1_END:
386 $! Apply cascading disable rules
387 $ CONFIG_DISABLE_I = 0
388 $ CONFIG_DISABLE_LOOP0:
389 $ CONFIG_DISABLE_E = F$EDIT(F$ELEMENT(CONFIG_DISABLE_I,";", -
390 CONFIG_DISABLE_RULES),"TRIM")
391 $ CONFIG_DISABLE_I = CONFIG_DISABLE_I + 1
392 $ IF CONFIG_DISABLE_E .EQS. "" THEN GOTO CONFIG_DISABLE_LOOP0
393 $ IF CONFIG_DISABLE_E .EQS. ";" THEN GOTO CONFIG_DISABLE_LOOP0_END
395 $ CONFIG_DISABLE_ALGOS = F$EDIT(F$ELEMENT(0,"/",CONFIG_DISABLE_E),"TRIM")
396 $ CONFIG_DISABLE_DEPENDENTS = F$EDIT(F$ELEMENT(1,"/",CONFIG_DISABLE_E),"TRIM")
399 $ CONFIG_DISABLE_LOOP1:
400 $ CONFIG_ALGO_E = F$EDIT(F$ELEMENT(CONFIG_ALGO_I,",", -
401 CONFIG_DISABLE_ALGOS),"TRIM")
402 $ CONFIG_ALGO_I = CONFIG_ALGO_I + 1
403 $ IF CONFIG_ALGO_E .EQS. "" THEN GOTO CONFIG_DISABLE_LOOP1
404 $ IF CONFIG_ALGO_E .EQS. "," THEN GOTO CONFIG_DISABLE_LOOP1_END
405 $ IF F$TYPE(CONFIG_DISABLED_'CONFIG_ALGO_E') .EQS. ""
409 $ IF .NOT. CONFIG_DISABLED_'CONFIG_ALGO_E' THEN TO_DISABLE := NO
411 $ GOTO CONFIG_DISABLE_LOOP1
412 $ CONFIG_DISABLE_LOOP1_END:
416 $ CONFIG_DEPENDENT_I = 0
417 $ CONFIG_DISABLE_LOOP2:
418 $ CONFIG_DEPENDENT_E = F$EDIT(F$ELEMENT(CONFIG_DEPENDENT_I,",", -
419 CONFIG_DISABLE_DEPENDENTS),"TRIM")
420 $ CONFIG_DEPENDENT_I = CONFIG_DEPENDENT_I + 1
421 $ IF CONFIG_DEPENDENT_E .EQS. "" THEN GOTO CONFIG_DISABLE_LOOP2
422 $ IF CONFIG_DEPENDENT_E .EQS. "," THEN GOTO CONFIG_DISABLE_LOOP2_END
423 $ CONFIG_DISABLED_'CONFIG_DEPENDENT_E' := YES
424 $ CONFIG_ENABLED_'CONFIG_DEPENDENT_E' := NO
425 $ ! Better not to assume defaults at this point...
426 $ CONFIG_CHANGED_'CONFIG_DEPENDENT_E' := YES
428 "''CONFIG_DEPENDENT_E' disabled by rule ''CONFIG_DISABLE_E'"
429 $ GOTO CONFIG_DISABLE_LOOP2
430 $ CONFIG_DISABLE_LOOP2_END:
432 $ GOTO CONFIG_DISABLE_LOOP0
433 $ CONFIG_DISABLE_LOOP0_END:
435 $! Apply cascading enable rules
436 $ CONFIG_ENABLE_I = 0
437 $ CONFIG_ENABLE_LOOP0:
438 $ CONFIG_ENABLE_E = F$EDIT(F$ELEMENT(CONFIG_ENABLE_I,";", -
439 CONFIG_ENABLE_RULES),"TRIM")
440 $ CONFIG_ENABLE_I = CONFIG_ENABLE_I + 1
441 $ IF CONFIG_ENABLE_E .EQS. "" THEN GOTO CONFIG_ENABLE_LOOP0
442 $ IF CONFIG_ENABLE_E .EQS. ";" THEN GOTO CONFIG_ENABLE_LOOP0_END
444 $ CONFIG_ENABLE_ALGOS = F$EDIT(F$ELEMENT(0,"/",CONFIG_ENABLE_E),"TRIM")
445 $ CONFIG_ENABLE_DEPENDENTS = F$EDIT(F$ELEMENT(1,"/",CONFIG_ENABLE_E),"TRIM")
448 $ CONFIG_ENABLE_LOOP1:
449 $ CONFIG_ALGO_E = F$EDIT(F$ELEMENT(CONFIG_ALGO_I,",", -
450 CONFIG_ENABLE_ALGOS),"TRIM")
451 $ CONFIG_ALGO_I = CONFIG_ALGO_I + 1
452 $ IF CONFIG_ALGO_E .EQS. "" THEN GOTO CONFIG_ENABLE_LOOP1
453 $ IF CONFIG_ALGO_E .EQS. "," THEN GOTO CONFIG_ENABLE_LOOP1_END
454 $ IF F$TYPE(CONFIG_ENABLED_'CONFIG_ALGO_E') .EQS. ""
458 $ IF .NOT. CONFIG_ENABLED_'CONFIG_ALGO_E' THEN TO_ENABLE := NO
460 $ GOTO CONFIG_ENABLE_LOOP1
461 $ CONFIG_ENABLE_LOOP1_END:
465 $ CONFIG_DEPENDENT_I = 0
466 $ CONFIG_ENABLE_LOOP2:
467 $ CONFIG_DEPENDENT_E = F$EDIT(F$ELEMENT(CONFIG_DEPENDENT_I,",", -
468 CONFIG_ENABLE_DEPENDENTS),"TRIM")
469 $ CONFIG_DEPENDENT_I = CONFIG_DEPENDENT_I + 1
470 $ IF CONFIG_DEPENDENT_E .EQS. "" THEN GOTO CONFIG_ENABLE_LOOP2
471 $ IF CONFIG_DEPENDENT_E .EQS. "," THEN GOTO CONFIG_ENABLE_LOOP2_END
472 $ CONFIG_DISABLED_'CONFIG_DEPENDENT_E' := NO
473 $ CONFIG_ENABLED_'CONFIG_DEPENDENT_E' := YES
474 $ ! Better not to assume defaults at this point...
475 $ CONFIG_CHANGED_'CONFIG_DEPENDENT_E' := YES
477 "''CONFIG_DEPENDENT_E' enabled by rule ''CONFIG_ENABLE_E'"
478 $ GOTO CONFIG_ENABLE_LOOP2
479 $ CONFIG_ENABLE_LOOP2_END:
481 $ GOTO CONFIG_ENABLE_LOOP0
482 $ CONFIG_ENABLE_LOOP0_END:
484 $! Write to the configuration
487 $ CONFIG_LOG_E = F$EDIT(F$ELEMENT(CONFIG_LOG_I,",",CONFIG_LOGICALS),"TRIM")
488 $ CONFIG_LOG_I = CONFIG_LOG_I + 1
489 $ IF CONFIG_LOG_E .EQS. "" THEN GOTO CONFIG_LOG_LOOP2
490 $ IF CONFIG_LOG_E .EQS. "," THEN GOTO CONFIG_LOG_LOOP2_END
491 $ IF CONFIG_CHANGED_'CONFIG_LOG_E'
493 $ IF CONFIG_DISABLED_'CONFIG_LOG_E'
495 $ WRITE H_FILE "#ifndef OPENSSL_NO_",CONFIG_LOG_E
496 $ WRITE H_FILE "# define OPENSSL_NO_",CONFIG_LOG_E
497 $ WRITE H_FILE "#endif"
499 $ WRITE H_FILE "#ifndef OPENSSL_",CONFIG_LOG_E
500 $ WRITE H_FILE "# define OPENSSL_",CONFIG_LOG_E
501 $ WRITE H_FILE "#endif"
504 $ GOTO CONFIG_LOG_LOOP2
505 $ CONFIG_LOG_LOOP2_END:
508 $ WRITE H_FILE "/* 2011-02-23 SMS."
509 $ WRITE H_FILE " * On VMS (V8.3), setvbuf() doesn't support a 64-bit"
510 $ WRITE H_FILE " * ""in"" pointer, and the help says:"
511 $ WRITE H_FILE " * Please note that the previously documented"
512 $ WRITE H_FILE " * value _IONBF is not supported."
513 $ WRITE H_FILE " * So, skip it on VMS."
515 $ WRITE H_FILE "#define OPENSSL_NO_SETVBUF_IONBF"
516 $ WRITE H_FILE "/* STCP support comes with TCPIP 5.7 ECO 2 "
517 $ WRITE H_FILE " * enable on newer systems / 2012-02-24 arpadffy */"
518 $ WRITE H_FILE "#define OPENSSL_NO_SCTP"
519 $ WRITE H_FILE "#define OPENSSL_NO_LIBUNBOUND"
522 $! Add in the common "crypto/opensslconf.h.in".
524 $ TYPE 'OPENSSLCONF_H_IN' /OUTPUT=H_FILE:
526 $ IF ARCH .NES. "VAX"
529 $! Write the non-VAX specific data
531 $ WRITE H_FILE "#if defined(HEADER_RC4_H)"
532 $ WRITE H_FILE "#undef RC4_INT"
533 $ WRITE H_FILE "#define RC4_INT unsigned int"
534 $ WRITE H_FILE "#undef RC4_CHUNK"
535 $ WRITE H_FILE "#define RC4_CHUNK unsigned long long"
536 $ WRITE H_FILE "#endif"
538 $ WRITE H_FILE "#if defined(HEADER_DES_LOCL_H)"
539 $ WRITE H_FILE "#undef DES_LONG"
540 $ WRITE H_FILE "#define DES_LONG unsigned int"
541 $ WRITE H_FILE "#undef DES_PTR"
542 $ WRITE H_FILE "#define DES_PTR"
543 $ WRITE H_FILE "#undef DES_RISC1"
544 $ WRITE H_FILE "#undef DES_RISC2"
545 $ WRITE H_FILE "#define DES_RISC1"
546 $ WRITE H_FILE "#undef DES_UNROLL"
547 $ WRITE H_FILE "#define DES_UNROLL"
548 $ WRITE H_FILE "#endif"
550 $ WRITE H_FILE "#if defined(HEADER_BN_H)"
551 $ WRITE H_FILE "#undef BN_LLONG" ! Never define with SIXTY_FOUR_BIT
552 $ WRITE H_FILE "#undef SIXTY_FOUR_BIT_LONG"
553 $ WRITE H_FILE "#undef SIXTY_FOUR_BIT"
554 $ WRITE H_FILE "#define SIXTY_FOUR_BIT"
555 $ WRITE H_FILE "#undef THIRTY_TWO_BIT"
556 $ WRITE H_FILE "#undef SIXTEEN_BIT"
557 $ WRITE H_FILE "#undef EIGHT_BIT"
558 $ WRITE H_FILE "#endif"
560 $ WRITE H_FILE "#undef OPENSSL_EXPORT_VAR_AS_FUNCTION"
566 $! Write the VAX specific data
568 $ WRITE H_FILE "#if defined(HEADER_RC4_H)"
569 $ WRITE H_FILE "#undef RC4_INT"
570 $ WRITE H_FILE "#define RC4_INT unsigned char"
571 $ WRITE H_FILE "#undef RC4_CHUNK"
572 $ WRITE H_FILE "#define RC4_CHUNK unsigned long"
573 $ WRITE H_FILE "#endif"
575 $ WRITE H_FILE "#if defined(HEADER_DES_LOCL_H)"
576 $ WRITE H_FILE "#undef DES_LONG"
577 $ WRITE H_FILE "#define DES_LONG unsigned long"
578 $ WRITE H_FILE "#undef DES_PTR"
579 $ WRITE H_FILE "#define DES_PTR"
580 $ WRITE H_FILE "#undef DES_RISC1"
581 $ WRITE H_FILE "#undef DES_RISC2"
582 $ WRITE H_FILE "#undef DES_UNROLL"
583 $ WRITE H_FILE "#endif"
585 $ WRITE H_FILE "#if defined(HEADER_BN_H)"
586 $ WRITE H_FILE "#undef BN_LLONG" ! VAX C/DEC C doesn't have long long
587 $ WRITE H_FILE "#undef SIXTY_FOUR_BIT_LONG"
588 $ WRITE H_FILE "#undef SIXTY_FOUR_BIT"
589 $ WRITE H_FILE "#undef THIRTY_TWO_BIT"
590 $ WRITE H_FILE "#define THIRTY_TWO_BIT"
591 $ WRITE H_FILE "#undef SIXTEEN_BIT"
592 $ WRITE H_FILE "#undef EIGHT_BIT"
593 $ WRITE H_FILE "#endif"
595 $! Oddly enough, the following symbol is tested in crypto/sha/sha512.c
596 $! before sha.h gets included (and HEADER_SHA_H defined), so we will not
597 $! protect this one...
598 $ WRITE H_FILE "#undef OPENSSL_NO_SHA512"
599 $ WRITE H_FILE "#define OPENSSL_NO_SHA512"
601 $ WRITE H_FILE "#undef OPENSSL_EXPORT_VAR_AS_FUNCTION"
602 $ WRITE H_FILE "#define OPENSSL_EXPORT_VAR_AS_FUNCTION"
608 $! Close the [.CRYPTO._xxx]OPENSSLCONF.H file
612 $! Purge The [.CRYPTO._xxx]OPENSSLCONF.H file
614 $ PURGE SYS$DISK:[.CRYPTO.'ARCHD']OPENSSLCONF.H
616 $! That's All, Time To RETURN.
620 $! Rebuild The "[.CRYPTO._xxx]BUILDINF.H" file.
624 $! Tell The User We Are Creating The [.CRYPTO._xxx]BUILDINF.H File.
626 $ WRITE SYS$OUTPUT "Creating [.CRYPTO.''ARCHD']BUILDINF.H Include File."
628 $! Create The [.CRYPTO._xxx]BUILDINF.H File.
630 $ BIH_NAME = "SYS$DISK:[.CRYPTO.''ARCHD']BUILDINF.H"
631 $ CREATE /FDL=SYS$INPUT: 'BIH_NAME'
635 $ OPEN /APPEND H_FILE 'bih_name'
637 $! Get The Current Date & Time.
641 $! Write The [.CRYPTO._xxx]BUILDINF.H File.
644 $ if (POINTER_SIZE .nes. "")
646 $ CFLAGS = CFLAGS+ "/POINTER_SIZE=''POINTER_SIZE'"
650 $ if (CFLAGS .nes. "") then CFLAGS = CFLAGS+ " "
651 $ CFLAGS = CFLAGS+ "/DEFINE=ZLIB"
654 $ WRITE H_FILE "#define CFLAGS ""''CFLAGS'"""
655 $ WRITE H_FILE "#define PLATFORM ""VMS ''ARCHD' ''VMS_VERSION'"""
656 $ WRITE H_FILE "#define DATE ""''TIME'"" "
658 $! Close The [.CRYPTO._xxx]BUILDINF.H File.
662 $! Purge The [.CRYPTO._xxx]BUILDINF.H File.
664 $ PURGE SYS$DISK:[.CRYPTO.'ARCHD']BUILDINF.H
666 $! Delete [.CRYPTO]BUILDINF.H File, as there might be some residue from Unix.
668 $ IF F$SEARCH("[.CRYPTO]BUILDINF.H") .NES. "" THEN -
669 DELETE SYS$DISK:[.CRYPTO]BUILDINF.H;*
671 $! That's All, Time To RETURN.
675 $! Copy a lot of files around.
679 $!!!! Tell The User We Are Partly Rebuilding The [.APPS] Directory.
681 $!!! WRITE SYS$OUTPUT "Rebuilding The '[.APPS]MD4.C' File."
683 $!!! DELETE SYS$DISK:[.APPS]MD4.C;*
685 $!!!! Copy MD4.C from [.CRYPTO.MD4] into [.APPS]
687 $!!! COPY SYS$DISK:[.CRYPTO.MD4]MD4.C SYS$DISK:[.APPS]
689 $! Ensure that the [.include.openssl] directory contains a full set of
690 $! real header files. The distribution kit may have left real or fake
691 $! symlinks there. Rather than think about what's there, simply delete
692 $! the destination files (fake or real symlinks) before copying the real
693 $! header files in. (Copying a real header file onto a real symlink
694 $! merely duplicates the real header file at its source.)
696 $! Tell The User We Are Rebuilding The [.include.openssl] Directory.
698 $ WRITE SYS$OUTPUT "Rebuilding The '[.include.openssl]' Directory."
700 $! First, make sure the directory exists. If it did exist, delete all
701 $! the existing header files (or fake or real symlinks).
703 $ if f$parse( "sys$disk:[.include.openssl]") .eqs. ""
705 $ create /directory sys$disk:[.include.openssl]
707 $ delete sys$disk:[.include.openssl]*.h;*
710 $! Copy All The ".H" Files From The Main Directory.
712 $ EXHEADER := e_os2.h
713 $ copy 'exheader' sys$disk:[.include.openssl]
715 $! Copy All The ".H" Files From The [.CRYPTO] Directory Tree.
720 MD4, MD5, SHA, MDC2, HMAC, RIPEMD, WHRLPOOL, -
721 DES, AES, RC2, RC4, IDEA, BF, CAST, CAMELLIA, SEED, MODES, -
722 BN, EC, RSA, DSA, ECDSA, DH, ECDH, DSO, ENGINE, -
723 BUFFER, BIO, STACK, LHASH, RAND, ERR, -
724 EVP, ASN1, PEM, X509, X509V3, CONF, TXT_DB, PKCS7, PKCS12, -
725 COMP, OCSP, UI, KRB5, -
726 CMS, PQUEUE, TS, JPAKE, SRP, STORE, CMAC
728 $ EXHEADER_ := crypto.h, opensslv.h, ebcdic.h, symhacks.h, ossl_typ.h
729 $ EXHEADER_'ARCHD' := opensslconf.h
730 $ EXHEADER_OBJECTS := objects.h, obj_mac.h
731 $ EXHEADER_MD2 := md2.h
732 $ EXHEADER_MD4 := md4.h
733 $ EXHEADER_MD5 := md5.h
734 $ EXHEADER_SHA := sha.h
735 $ EXHEADER_MDC2 := mdc2.h
736 $ EXHEADER_HMAC := hmac.h
737 $ EXHEADER_RIPEMD := ripemd.h
738 $ EXHEADER_WHRLPOOL := whrlpool.h
739 $ EXHEADER_DES := des.h, des_old.h
740 $ EXHEADER_AES := aes.h
741 $ EXHEADER_RC2 := rc2.h
742 $ EXHEADER_RC4 := rc4.h
743 $ EXHEADER_RC5 := rc5.h
744 $ EXHEADER_IDEA := idea.h
745 $ EXHEADER_BF := blowfish.h
746 $ EXHEADER_CAST := cast.h
747 $ EXHEADER_CAMELLIA := camellia.h
748 $ EXHEADER_SEED := seed.h
749 $ EXHEADER_MODES := modes.h
750 $ EXHEADER_BN := bn.h
751 $ EXHEADER_EC := ec.h
752 $ EXHEADER_RSA := rsa.h
753 $ EXHEADER_DSA := dsa.h
754 $ EXHEADER_ECDSA := ecdsa.h
755 $ EXHEADER_DH := dh.h
756 $ EXHEADER_ECDH := ecdh.h
757 $ EXHEADER_DSO := dso.h
758 $ EXHEADER_ENGINE := engine.h
759 $ EXHEADER_BUFFER := buffer.h
760 $ EXHEADER_BIO := bio.h
761 $ EXHEADER_STACK := stack.h, safestack.h
762 $ EXHEADER_LHASH := lhash.h
763 $ EXHEADER_RAND := rand.h
764 $ EXHEADER_ERR := err.h
765 $ EXHEADER_EVP := evp.h
766 $ EXHEADER_ASN1 := asn1.h, asn1_mac.h, asn1t.h
767 $ EXHEADER_PEM := pem.h, pem2.h
768 $ EXHEADER_X509 := x509.h, x509_vfy.h
769 $ EXHEADER_X509V3 := x509v3.h
770 $ EXHEADER_CONF := conf.h, conf_api.h
771 $ EXHEADER_TXT_DB := txt_db.h
772 $ EXHEADER_PKCS7 := pkcs7.h
773 $ EXHEADER_PKCS12 := pkcs12.h
774 $ EXHEADER_COMP := comp.h
775 $ EXHEADER_OCSP := ocsp.h
776 $ EXHEADER_UI := ui.h, ui_compat.h
777 $ EXHEADER_KRB5 := krb5_asn.h
778 $ EXHEADER_CMS := cms.h
779 $ EXHEADER_PQUEUE := pqueue.h
780 $ EXHEADER_TS := ts.h
781 $ EXHEADER_JPAKE := jpake.h
782 $ EXHEADER_SRP := srp.h
783 $!!! EXHEADER_STORE := store.h, str_compat.h
784 $ EXHEADER_STORE := store.h
785 $ EXHEADER_CMAC := cmac.h
789 $ sdir = f$edit( f$element( i, ",", sdirs), "trim")
791 $ if (sdir .eqs. ",") then goto loop_sdirs_end
792 $ hdr_list = exheader_'sdir'
793 $ if (sdir .nes. "") then sdir = "."+ sdir
794 $ copy [.crypto'sdir']'hdr_list' sys$disk:[.include.openssl]
798 $! Copy All The ".H" Files From The [.SSL] Directory.
800 $! (keep these in the same order as ssl/Makefile)
801 $ EXHEADER := ssl.h, ssl2.h, ssl3.h, ssl23.h, tls1.h, dtls1.h, kssl.h, srtp.h
802 $ copy sys$disk:[.ssl]'exheader' sys$disk:[.include.openssl]
804 $! Purge the [.include.openssl] header files.
806 $ purge sys$disk:[.include.openssl]*.h
808 $! That's All, Time To RETURN.
812 $! Build The "[.xxx.EXE.CRYPTO]SSL_LIBCRYPTO''LIB32'.OLB" Library.
816 $! Tell The User What We Are Doing.
818 $ WRITE SYS$OUTPUT ""
820 "Building The [.",ARCHD,".EXE.CRYPTO]SSL_LIBCRYPTO''LIB32'.OLB Library."
822 $! Go To The [.CRYPTO] Directory.
824 $ SET DEFAULT SYS$DISK:[.CRYPTO]
826 $! Build The [.xxx.EXE.CRYPTO]LIBCRYPTO.OLB Library.
828 $ @CRYPTO-LIB LIBRARY 'DEBUGGER' "''COMPILER'" "''TCPIP_TYPE'" -
829 "''ISSEVEN'" "''BUILDPART'" "''POINTER_SIZE'" "''ZLIB'"
831 $! Build The [.xxx.EXE.CRYPTO]*.EXE Test Applications.
833 $!!! DISABLED, as these test programs lack any support
834 $!!!$ @CRYPTO-LIB APPS 'DEBUGGER' "''COMPILER'" "''TCPIP_TYPE'" -
835 $!!! "''ISSEVEN'" "''BUILDPART'" "''POINTER_SIZE'" "''ZLIB'"
837 $! Go Back To The Main Directory.
845 $! Build The "[.xxx.EXE.SSL]SSL_LIBSSL''LIB32'.OLB" Library.
849 $! Tell The User What We Are Doing.
851 $ WRITE SYS$OUTPUT ""
853 "Building The [.",ARCHD,".EXE.SSL]SSL_LIBSSL''LIB32'.OLB Library."
855 $! Go To The [.SSL] Directory.
857 $ SET DEFAULT SYS$DISK:[.SSL]
859 $! Build The [.xxx.EXE.SSL]LIBSSL.OLB Library.
861 $ @SSL-LIB LIBRARY 'DEBUGGER' "''COMPILER'" "''TCPIP_TYPE'" -
862 "''ISSEVEN'" "''POINTER_SIZE'" "''ZLIB'"
864 $! Go Back To The Main Directory.
872 $! Build The "[.xxx.EXE.SSL]SSL_TASK.EXE" Program.
876 $! Tell The User What We Are Doing.
878 $ WRITE SYS$OUTPUT ""
880 "Building DECNet Based SSL Engine, [.",ARCHD,".EXE.SSL]SSL_TASK.EXE"
882 $! Go To The [.SSL] Directory.
884 $ SET DEFAULT SYS$DISK:[.SSL]
886 $! Build The [.xxx.EXE.SSL]SSL_TASK.EXE
888 $ @SSL-LIB SSL_TASK 'DEBUGGER' "''COMPILER'" "''TCPIP_TYPE'" -
889 "''ISSEVEN'" "''POINTER_SIZE'" "''ZLIB'"
891 $! Go Back To The Main Directory.
895 $! That's All, Time To RETURN.
899 $! Build The OpenSSL Test Programs.
903 $! Tell The User What We Are Doing.
905 $ WRITE SYS$OUTPUT ""
906 $ WRITE SYS$OUTPUT "Building The OpenSSL [.",ARCHD,".EXE.TEST] Test Utilities."
908 $! Go To The [.TEST] Directory.
910 $ SET DEFAULT SYS$DISK:[.TEST]
912 $! Build The Test Programs.
914 $ @MAKETESTS 'DEBUGGER' "''COMPILER'" "''TCPIP_TYPE'" "''ISSEVEN'" -
915 "''POINTER_SIZE'" "''ZLIB'"
917 $! Go Back To The Main Directory.
921 $! That's All, Time To RETURN.
925 $! Build The OpenSSL Application Programs.
929 $! Tell The User What We Are Doing.
931 $ WRITE SYS$OUTPUT ""
932 $ WRITE SYS$OUTPUT "Building OpenSSL [.",ARCHD,".EXE.APPS] Applications."
934 $! Go To The [.APPS] Directory.
936 $ SET DEFAULT SYS$DISK:[.APPS]
938 $! Build The Application Programs.
940 $ @MAKEAPPS 'DEBUGGER' "''COMPILER'" "''TCPIP_TYPE'" "''ISSEVEN'" -
941 "" "''POINTER_SIZE'" "''ZLIB'"
943 $! Go Back To The Main Directory.
947 $! That's All, Time To RETURN.
951 $! Build The OpenSSL Application Programs.
955 $! Tell The User What We Are Doing.
957 $ WRITE SYS$OUTPUT ""
958 $ WRITE SYS$OUTPUT "Building OpenSSL [.",ARCHD,".EXE.ENGINES] Engines."
960 $! Go To The [.ENGINES] Directory.
962 $ SET DEFAULT SYS$DISK:[.ENGINES]
964 $! Build The Application Programs.
966 $ @MAKEENGINES ENGINES 'DEBUGGER' "''COMPILER'" "''TCPIP_TYPE'" -
967 "''ISSEVEN'" "''BUILDPART'" "''POINTER_SIZE'" "''ZLIB'"
969 $! Go Back To The Main Directory.
973 $! That's All, Time To RETURN.
977 $! Check The User's Options.
981 $! Check if there's a "part", and separate it out
983 $ BUILDPART = F$ELEMENT(1,"/",P1)
984 $ IF BUILDPART .EQS. "/"
988 $ P1 = F$EXTRACT(0,F$LENGTH(P1) - F$LENGTH(BUILDPART) - 1, P1)
991 $! Check To See If P1 Is Blank.
996 $! P1 Is ALL, So Build Everything.
998 $ BUILDCOMMAND = "ALL"
1004 $! Else, Check To See If P1 Has A Valid Argument.
1006 $ IF (P1.EQS."CONFIG").OR.(P1.EQS."BUILDINF").OR.(P1.EQS."SOFTLINKS") -
1007 .OR.(P1.EQS."BUILDALL") -
1008 .OR.(P1.EQS."CRYPTO").OR.(P1.EQS."SSL") -
1009 .OR.(P1.EQS."SSL_TASK").OR.(P1.EQS."TEST").OR.(P1.EQS."APPS") -
1010 .OR.(P1.EQS."ENGINES")
1013 $! A Valid Argument.
1021 $! Tell The User We Don't Know What They Want.
1023 $ WRITE SYS$OUTPUT ""
1024 $ WRITE SYS$OUTPUT "USAGE: @MAKEVMS.COM [Target] [Pointer size] [Debug option] <Compiler> <TCP/IP library>"
1025 $ WRITE SYS$OUTPUT ""
1026 $ WRITE SYS$OUTPUT "Example: @MAKEVMS.COM ALL """" NODEBUG DECC TCPIP"
1027 $ WRITE SYS$OUTPUT ""
1028 $ WRITE SYS$OUTPUT "The Target ",P1," Is Invalid. The Valid Target Options Are:"
1029 $ WRITE SYS$OUTPUT ""
1030 $ WRITE SYS$OUTPUT " ALL : Just Build Everything."
1031 $ WRITE SYS$OUTPUT " CONFIG : Just build the [.CRYPTO._xxx]OPENSSLCONF.H file."
1032 $ WRITE SYS$OUTPUT " BUILDINF : Just build the [.CRYPTO._xxx]BUILDINF.H file."
1033 $ WRITE SYS$OUTPUT " SOFTLINKS: Just Fix The Unix soft links."
1034 $ WRITE SYS$OUTPUT " BUILDALL : Same as ALL, except CONFIG, BUILDINF and SOFTILNKS aren't done."
1035 $ WRITE SYS$OUTPUT " CRYPTO : To Build Just The [.xxx.EXE.CRYPTO]LIBCRYPTO.OLB Library."
1036 $ WRITE SYS$OUTPUT " CRYPTO/x : To Build Just The x Part Of The"
1037 $ WRITE SYS$OUTPUT " [.xxx.EXE.CRYPTO]LIBCRYPTO.OLB Library."
1038 $ WRITE SYS$OUTPUT " SSL : To Build Just The [.xxx.EXE.SSL]LIBSSL.OLB Library."
1039 $ WRITE SYS$OUTPUT " SSL_TASK : To Build Just The [.xxx.EXE.SSL]SSL_TASK.EXE Program."
1040 $ WRITE SYS$OUTPUT " TEST : To Build Just The OpenSSL Test Programs."
1041 $ WRITE SYS$OUTPUT " APPS : To Build Just The OpenSSL Application Programs."
1042 $ WRITE SYS$OUTPUT " ENGINES : To Build Just The ENGINES"
1043 $ WRITE SYS$OUTPUT ""
1044 $ WRITE SYS$OUTPUT " Where 'xxx' Stands For:"
1045 $ WRITE SYS$OUTPUT ""
1046 $ WRITE SYS$OUTPUT " ALPHA[64]: Alpha Architecture."
1047 $ WRITE SYS$OUTPUT " IA64[64] : IA64 Architecture."
1048 $ WRITE SYS$OUTPUT " VAX : VAX Architecture."
1049 $ WRITE SYS$OUTPUT ""
1055 $! End The Valid Argument Check.
1059 $! End The P1 Check.
1063 $! Check P2 (POINTER_SIZE).
1065 $ IF (P2 .NES. "") .AND. (ARCH .NES. "VAX")
1068 $ IF (P2 .EQS. "32")
1070 $ POINTER_SIZE = "32"
1072 $ POINTER_SIZE = F$EDIT( P2, "COLLAPSE, UPCASE")
1073 $ IF ((POINTER_SIZE .EQS. "64") .OR. -
1074 (POINTER_SIZE .EQS. "64=") .OR. -
1075 (POINTER_SIZE .EQS. "64=ARGV"))
1077 $ ARCHD = ARCH+ "_64"
1081 $! Tell The User Entered An Invalid Option.
1083 $ WRITE SYS$OUTPUT ""
1084 $ WRITE SYS$OUTPUT "The Option ", P2, -
1085 " Is Invalid. The Valid Options Are:"
1086 $ WRITE SYS$OUTPUT ""
1087 $ WRITE SYS$OUTPUT -
1088 " """" : Compile with default (short) pointers."
1089 $ WRITE SYS$OUTPUT -
1090 " 32 : Compile with 32-bit (short) pointers."
1091 $ WRITE SYS$OUTPUT -
1092 " 64 : Compile with 64-bit (long) pointers (auto ARGV)."
1093 $ WRITE SYS$OUTPUT -
1094 " 64= : Compile with 64-bit (long) pointers (no ARGV)."
1095 $ WRITE SYS$OUTPUT -
1096 " 64=ARGV : Compile with 64-bit (long) pointers (ARGV)."
1097 $ WRITE SYS$OUTPUT ""
1107 $! End The P2 (POINTER_SIZE) Check.
1111 $! Check To See If P3 Is Blank.
1113 $ IF (P3.EQS."NODEBUG")
1116 $! P3 Is NODEBUG, So Compile Without Debugger Information.
1118 $ DEBUGGER = "NODEBUG"
1124 $! Check To See If We Are To Compile With Debugger Information.
1126 $ IF (P3.EQS."DEBUG")
1129 $! Compile With Debugger Information.
1131 $ DEBUGGER = "DEBUG"
1137 $! Tell The User Entered An Invalid Option.
1139 $ WRITE SYS$OUTPUT ""
1140 $ WRITE SYS$OUTPUT "The Option ",P3," Is Invalid. The Valid Options Are:"
1141 $ WRITE SYS$OUTPUT ""
1142 $ WRITE SYS$OUTPUT " DEBUG : Compile With The Debugger Information."
1143 $ WRITE SYS$OUTPUT " NODEBUG : Compile Without The Debugger Information."
1144 $ WRITE SYS$OUTPUT ""
1150 $! End The Valid Argument Check.
1154 $! End The P3 Check.
1158 $! Check To See If P4 Is Blank.
1163 $! O.K., The User Didn't Specify A Compiler, Let's Try To
1164 $! Find Out Which One To Use.
1166 $! Check To See If We Have GNU C.
1168 $ IF (F$TRNLNM("GNU_CC").NES."")
1171 $! Looks Like GNUC, Set To Use GNUC.
1175 $! Tell The User We Are Using GNUC.
1177 $ WRITE SYS$OUTPUT "Using GNU 'C' Compiler."
1179 $! End The GNU C Compiler Check.
1183 $! Check To See If We Have VAXC Or DECC.
1185 $ IF (F$GETSYI("CPU").GE.128).OR.(F$TRNLNM("DECC$CC_DEFAULT").EQS."/DECC")
1188 $! Looks Like DECC, Set To Use DECC.
1192 $! Tell The User We Are Using DECC.
1194 $ WRITE SYS$OUTPUT "Using DECC 'C' Compiler."
1200 $! Looks Like VAXC, Set To Use VAXC.
1204 $! Tell The User We Are Using VAX C.
1206 $ WRITE SYS$OUTPUT "Using VAXC 'C' Compiler."
1208 $! End The DECC & VAXC Compiler Check.
1216 $! Check To See If The User Entered A Valid Parameter.
1218 $ IF (P4.EQS."VAXC").OR.(P4.EQS."DECC").OR.(P4.EQS."GNUC")!.OR.(P4.EQS."LINK")
1221 $! Check To See If The User Wanted To Just LINK.
1223 $ IF (P4.EQS."LINK")
1226 $! Looks Like LINK-only
1230 $! Tell The User We Are Only Linking.
1232 $ WRITE SYS$OUTPUT "LINK Only. This actually NOT YET SUPPORTED!"
1238 $! Check To See If The User Wanted DECC.
1240 $ IF (P4.EQS."DECC")
1243 $! Looks Like DECC, Set To Use DECC.
1247 $! Tell The User We Are Using DECC.
1249 $ WRITE SYS$OUTPUT "Using DECC 'C' Compiler."
1255 $! Check To See If We Are To Use VAXC.
1257 $ IF (P4.EQS."VAXC")
1260 $! Looks Like VAXC, Set To Use VAXC.
1264 $! Tell The User We Are Using VAX C.
1266 $ WRITE SYS$OUTPUT "Using VAXC 'C' Compiler."
1272 $! Check To See If We Are To Use GNU C.
1274 $ IF (P4.EQS."GNUC")
1277 $! Looks Like GNUC, Set To Use GNUC.
1281 $! Tell The User We Are Using GNUC.
1283 $ WRITE SYS$OUTPUT "Using GNU 'C' Compiler."
1285 $! End The GNU C Check.
1289 $! Else The User Entered An Invalid Argument.
1293 $! Tell The User We Don't Know What They Want.
1295 $ WRITE SYS$OUTPUT ""
1296 $ WRITE SYS$OUTPUT "The Option ",P4," Is Invalid. The Valid Options Are:"
1297 $ WRITE SYS$OUTPUT ""
1298 $ WRITE SYS$OUTPUT " VAXC : To Compile With VAX C."
1299 $ WRITE SYS$OUTPUT " DECC : To Compile With DEC C."
1300 $ WRITE SYS$OUTPUT " GNUC : To Compile With GNU C."
1301 $ WRITE SYS$OUTPUT ""
1307 $! End The Valid Argument Check.
1311 $! End The P4 Check.
1315 $! Time to check the contents of P5, and to make sure we get the correct
1318 $ IF P5.EQS."SOCKETSHR" .OR. P5.EQS."MULTINET" .OR. P5.EQS."UCX" -
1319 .OR. P5.EQS."TCPIP" .OR. P5.EQS."NONE"
1322 $! Check to see if SOCKETSHR was chosen
1324 $ IF P5.EQS."SOCKETSHR"
1327 $! Set the library to use SOCKETSHR
1329 $ TCPIP_LIB = "SYS$DISK:[-.VMS]SOCKETSHR_SHR.OPT /OPTIONS"
1333 $ WRITE SYS$OUTPUT "Using SOCKETSHR for TCP/IP"
1335 $! Done with SOCKETSHR
1339 $! Check to see if MULTINET was chosen
1341 $ IF P5.EQS."MULTINET"
1344 $! Set the library to use UCX emulation.
1350 $ WRITE SYS$OUTPUT "Using MultiNet via UCX emulation for TCP/IP"
1352 $! Done with MULTINET
1356 $! Check to see if UCX was chosen
1361 $! Set the library to use UCX.
1363 $ TCPIP_LIB = "SYS$DISK:[-.VMS]UCX_SHR_DECC.OPT /OPTIONS"
1367 $ WRITE SYS$OUTPUT "Using UCX or an emulation thereof for TCP/IP"
1373 $! Check to see if TCPIP was chosen
1378 $! Set the library to use TCPIP (post UCX).
1380 $ TCPIP_LIB = "SYS$DISK:[-.VMS]TCPIP_SHR_DECC.OPT /OPTIONS"
1384 $ WRITE SYS$OUTPUT "Using TCPIP (post UCX) for TCP/IP"
1390 $! Check to see if NONE was chosen
1395 $! Do not use a TCPIP library.
1401 $ WRITE SYS$OUTPUT "A specific TCPIP library will not be used."
1407 $! Set the TCPIP_TYPE symbol
1413 $ WRITE SYS$OUTPUT "TCP/IP library spec: ", TCPIP_LIB
1415 $! Else The User Entered An Invalid Argument.
1421 $! Tell The User We Don't Know What They Want.
1423 $ WRITE SYS$OUTPUT ""
1424 $ WRITE SYS$OUTPUT "The Option ",P5," Is Invalid. The Valid Options Are:"
1425 $ WRITE SYS$OUTPUT ""
1426 $ WRITE SYS$OUTPUT " SOCKETSHR : To link with SOCKETSHR TCP/IP library."
1427 $ WRITE SYS$OUTPUT " UCX : To link with UCX TCP/IP library."
1428 $ WRITE SYS$OUTPUT " TCPIP : To link with TCPIP TCP/IP (post UCX) library."
1429 $ WRITE SYS$OUTPUT " NONE : To not link with a specific TCP/IP library."
1430 $ WRITE SYS$OUTPUT ""
1437 $! If TCPIP is not defined, then hardcode it to make
1438 $! it clear that no TCPIP is desired.
1443 $ TCPIP_TYPE = "NONE"
1446 $! Set the TCPIP_TYPE symbol
1452 $! Done with TCP/IP libraries
1456 $! Special Threads For OpenVMS v7.1 Or Later
1458 $! Written By: Richard Levitte
1459 $! richard@levitte.org
1462 $! Check To See If We Have A Option For P6.
1467 $! Get The Version Of VMS We Are Using.
1470 $ TMP = F$ELEMENT(0,"-",F$EXTRACT(1,4,VMS_VERSION))
1471 $ TMP = F$INTEGER(F$ELEMENT(0,".",TMP)+F$ELEMENT(1,".",TMP))
1473 $! Check To See If The VMS Version Is v7.1 Or Later.
1478 $! We Have OpenVMS v7.1 Or Later, So Use The Special Threads.
1480 $ ISSEVEN := ,PTHREAD_USE_D4
1482 $! End The VMS Version Check.
1486 $! End The P6 Check.
1491 $! Check To See If We Have A ZLIB Option.
1494 $ IF (ZLIB .NES. "")
1497 $! Check for expected ZLIB files.
1500 $ file1 = f$parse( "zlib.h", ZLIB, , , "SYNTAX_ONLY")
1501 $ if (f$search( file1) .eqs. "")
1503 $ WRITE SYS$OUTPUT ""
1504 $ WRITE SYS$OUTPUT "The Option ", ZLIB, " Is Invalid."
1505 $ WRITE SYS$OUTPUT " Can't find header: ''file1'"
1509 $ file2 = f$parse( ZLIB, "libz.olb", , , "SYNTAX_ONLY")
1510 $ if (f$search( file2) .eqs. "")
1514 $ WRITE SYS$OUTPUT ""
1515 $ WRITE SYS$OUTPUT "The Option ", ZLIB, " Is Invalid."
1517 $ WRITE SYS$OUTPUT " Can't find library: ''file2'"
1518 $ WRITE SYS$OUTPUT ""
1523 $ WRITE SYS$OUTPUT ""
1533 $ WRITE SYS$OUTPUT "ZLIB library spec: ", file2
1535 $! End The ZLIB Check.
1539 $! Time To RETURN...
1545 $! Close any open files.
1547 $ if (f$trnlnm( "h_file", "LNM$PROCESS", 0, "SUPERVISOR") .nes. "") then -
1550 $! Restore the original default device:[directory].
1552 $ SET DEFAULT 'DEF_ORIG'