3 $! Written By: Richard Levitte
6 $! This command file compiles and creates the various engines in form
7 $! of shared images. They are placed in [.xxx.EXE.ENGINES], where "xxx"
8 $! is either AXP or VAX depending on your hardware.
10 $! P1 if this is ENGINES or ALL, the engines will build, otherwise not.
12 $! P2 DEBUG or NODEBUG to compile with or without debugger information.
16 $! GNUC for GNU C (untested)
18 $! P4 if defined, sets the TCP/IP libraries to use. UCX or TCPIP is
19 $! used by default since most other implementations come with a
20 $! compatibility library. The value must be one of the following:
23 $! SOCKETSHR for SOCKETSHR+NETLIB
24 $! TCPIP for TCPIP (post UCX)
26 $! P5 if defined, tells the compiler not to use special threads.
28 $! P6 if defined, denotes which engines to build. If not defined,
29 $! all available engines are built.
31 $!-----------------------------------------------------------------------------
33 $! Set the names of the engines we want to build
36 $ IF ENGINES .EQS. "," THEN -
37 ENGINES = ",4758_cca,aep,atalla,cswift,ncipher,nuron,sureware,ubsec"
39 $! Set the default TCP/IP library to link against if needed
43 $! Set the architecture name
46 $ IF F$GETSYI("CPU") .GE. 128 THEN ARCH := AXP
48 $! Set the goal directories, and creat them if necessary
50 $ OBJ_DIR := SYS$DISK:[-.'ARCH'.OBJ.ENGINES]
51 $ EXE_DIR := SYS$DISK:[-.'ARCH'.EXE.ENGINES]
52 $ IF F$PARSE(OBJ_DIR) .EQS. "" THEN CREATE/DIRECTORY 'OBJ_DIR'
53 $ IF F$PARSE(EXE_DIR) .EQS. "" THEN CREATE/DIRECTORY 'EXE_DIR'
55 $! Set the goal files, and create them if necessary
57 $ CRYPTO_LIB :=SYS$DISK:[-.'ARCH'.EXE.CRYPTO]LIBCRYPTO.OLB
58 $ CRYPTO_EXE :=SYS$DISK:[-.'ARCH'.EXE.CRYPTO]LIBCRYPTO.EXE
59 $ IF F$SEARCH(CRYPTO_LIB) .EQS. "" THEN LIBRARY/CREATE/OBJECT 'CRYPTO_LIB'
61 $! OK, time to check options and initialise
64 $ ACCEPT_PHASE = "ALL,ENGINES"
68 $ OPT_SPECIAL_THREADS = P5
72 $ GOSUB CHECK_OPT_FILE
74 $! Define what goes into each engine
79 $ ENGINE_ = "engine_vector.mar"
80 $ EXTRA_OBJ := ,'OBJ_DIR'ENGINE_VECTOR.OBJ
82 $ ENGINE_4758_CCA = "e_4758_cca"
83 $ ENGINE_aep = "e_aep"
84 $ ENGINE_atalla = "e_atalla"
85 $ ENGINE_cswift = "e_cswift"
86 $ ENGINE_ncipher = "e_ncipher"
87 $ ENGINE_nuron = "e_nuron"
88 $ ENGINE_sureware = "e_sureware"
89 $ ENGINE_ubsec = "e_ubsec"
91 $! Define which programs need to be linked with a TCP/IP library
93 $ TCPIP_ENGINES = ",,"
94 $ IF COMPILER .EQS. "VAXC" THEN -
97 $! Set up two loops, one that keeps track of the engines,
98 $! and one that keeps track of all the files going into
99 $! the current engine.
101 $! Here's the start of the engine loop.
106 $! Extract the current engine name, and if we've reached the end, stop
108 $ ENGINE_NAME = F$ELEMENT(ENGINE_COUNTER,",",ENGINES)
109 $ IF (ENGINE_NAME.EQS.",") THEN GOTO ENGINE_DONE
111 $ ENGINE_COUNTER = ENGINE_COUNTER + 1
113 $! Set up the engine library names.
115 $ LIB_ENGINE = "ENGINE_" + ENGINE_NAME
117 $! Check if the library module name actually is defined
119 $ IF F$TYPE('LIB_ENGINE') .EQS. ""
122 $ WRITE SYS$ERROR "The module ",ENGINE_NAME," does not exist. Continuing..."
129 $ IF ENGINE_NAME .NES. ""
131 $ WRITE SYS$OUTPUT "Compiling The ",ENGINE_NAME," Library Files. (",BUILDALL,")"
133 $ WRITE SYS$OUTPUT "Compiling Support Files. (",BUILDALL,")"
136 $! Here's the start of per-engine module loop.
141 $! Extract the file name from the file list, and if we've reached the end, stop
143 $ FILE_NAME = F$ELEMENT(FILE_COUNTER,",",'LIB_ENGINE')
144 $ IF (FILE_NAME.EQS.",") THEN GOTO FILE_DONE
146 $ FILE_COUNTER = FILE_COUNTER + 1
148 $ IF FILE_NAME .EQS. "" THEN GOTO FILE_NEXT
150 $! Set up the source and object reference
152 $ SOURCE_FILE = F$PARSE(FILE_NAME,"SYS$DISK:[].C",,,"SYNTAX_ONLY")
153 $ OBJECT_FILE = OBJ_DIR + F$PARSE(FILE_NAME,,,"NAME","SYNTAX_ONLY") + ".OBJ"
155 $! If we get some problem, we just go on trying to build the next module.
156 $ ON WARNING THEN GOTO FILE_NEXT
158 $! Check if the module we want to compile is actually there.
160 $ IF F$SEARCH(SOURCE_FILE) .EQS. ""
162 $ WRITE SYS$OUTPUT ""
163 $ WRITE SYS$OUTPUT "The File ",SOURCE_FILE," Doesn't Exist."
164 $ WRITE SYS$OUTPUT ""
170 $ WRITE SYS$OUTPUT " ",FILE_NAME,""
172 $! Do the dirty work.
174 $ ON ERROR THEN GOTO FILE_NEXT
175 $ IF FILE_NAME - ".MAR" .NES. FILE_NAME
177 $ MACRO/OBJECT='OBJECT_FILE' 'SOURCE_FILE'
179 $ CC/OBJECT='OBJECT_FILE' 'SOURCE_FILE'
182 $! Now, there are two ways to handle this. We can either build
183 $! shareable images or stick the engine object file into libcrypto.
184 $! For now, the latter is NOT supported.
186 $!!!!! LIBRARY/REPLACE 'CRYPTO_LIB' 'OBJECT_FILE'
188 $! For shareable libraries, we need to do things a little differently
189 $! depending on if we link with a TCP/IP library or not.
191 $ ENGINE_OPT := SYS$DISK:[]'ARCH'.OPT
192 $ IF TCPIP_LIB .NES. ""
194 $ LINK/'DEBUGGER'/'TRACEBACK' /SHARE='EXE_DIR''ENGINE_NAME'.EXE -
195 'OBJECT_FILE''EXTRA_OBJ', -
196 'CRYPTO_LIB'/LIBRARY, -
197 'ENGINE_OPT'/OPTION,'TCPIP_LIB','OPT_FILE'/OPTION
199 $ LINK/'DEBUGGER'/'TRACEBACK' /SHARE='EXE_DIR''ENGINE_NAME'.EXE -
200 'OBJECT_FILE''EXTRA_OBJ', -
201 'CRYPTO_LIB'/LIBRARY, -
202 'ENGINE_OPT'/OPTION,'OPT_FILE'/OPTION
207 $ DELETE 'OBJECT_FILE';*
223 $ WRITE SYS$OUTPUT "All Done..."
228 $! Check For The Link Option FIle.
232 $! Check To See If We Need To Make A VAX C Option File.
234 $ IF (COMPILER.EQS."VAXC")
237 $! Check To See If We Already Have A VAX C Linker Option File.
239 $ IF (F$SEARCH(OPT_FILE).EQS."")
242 $! We Need A VAX C Linker Option File.
247 ! Default System Options File To Link Agianst
248 ! The Sharable VAX C Runtime Library.
250 SYS$SHARE:VAXCRTL.EXE/SHARE
253 $! End The Option File Check.
257 $! End The VAXC Check.
261 $! Check To See If We Need A GNU C Option File.
263 $ IF (COMPILER.EQS."GNUC")
266 $! Check To See If We Already Have A GNU C Linker Option File.
268 $ IF (F$SEARCH(OPT_FILE).EQS."")
271 $! We Need A GNU C Linker Option File.
276 ! Default System Options File To Link Agianst
277 ! The Sharable C Runtime Library.
279 GNU_CC:[000000]GCCLIB/LIBRARY
280 SYS$SHARE:VAXCRTL/SHARE
283 $! End The Option File Check.
287 $! End The GNU C Check.
291 $! Check To See If We Need A DEC C Option File.
293 $ IF (COMPILER.EQS."DECC")
296 $! Check To See If We Already Have A DEC C Linker Option File.
298 $ IF (F$SEARCH(OPT_FILE).EQS."")
301 $! Figure Out If We Need An AXP Or A VAX Linker Option File.
303 $ IF ARCH .EQS. "VAX"
306 $! We Need A DEC C Linker Option File For VAX.
311 ! Default System Options File To Link Agianst
312 ! The Sharable DEC C Runtime Library.
314 SYS$SHARE:DECC$SHR.EXE/SHARE
321 $! Create The AXP Linker Option File.
326 ! Default System Options File For AXP To Link Agianst
327 ! The Sharable C Runtime Library.
329 SYS$SHARE:CMA$OPEN_LIB_SHR/SHARE
330 SYS$SHARE:CMA$OPEN_RTL/SHARE
333 $! End The VAX/AXP DEC C Option File Check.
337 $! End The Option File Search.
341 $! End The DEC C Check.
345 $! Tell The User What Linker Option File We Are Using.
347 $ WRITE SYS$OUTPUT "Using Linker Option File ",OPT_FILE,"."
353 $! Check The User's Options.
357 $! Check To See If OPT_PHASE Is Blank.
359 $ IF (OPT_PHASE.EQS."ALL")
362 $! OPT_PHASE Is Blank, So Build Everything.
370 $! Else, Check To See If OPT_PHASE Has A Valid Arguement.
372 $ IF ("," + ACCEPT_PHASE + ",") - ("," + OPT_PHASE + ",") -
373 .NES. ("," + ACCEPT_PHASE + ",")
376 $! A Valid Arguement.
378 $ BUILDALL = OPT_PHASE
384 $! Tell The User We Don't Know What They Want.
386 $ WRITE SYS$OUTPUT ""
387 $ WRITE SYS$OUTPUT "The option ",OPT_PHASE," is invalid. The valid options are:"
388 $ WRITE SYS$OUTPUT ""
389 $ IF ("," + ACCEPT_PHASE + ",") - ",ALL," -
390 .NES. ("," + ACCEPT_PHASE + ",") THEN -
391 WRITE SYS$OUTPUT " ALL : just build everything."
392 $ IF ("," + ACCEPT_PHASE + ",") - ",ENGINES," -
393 .NES. ("," + ACCEPT_PHASE + ",") THEN -
394 WRITE SYS$OUTPUT " ENGINES : to compile just the [.xxx.EXE.ENGINES]*.EXE hareable images."
395 $ WRITE SYS$OUTPUT ""
396 $ WRITE SYS$OUTPUT " where 'xxx' stands for:"
397 $ WRITE SYS$OUTPUT ""
398 $ WRITE SYS$OUTPUT " AXP : Alpha architecture."
399 $ WRITE SYS$OUTPUT " VAX : VAX architecture."
400 $ WRITE SYS$OUTPUT ""
406 $! End The Valid Arguement Check.
410 $! End The OPT_PHASE Check.
414 $! Check To See If OPT_DEBUG Is Blank.
416 $ IF (OPT_DEBUG.EQS."NODEBUG")
419 $! OPT_DEBUG Is NODEBUG, So Compile Without The Debugger Information.
421 $ DEBUGGER = "NODEBUG"
422 $ TRACEBACK = "NOTRACEBACK"
423 $ GCC_OPTIMIZE = "OPTIMIZE"
424 $ CC_OPTIMIZE = "OPTIMIZE"
425 $ MACRO_OPTIMIZE = "OPTIMIZE"
426 $ WRITE SYS$OUTPUT "No Debugger Information Will Be Produced During Compile."
427 $ WRITE SYS$OUTPUT "Compiling With Compiler Optimization."
430 $! Check To See If We Are To Compile With Debugger Information.
432 $ IF (OPT_DEBUG.EQS."DEBUG")
435 $! Compile With Debugger Information.
438 $ TRACEBACK = "TRACEBACK"
439 $ GCC_OPTIMIZE = "NOOPTIMIZE"
440 $ CC_OPTIMIZE = "NOOPTIMIZE"
441 $ MACRO_OPTIMIZE = "NOOPTIMIZE"
442 $ WRITE SYS$OUTPUT "Debugger Information Will Be Produced During Compile."
443 $ WRITE SYS$OUTPUT "Compiling Without Compiler Optimization."
446 $! They Entered An Invalid Option..
448 $ WRITE SYS$OUTPUT ""
449 $ WRITE SYS$OUTPUT "The Option ",OPT_DEBUG," Is Invalid. The Valid Options Are:"
450 $ WRITE SYS$OUTPUT ""
451 $ WRITE SYS$OUTPUT " DEBUG : Compile With The Debugger Information."
452 $ WRITE SYS$OUTPUT " NODEBUG : Compile Without The Debugger Information."
453 $ WRITE SYS$OUTPUT ""
459 $! End The Valid Arguement Check.
463 $! End The OPT_DEBUG Check.
467 $! Special Threads For OpenVMS v7.1 Or Later
469 $! Written By: Richard Levitte
470 $! richard@levitte.org
473 $! Check To See If We Have A Option For OPT_SPECIAL_THREADS.
475 $ IF (OPT_SPECIAL_THREADS.EQS."")
478 $! Get The Version Of VMS We Are Using.
481 $ TMP = F$ELEMENT(0,"-",F$EXTRACT(1,4,F$GETSYI("VERSION")))
482 $ TMP = F$INTEGER(F$ELEMENT(0,".",TMP)+F$ELEMENT(1,".",TMP))
484 $! Check To See If The VMS Version Is v7.1 Or Later.
489 $! We Have OpenVMS v7.1 Or Later, So Use The Special Threads.
491 $ ISSEVEN := ,PTHREAD_USE_D4
493 $! End The VMS Version Check.
497 $! End The OPT_SPECIAL_THREADS Check.
501 $! Check To See If OPT_COMPILER Is Blank.
503 $ IF (OPT_COMPILER.EQS."")
506 $! O.K., The User Didn't Specify A Compiler, Let's Try To
507 $! Find Out Which One To Use.
509 $! Check To See If We Have GNU C.
511 $ IF (F$TRNLNM("GNU_CC").NES."")
514 $! Looks Like GNUC, Set To Use GNUC.
516 $ OPT_COMPILER = "GNUC"
522 $! Check To See If We Have VAXC Or DECC.
524 $ IF (ARCH.EQS."AXP").OR.(F$TRNLNM("DECC$CC_DEFAULT").NES."")
527 $! Looks Like DECC, Set To Use DECC.
529 $ OPT_COMPILER = "DECC"
535 $! Looks Like VAXC, Set To Use VAXC.
537 $ OPT_COMPILER = "VAXC"
539 $! End The VAXC Compiler Check.
543 $! End The DECC & VAXC Compiler Check.
547 $! End The Compiler Check.
551 $! Check To See If We Have A Option For OPT_TCPIP_LIB.
553 $ IF (OPT_TCPIP_LIB.EQS."")
556 $! Find out what socket library we have available
558 $ IF F$PARSE("SOCKETSHR:") .NES. ""
561 $! We have SOCKETSHR, and it is my opinion that it's the best to use.
563 $ OPT_TCPIP_LIB = "SOCKETSHR"
567 $ WRITE SYS$OUTPUT "Using SOCKETSHR for TCP/IP"
569 $! Else, let's look for something else
573 $! Like UCX (the reason to do this before Multinet is that the UCX
574 $! emulation is easier to use...)
576 $ IF F$TRNLNM("UCX$IPC_SHR") .NES. "" -
577 .OR. F$PARSE("SYS$SHARE:UCX$IPC_SHR.EXE") .NES. "" -
578 .OR. F$PARSE("SYS$LIBRARY:UCX$IPC.OLB") .NES. ""
581 $! Last resort: a UCX or UCX-compatible library
583 $ OPT_TCPIP_LIB = "UCX"
587 $ WRITE SYS$OUTPUT "Using UCX or an emulation thereof for TCP/IP"
595 $! Set Up Initial CC Definitions, Possibly With User Ones
597 $ CCDEFS = "TCPIP_TYPE_''OPT_TCPIP_LIB',DSO_VMS"
598 $ IF F$TYPE(USER_CCDEFS) .NES. "" THEN CCDEFS = CCDEFS + "," + USER_CCDEFS
600 $ IF F$TYPE(USER_CCFLAGS) .NES. "" THEN CCEXTRAFLAGS = USER_CCFLAGS
601 $ CCDISABLEWARNINGS = "LONGLONGTYPE,LONGLONGSUFX"
602 $ IF F$TYPE(USER_CCDISABLEWARNINGS) .NES. "" THEN -
603 CCDISABLEWARNINGS = CCDISABLEWARNINGS + "," + USER_CCDISABLEWARNINGS
605 $! Check To See If The User Entered A Valid Paramter.
607 $ IF (OPT_COMPILER.EQS."VAXC").OR.(OPT_COMPILER.EQS."DECC").OR.(OPT_COMPILER.EQS."GNUC")
610 $! Check To See If The User Wanted DECC.
612 $ IF (OPT_COMPILER.EQS."DECC")
615 $! Looks Like DECC, Set To Use DECC.
619 $! Tell The User We Are Using DECC.
621 $ WRITE SYS$OUTPUT "Using DECC 'C' Compiler."
626 $ IF ARCH.EQS."VAX" .AND. F$TRNLNM("DECC$CC_DEFAULT").NES."/DECC" -
628 $ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/STANDARD=ANSI89" + -
629 "/NOLIST/PREFIX=ALL" + -
630 "/INCLUDE=(SYS$DISK:[],SYS$DISK:[.VENDOR_DEFNS])" + -
633 $! Define The Linker Options File Name.
635 $ OPT_FILE = "SYS$DISK:[]VAX_DECC_OPTIONS.OPT"
641 $! Check To See If We Are To Use VAXC.
643 $ IF (OPT_COMPILER.EQS."VAXC")
646 $! Looks Like VAXC, Set To Use VAXC.
650 $! Tell The User We Are Using VAX C.
652 $ WRITE SYS$OUTPUT "Using VAXC 'C' Compiler."
654 $! Compile Using VAXC.
659 $ WRITE SYS$OUTPUT "There is no VAX C on Alpha!"
662 $ IF F$TRNLNM("DECC$CC_DEFAULT").EQS."/DECC" THEN CC = "CC/VAXC"
663 $ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/NOLIST" + -
664 "/INCLUDE=(SYS$DISK:[],SYS$DISK:[-],SYS$DISK:[.ENGINE.VENDOR_DEFNS])" + -
666 $ CCDEFS = """VAXC""," + CCDEFS
668 $! Define <sys> As SYS$COMMON:[SYSLIB]
670 $ DEFINE/NOLOG SYS SYS$COMMON:[SYSLIB]
672 $! Define The Linker Options File Name.
674 $ OPT_FILE = "SYS$DISK:[]VAX_VAXC_OPTIONS.OPT"
680 $! Check To See If We Are To Use GNU C.
682 $ IF (OPT_COMPILER.EQS."GNUC")
685 $! Looks Like GNUC, Set To Use GNUC.
689 $! Tell The User We Are Using GNUC.
691 $ WRITE SYS$OUTPUT "Using GNU 'C' Compiler."
695 $ CC = "GCC/NOCASE_HACK/''GCC_OPTIMIZE'/''DEBUGGER'/NOLIST" + -
696 "/INCLUDE=(SYS$DISK:[],SYS$DISK:[-],SYS$DISK:[.ENGINE.VENDOR_DEFNS])" + -
699 $! Define The Linker Options File Name.
701 $ OPT_FILE = "SYS$DISK:[]VAX_GNUC_OPTIONS.OPT"
703 $! End The GNU C Check.
707 $! Set up default defines
709 $ CCDEFS = """FLAT_INC=1""," + CCDEFS
711 $! Finish up the definition of CC.
713 $ IF COMPILER .EQS. "DECC"
715 $ IF CCDISABLEWARNINGS .NES. ""
717 $ CCDISABLEWARNINGS = "/WARNING=(DISABLE=(" + CCDISABLEWARNINGS + "))"
720 $ CCDISABLEWARNINGS = ""
722 $ CC = CC + "/DEFINE=(" + CCDEFS + ")" + CCDISABLEWARNINGS
724 $! Show user the result
726 $ WRITE/SYMBOL SYS$OUTPUT "Main C Compiling Command: ",CC
728 $! Else The User Entered An Invalid Arguement.
732 $! Tell The User We Don't Know What They Want.
734 $ WRITE SYS$OUTPUT ""
735 $ WRITE SYS$OUTPUT "The Option ",OPT_COMPILER," Is Invalid. The Valid Options Are:"
736 $ WRITE SYS$OUTPUT ""
737 $ WRITE SYS$OUTPUT " VAXC : To Compile With VAX C."
738 $ WRITE SYS$OUTPUT " DECC : To Compile With DEC C."
739 $ WRITE SYS$OUTPUT " GNUC : To Compile With GNU C."
740 $ WRITE SYS$OUTPUT ""
746 $! End The Valid Arguement Check.
750 $! Build a MACRO command for the architecture at hand
752 $ IF ARCH .EQS. "VAX" THEN MACRO = "MACRO/''DEBUGGER'"
753 $ IF ARCH .EQS. "AXP" THEN MACRO = "MACRO/MIGRATION/''DEBUGGER'/''MACRO_OPTIMIZE'"
755 $! Show user the result
757 $ WRITE/SYMBOL SYS$OUTPUT "Main MACRO Compiling Command: ",MACRO
759 $! Time to check the contents, and to make sure we get the correct library.
761 $ IF OPT_TCPIP_LIB.EQS."SOCKETSHR" .OR. OPT_TCPIP_LIB.EQS."MULTINET" -
762 .OR. OPT_TCPIP_LIB.EQS."UCX" .OR. OPT_TCPIP_LIB.EQS."TCPIP" -
763 .OR. OPT_TCPIP_LIB.EQS."NONE"
766 $! Check to see if SOCKETSHR was chosen
768 $ IF OPT_TCPIP_LIB.EQS."SOCKETSHR"
771 $! Set the library to use SOCKETSHR
773 $ TCPIP_LIB = "SYS$DISK:[-.VMS]SOCKETSHR_SHR.OPT/OPT"
775 $! Done with SOCKETSHR
779 $! Check to see if MULTINET was chosen
781 $ IF OPT_TCPIP_LIB.EQS."MULTINET"
784 $! Set the library to use UCX emulation.
786 $ OPT_TCPIP_LIB = "UCX"
788 $! Done with MULTINET
792 $! Check to see if UCX was chosen
794 $ IF OPT_TCPIP_LIB.EQS."UCX"
797 $! Set the library to use UCX.
799 $ TCPIP_LIB = "SYS$DISK:[-.VMS]UCX_SHR_DECC.OPT/OPT"
800 $ IF F$TRNLNM("UCX$IPC_SHR") .NES. ""
802 $ TCPIP_LIB = "SYS$DISK:[-.VMS]UCX_SHR_DECC_LOG.OPT/OPT"
804 $ IF COMPILER .NES. "DECC" .AND. ARCH .EQS. "VAX" THEN -
805 TCPIP_LIB = "SYS$DISK:[-.VMS]UCX_SHR_VAXC.OPT/OPT"
812 $! Check to see if TCPIP was chosen
814 $ IF OPT_TCPIP_LIB.EQS."TCPIP"
817 $! Set the library to use TCPIP (post UCX).
819 $ TCPIP_LIB = "SYS$DISK:[-.VMS]TCPIP_SHR_DECC.OPT/OPT"
825 $! Check to see if NONE was chosen
827 $ IF OPT_TCPIP_LIB.EQS."NONE"
830 $! Do not use a TCPIP library.
840 $ WRITE SYS$OUTPUT "TCP/IP library spec: ", TCPIP_LIB
842 $! Else The User Entered An Invalid Arguement.
846 $! Tell The User We Don't Know What They Want.
848 $ WRITE SYS$OUTPUT ""
849 $ WRITE SYS$OUTPUT "The Option ",OPT_TCPIP_LIB," Is Invalid. The Valid Options Are:"
850 $ WRITE SYS$OUTPUT ""
851 $ WRITE SYS$OUTPUT " SOCKETSHR : To link with SOCKETSHR TCP/IP library."
852 $ WRITE SYS$OUTPUT " UCX : To link with UCX TCP/IP library."
853 $ WRITE SYS$OUTPUT " TCPIP : To link with TCPIP (post UCX) TCP/IP library."
854 $ WRITE SYS$OUTPUT ""
860 $! Done with TCP/IP libraries
870 $! Save old value of the logical name OPENSSL
872 $ __SAVE_OPENSSL = F$TRNLNM("OPENSSL","LNM$PROCESS_TABLE")
874 $! Save directory information
876 $ __HERE = F$PARSE(F$PARSE("A.;",F$ENVIRONMENT("PROCEDURE"))-"A.;","[]A.;") - "A.;"
877 $ __HERE = F$EDIT(__HERE,"UPCASE")
878 $ __TOP = __HERE - "ENGINES]"
879 $ __INCLUDE = __TOP + "INCLUDE.OPENSSL]"
881 $! Set up the logical name OPENSSL to point at the include directory
883 $ DEFINE OPENSSL/NOLOG '__INCLUDE'
891 $! Restore the logical name OPENSSL if it had a value
893 $ IF __SAVE_OPENSSL .EQS. ""
897 $ DEFINE/NOLOG OPENSSL '__SAVE_OPENSSL'