1 $ sav_ver = 'F$VERIFY(0)'
4 $! Installation and usage: COPY this file into you perl source tree - at or
5 $! below where the main MANIFEST. file is located.
7 $! For example, if you unpacked perl into: [USER.PERL5_00n...] then you will
10 $! $ COPY Configure.com [USER.PERL5_00n.VMS]
12 $! Now cd into the tree and execute Configure:
14 $! $ SET DEFAULT [USER.PERL5_00n]
19 $! $ SET DEFAULT [USER.PERL5_00n]
20 $! $ @[.vms]Configure "-des"
22 $! That's it. If you get into a bind trying to build perl on VMS then
23 $! definitely read through the README.VMS file.
24 $! Beyond that send email to VMSPerl@cor.newman.upenn.edu
26 $! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28 $! send suggestions to:
29 $! Dan Sugalski <sugalskd@ous.edu>
32 $! Adapted and converted from Larry Wall & Andy Dougherty's
33 $! "Configure generated by metaconfig 3.0 PL60." by Peter Prymmer
34 $! (a Bourne sh[ell] script for configuring the installation of perl on VMS)
35 $! in the perl5.002|3 epoch (spring/summer 1996)
36 $! with much valuable help from Charles Bailey &
37 $! the whole VMSPerl crew.
38 $! Extended and messed about with by Dan Sugalski
41 $ sav_ver = F$VERIFY(sav_ver)
43 $! VMS-isms we will need:
44 $ echo = "write sys$output "
49 $ use_debugging_perl = "Y"
50 $ C_Compiler_Replace = "CC="
51 $ Thread_Live_Dangerously = "MT="
52 $ use_two_pot_malloc = "N"
53 $ use_pack_malloc = "N"
54 $ use_debugmalloc = "N"
56 $ vms_default_directory_name = F$ENVIRONMENT("DEFAULT")
57 $! max_allowed_dir_depth = 3 ! e.g. [A.B.PERL5_00n] not [A.B.C.PERL5_00n]
58 $ max_allowed_dir_depth = 2 ! e.g. [FOO.PERL5_00n] not [FOO.BAR.PERL5_00n]
60 $ vms_filcnt = F$GETJPI ("","FILCNT")
62 $!: compute my invocation name
63 $ me = F$ENVIRONMENT("PROCEDURE")
65 $! Many null statements (begin with colon ':') in the Bourne shell version of
66 $! this script serve as comments/placeholders. I have retained some of the ones
67 $! that will help you compare this .COM file to the sh version - as well as
68 $! leave placeholders for future improvements to this .COM file.
69 $! sfn = VMS "skipped for now"
71 $!: Proper PATH separator !sfn
72 $!: Proper PATH setting !sfn
73 $!: Sanity checks !sfn "Say '@''$me''"
74 $!: On HP-UX, large Configure scripts may exercise a bug in /bin/sh !sfn
75 $!: Configure runs within the UU subdirectory !->after find MANIFEST
76 $! <big long list of default values (mostly null)>
77 $!: We must find out about Eunice early !(?)
78 $!: list of known cpp symbols, sorted alphabetically !sfn
80 $!: default library list !sfn
81 $! <no hints files in use (yet?)>
82 $!: Extra object files, if any, needed on this platform. !sfn
83 $!: Possible local include directories to search. !sfn
84 $!: Set locincpth to "" in a hint file to defeat local include searches. !sfn
85 $!locincpth="/usr/local/include /opt/local/include /usr/gnu/include" !sfn
86 $!locincpth="$locincpth /opt/gnu/include /usr/GNU/include /opt/GNU/include"
87 $!: no include file wanted by default !sfn
89 $!: Possible local library directories to search. !sfn
90 $!loclibpth="/usr/local/lib /opt/local/lib /usr/gnu/lib" !sfn
91 $!loclibpth="$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib" !sfn
92 $!: general looking path for locating libraries !sfn
93 $!glibpth="/lib/pa1.1 /usr/shlib /usr/lib/large /lib /usr/lib" !sfn
94 $!glibpth="$glibpth $xlibpth /lib/large /usr/lib/small /lib/small" !sfn
95 $!glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/shlib" !sfn
96 $!: Private path used by Configure to find libraries. Its value !sfn
97 $!: is prepended to libpth. This variable takes care of special !sfn
98 $!: machines, like the mips. Usually, it should be empty. !sfn
100 $!: full support for void wanted by default !sfn
101 $!defvoidused=15 !sfn
102 $!: List of libraries we want. !sfn
103 $!libswanted='net socket inet nsl nm ndbm gdbm dbm db malloc dl' !sfn
104 $!libswanted="$libswanted dld ld sun m c cposix posix ndir dir crypt" !sfn
105 $!libswanted="$libswanted ucb bsd BSD PW x" !sfn
106 $!: We probably want to search /usr/shlib before most other libraries. !sfn
107 $!: This is only used by the lib/ExtUtils/MakeMaker.pm routine extliblist. !sfn
108 $!glibpth=`echo " $glibpth " | sed -e 's! /usr/shlib ! !'` !sfn
109 $!glibpth="/usr/shlib $glibpth" !sfn
110 $!: Do not use vfork unless overridden by a hint file. !sfn
111 $!usevfork=false !sfn
112 $!: script used to extract .SH files with variable substitutions !sfn
113 $!: produce awk script to parse command line options !sfn
114 $!sfn (assume no sed awk) see below
115 $!: process the command line options
117 $!: set up default values
135 $ THEN !one or more switches was thrown
139 $ IF (P'i'.NES."") THEN bang = bang + 1
141 $ IF (i.LT.9) THEN GOTO Param_loop !DCL allows P1..P8
145 $ IF (F$EXTRACT(0,1,P'i') .EQS. "-") THEN P'i' = P'i' - "-"
146 $ IF (F$EXTRACT(0,1,P'i') .EQS. "/") THEN P'i' = P'i' - "/"
147 $Remove_quotation_mark:
149 $ IF F$LOCATE("""",P'i') .LT. F$LENGTH(P'i') THEN GOTO Remove_quotation_mark
150 $ gotopt = "f" !"alse"
151 $ gotshortopt = "f" !"alse"
152 $ IF (F$EXTRACT(0,1,P'i') .EQS. "d")
155 $ gotopt = "t" !"rue"
157 $ gotshortopt = "t" !"rue"
159 $ IF (F$EXTRACT(0,1,P'i') .EQS. "e")
166 $ IF (F$EXTRACT(0,1,P'i') .EQS. "f") !"-f")
170 $ IF (F$SEARCH(config_sh).NES."")
172 $ test = F$FILE_ATTRIBUTES(config_sh,"PRO")
173 $ IF (F$LOCATE("R",test).NE.F$LENGTH(test))
175 $ CONTINUE !at this point check UIC && if test allows...
178 $ echo "''me': cannot read config file ''config_sh'."
182 $ echo "''me': cannot read config file ''config_sh'."
187 $ IF (F$EXTRACT(0,1,P'i') .EQS. "h")
194 $ IF (F$EXTRACT(0,1,P'i') .EQS. "r")
201 $ IF (F$EXTRACT(0,1,P'i') .EQS. "s")
208 $ IF (F$EXTRACT(0,1,P'i') .EQS. "E") !"-E")
213 $ IF (F$EXTRACT(0,1,P'i') .EQS. "K") !"-K")
220 $ IF (F$EXTRACT(0,1,P'i') .EQS. "O")
227 $ IF (F$EXTRACT(0,1,P'i') .EQS. "S") !"-S")
229 $ extractsh = "true" !VMS?
234 $ IF (F$EXTRACT(0,1,P'i') .EQS. "D") !"-D")
237 $!Hmm.. this part needs work
239 $ IF (F$LOCATE("=",P'i') .EQ. F$LENGTH(P'i'))
243 $ IF (F$LOCATE("=",P'i') .EQ. (F$LENGTH(P'i') - 1))
245 $ me = F$PARSE(me,,,"NAME") + F$PARSE(me,,,"TYPE")
246 $ echo "''me': use '-Usymbol=val' not '-Dsymbol='."
247 $ echo "''me': ignoring -D",P'i'
249 $!Hmm.. this part needs work
250 $! 'F$EXTRACT(0,F$LOCATE("=",P'i'),P'i')' = -
251 $! 'F$EXTRACT(F$LOCATE("=",P'i'),P'i'),F$LENGTH(P'i'),P'i')'
254 $ ECHO "P''i' =>",P'i',"<=" !Diag
257 $ IF (F$EXTRACT(0,1,P'i') .EQS. "U") !"-U")
260 $ IF (F$LOCATE("=",P'i') .EQ. F$LENGTH(P'i'))
264 $ IF (F$LOCATE("=",P'i') .LT. (F$LENGTH(P'i') - 1))
266 $ me = F$PARSE(me,,,"NAME") + F$PARSE(me,,,"TYPE")
267 $ echo "''me': use '-Dsymbol=val' not '-Usymbol=val'."
268 $ echo "''me': ignoring -U",P'i'
273 $ ECHO "P''i' =>",P'i',"<=" !Diag
276 $ IF (F$EXTRACT(0,1,P'i') .EQS. "V")
278 $ me = F$PARSE(me,,,"NAME") + F$PARSE(me,,,"TYPE")
279 $ echo "''me' generated by an unknown version of EDT."
285 $ echo "''me': unknown option ",P'i'
288 $ IF (F$LENGTH(P'i').GT.0).AND.(gotshortopt) THEN i = i - 1 !clustered switch
290 $ IF (i .LT. (bang + 1)) THEN GOTO Opt_loop
292 $ ENDIF ! (P1 .NES. "")
296 $ me = F$PARSE(me,,,"DIRECTORY")+ F$PARSE(me,,,"NAME")
297 $ echo "Usage: @''me' [-dehrEKOSV] [-fconfig.sh] [-Dsymbol] [-Dsymbol=value]"
298 $ echo " [-Usymbol] [-Usymbol=]"
300 "-d" : use defaults for all answers.
301 "-e" : go on without questioning past the production of config.sh. *
302 "-f" : specify an alternate default configuration file.
303 "-h" : print this help message and exit (with an error status).
304 "-r" : reuse C symbols value if possible (skips costly nm extraction).*
305 "-s" : silent mode, only echoes questions and essential information.
306 -"D" : define symbol to have some value: *
307 -"Dsymbol" symbol gets the value 'define'
308 -"Dsymbol=value" symbol gets the value 'value'
309 -E : stop at the end of questions, after having produced config.sh. *
310 -K : do not use unless you know what you are doing.
311 -O : let -D and -U override definitions from loaded configuration file. *
312 -S : perform variable substitutions on all .SH files (can mix with -f) *
313 -"U" : undefine symbol: *
314 -"Usymbol" symbol gets the value 'undef'
315 -"Usymbol=" symbol gets completely empty
316 -V : print version number and exit (with a zero status).
317 $ echo "%Config-I-VMS, lower case switches must be enclosed"
318 $ echo "-Config-I-VMS, in double quotation marks, e.g.:"
319 $ echo "-Config-I-VMS, @Configure ""-des"""
320 $ echo "-Config-I-VMS, * indicates switch may not be fully implemented for VMS."
321 $ SET DEFAULT 'vms_default_directory_name' !be kind rewind
323 $ EXIT 3 ! $STATUS = "%X00000003" (informational)
329 $ STDOUT = F$TRNLNM("SYS$OUTPUT")
330 $ DEFINE SYS$OUTPUT "_NLA0:"
331 $ echo4 = "write STDOUT "
332 $ cat4 = "TYPE/OUTPUT=''STDOUT'"
333 $ open/write STDOUT 'STDOUT'
341 $ echo4 = "write SYS$OUTPUT "
345 $!: run the defines and the undefines, if any, but leave the file out there...
346 $! Unfortunately Configure.COM in DCL is not yet set up to do this -
352 $!: Eunice requires " " instead of "", can you believe it
355 $ echo "Beginning of configuration questions for ''package'."
358 $!: Some greps do not return status, grrr.
359 $ contains = "SEARCH"
361 $!: first determine how to suppress newline on echo command !cant DCL is record oriented
362 $! echo "Checking ''echo' to see how to suppress newlines..."
363 $! echo "giving up..."
364 $! echo "The star should be here-->*"
366 $!: Now test for existence of everything in MANIFEST
368 $ echo4 "First let's make sure your kit is complete. Checking..."
371 $! Here I assume we are in the [foo.PERL5xxx.VMS...] tree
372 $! because the search routine simply does set def [-] if necessary.
373 $ file_2_find = "MANIFEST" !I hope this one is not in [foo.PERL5xxx.VMS...]
375 $ manifestfound = F$SEARCH(file_2_find)
376 $ IF (manifestfound .EQS. "")
378 $ IF F$PARSE(F$ENVIRONMENT("DEFAULT"),,,"DIRECTORY",).NES."[000000]"
381 $ GOTO Research_manifest
384 $ echo "There is no MANIFEST file. I hope your kit is complete !"
386 $ GOTO Beyond_manifest
389 $! MANIFEST. has been found and we have set def'ed there -
390 $! time to bail out before it's too late.
391 $ IF (F$ELEMENT(max_allowed_dir_depth,".",F$ENVIRONMENT("Default")).nes.".")
394 %Config-E-VMS, ERROR:
395 Sorry! It apears as though your perl build sub-directory is already too
396 deep into the VMS file system. Please try moving stuff into a shallower
397 directory (or altering the "max_allowed_dir_depth" parameter).
398 $ echo4 "ABORTING..."
399 $ SET DEFAULT 'vms_default_directory_name' !be kind rewind
401 $ EXIT !2 !$STATUS = "%X00000002" (error)
404 $! after finding MANIFEST let's create (but not yet enter) the UU subdirectory
406 $ IF (manifestfound .NES. "")
408 $ IF ( F$SEARCH("UU.DIR").EQS."" )
410 $ CREATE/DIRECTORY [.UU]
412 $ IF ( F$SEARCH("[.UU]*.*").NES."" ) THEN DELETE/NOLOG [.UU]*.*;*
414 $!: Configure runs within the UU subdirectory
417 $! a little redundancy never hurt anybody?
418 $ file_2_find = "[-]" + file_2_find
419 $ manifestfound = F$SEARCH(file_2_find)
421 $ OPEN/WRITE MISSING MISSING.
422 $!change to "FALSE" if you wish to skip the manifest search
423 $!(which after all is rather slow in DCL :-)
426 $ OPEN/READ CONFIG 'manifestfound'
428 $ READ/END_OF_FILE = Done_manifest CONFIG line
429 $! This algorithm turns "foo/bar/baz.c" into "[.foo.bar]baz.c"
430 $! pvhp@lns62.lns.cornell.edu 10-JUN-1996 20:31:46
431 $! 2-MAR-1998 15:46:11 Improved to turn "foo/bar/baz.c.buz"
432 $! into "[.foo.bar]baz.c_buz as happens with vmstar and unzip
433 $ line = F$EDIT(line,"TRIM, COMPRESS")
434 $ file_2_find = F$EXTRACT(0,F$LOCATE(" ",line),line)
435 $ IF F$LOCATE("/",file_2_find) .NE. F$LENGTH(file_2_find)
437 $Re_strip_line_manifest:
438 $ loca = F$LOCATE("/",file_2_find)
439 $ ante = F$EXTRACT(0,loca,file_2_find)
440 $ post = F$EXTRACT(loca,F$LENGTH(file_2_find),file_2_find)
441 $ test_this = ante + "." + (post - "/")
442 $ IF F$LOCATE("/",test_this) .NE. F$LENGTH(test_this)
444 $ file_2_find = ante + "." + (post - "/")
445 $ GOTO Re_strip_line_manifest
447 $ file_2_find = ante + "]" + (post - "/")
449 $ file_2_find = "[-."+file_2_find
451 $ file_2_find = "[-]" + file_2_find
454 $ dirname = F$EXTRACT(0,F$LOCATE("]",file_2_find),file_2_find) + "]"
455 $ file_2_find = file_2_find - dirname
458 $ dot_ele = F$ELEMENT(dots,".",file_2_find)
459 $ IF dot_ele .EQS. "." THEN GOTO Eo_dot_loop
461 $ THEN basename = f$extract(0,f$locate(".",file_2_find),file_2_find) + "."
462 $ ELSE basename = basename + dot_ele + "_"
467 $ IF (((f$length(file_2_find)+1) .eq. f$length(basename)) .and. -
468 (f$extract(f$length(basename)-1,1,basename) .eqs. "_")) THEN -
469 basename = f$extract(0,f$length(basename)-1,basename)
470 $ file_2_find = dirname + basename
472 $ found = F$SEARCH(file_2_find)
473 $ IF (found .EQS. "")
475 $ WRITE MISSING file_2_find
476 $ IF ((F$LENGTH(miss_list)+F$LENGTH(file_2_find)).LT.250)
478 $ miss_list = miss_list + "," + file_2_find
481 $ GOTO Read_loop_manifest
486 $ ENDIF ! (manifestfound .NES. "")
488 $ IF (miss_list .NES. "")
490 $ echo "Some of the files not found include:"
493 $ IF ((miss_list .NES. "").OR.(manifestfound .EQS. ""))
497 THIS PACKAGE SEEMS TO BE INCOMPLETE.
499 You have the option of continuing the configuration process, despite the
500 distinct possibility that your kit is damaged, by typing 'y'es. If you
501 do, don't blame me if something goes wrong. I advise you to type 'n'o
502 and contact the author (sugalskd@ous.edu).
504 $ READ SYS$COMMAND/PROMPT="Continue? [n] " ans
507 $ echo4 "Continuing..."
509 $ echo4 "ABORTING..."
513 $ echo4 "Looks good..."
514 $ DELETE/NOLOG MISSING.;
515 $ ENDIF ! (miss_list .NES. "")
516 $ ENDIF ! (manifestfound .EQS. "") ELSE
518 $! after finding MANIFEST (see above)
519 $!: Configure runs within the UU subdirectory
521 $!: compute the number of columns on the terminal for proper question formatting
522 $! (sfn, will assume 80-ish)
524 $!: set up the echo used in my read !sfn
525 $!: now set up to do reads with possible shell escape and default assignment !sfn
536 $ READ SYS$COMMAND/PROMPT="''rp'" ans
539 $ READ SYS$COMMAND/PROMPT="''rp'" ans
546 $!: create .config dir to save info across Configure sessions
547 $ IF ( F$SEARCH("[-]CONFIG.DIR").EQS."" )
549 $ CREATE/DIRECTORY [-.CONFIG]
550 $ OPEN/WRITE CONFIG [-.CONFIG]README.
552 "This directory created by Configure to save information that should"
554 "persist across sessions."
557 "You may safely delete it if you wish."
561 $!: general instructions
564 $ user = F$EDIT(F$GETJPI("","USERNAME"),"TRIM,COLLAPSE")
565 $ IF .NOT.(F$SEARCH("[-.CONFIG]INSTRUCT.").EQS."")
567 $ messages = F$ENVIRONMENT("MESSAGE")
568 $ SET MESSAGE/NOFAC/NOSEV/NOIDENT/NOTEXT !sorry :-(
569 $ contains /NOOUTPUT [-.CONFIG]INSTRUCT. 'user'
570 $ IF .NOT.($status.EQ.%X08D78053)
574 $ rp = "Would you like to see the instructions? [''dflt'] "
576 $ if .NOT.ans THEN needman=""
578 $ SET MESSAGE 'messages' !hope you made it here :-)
580 $ if (fastread.AND.silent.AND.(alldone.eqs."cont")) THEN needman=""
586 This installation shell script will examine your system and ask you questions
587 to determine how the perl5 package should be installed. If you get
588 stuck on a question, you may use a ^C or ^Y shell escape to STOP this
589 process, edit something, then restart this process as you just did.
590 Many of the questions will have default answers in square
591 brackets; typing carriage return will give you the default.
593 $ READ SYS$COMMAND/PROMPT="Type carriage return to continue " ans
596 In a hurry? You may run '@Configure -d'. This will bypass nearly all
597 the questions and use the computed defaults (or the previous answers provided
598 there was already a config.sh file). Type '@Configure -h' for a list of
601 $ READ SYS$COMMAND/PROMPT="Type carriage return to continue " ans
604 Much effort has been expended to ensure that this shell script will
605 run on any VMS system. If despite that it blows up on yours, your
606 best bet is to edit Configure.com and @ it again. Whatever problems
607 you have with Configure.com, let me (sugalskd@ous.edu) know how I blew
610 $!This installation script affects things in two ways:
612 $!1) it may do direct variable substitutions on some of the files included
614 $!2) it builds a config.h file for inclusion in C programs. You may edit
615 $! any of these files as the need arises after running this script.
617 $!If you make a mistake on a question, there is no easy way to back up to it
620 $ READ SYS$COMMAND/PROMPT="Type carriage return to continue " ans
621 $ IF (F$SEARCH("[-.CONFIG]INSTRUCT.").EQS."")
623 $ OPEN/WRITE CONFIG [-.CONFIG]INSTRUCT.
627 $ ENDIF !(needman .EQS. "true")
629 $!: see if sh knows # comments !sfn
631 $!: figure out how to guarantee sh startup !sfn
632 $!: find out where common programs are !sfn
633 $!loclist="awk/cat/comm/cp/echo/expr/find/grep/ln/ls/mkdir/rm/sed/sort/touch/tr/uniq"
634 $!trylist="Mcc/byacc/cpp/csh/date/egrep/less/line/more/nroff/perl/pg/sendmail/test/uname"
635 $! echo "I don't know where '$file' is, and my life depends on it."
636 $! echo "Go find a public domain implementation or fix your PATH setting!"
638 $! echo "Don't worry if any of the following aren't found..."
639 $!: determine whether symbolic links are supported !sfn
640 $!: see whether [:lower:] and [:upper:] are supported character classes !sfn
641 $!: set up the translation script tr, must be called with ./tr of course !sfn
643 $!: Try to determine whether config.sh was made on this system
644 $!: Get old answers from old config file if Configure was run on the
645 $!: same system, otherwise use the hints.
646 $ config_sh_es = "''config_sh'/[-]config.sh/[-.vms]config.vms/"
650 $ config_sh = F$ELEMENT(i,"/",config_sh_es)
652 $ IF (config_sh.NES."/").AND.(config_sh.NES."")
654 $ configshfound = F$SEARCH(config_sh)
655 $ IF (configshfound.NES."") THEN GOTO Config_sh_found
657 $ IF (i.LT.max) THEN GOTO Config_sh_look
658 $ IF (configshfound.EQS."") THEN GOTO Beyond_config_sh
661 $ echo "Fetching default answers from ''config_sh'..."
662 $!we actually do not have "hints/" for VMS
665 $!First time through, eh? I have some defaults handy for the following systems:
667 $! echo " ","VMS_VAX"
668 $! echo " ","VMS_AXP"
669 $! : Now look for a hint file osname_osvers, unless one has been
670 $! : specified already.
673 $!You may give one or more space-separated answers, or "none" if appropriate.
674 $!If your OS version has no hints, DO NOT give a wrong version -- say "none".
676 $! READ SYS$COMMAND/PROMPT="Which of these apply, if any? " ans
680 $!: Restore computed paths !sfn
682 $! genconfig.pl has "osname='VMS'"
683 $ osname = F$EDIT(F$GETSYI("NODE_SWTYPE"),"COLLAPSE")
684 $! %Config-I-VMS, a necessary error trap (could be PC running VCL)
686 $ IF (osname .NES. "VMS")
688 $ echo4 "Hmm.. I wonder what ''osname' is (?)"
691 %Config-E-VMS, ERROR:
693 Err, you do not appear to be running VMS!
694 This package is intended to Configure the building of Perl for VMS.
696 $ READ SYS$COMMAND/PROMPT="Continue anyway? [n] " ans
699 $ echo4 "Continuing..."
701 $ echo4 "ABORTING..."
702 $ SET DEFAULT 'vms_default_directory_name' !be kind rewind
704 $ EXIT 2 !$STATUS = "%X00000002" (error)
706 $ ELSE !we are on VMS huzzah!
708 $ THEN TYPE SYS$INPUT:
710 Configure uses the operating system name and version to set some defaults.
711 The default value is probably right if the name rings a bell. Otherwise,
712 since spelling matters for me, either accept the default or answer "none"
715 $ rp = "Operating system name? [''osname'] "
719 $ IF (ans.NES.osname) !.AND.knowitall
721 $ echo4 "I'll go with ''osname' anyway..."
724 $ ENDIF !(osname .NES./.EQS. "VMS")
726 $!: who configured the system
728 $ cf_by = F$EDIT(user,"LOWERCASE")
729 $! cf_time = F$CVTIME() !superceded by procedure below
730 $ osvers = F$GETSYI("VERSION")
732 $! Peter Prymmer has seen:
733 $! "SYS$TIMEZONE_DIFFERENTIAL" = "-46800" (sic)
734 $! "SYS$TIME_ZONE" = "EDT"
736 $! Charles Lane recommended:
737 $! "SYS$TIMEZONE_DIFFERENTIAL" = "-14400"
738 $! "NEWS_TIMEZONE" = "-0500"
739 $! "ST_TIMEZONE" = "EDT"
740 $! "JAN_TIME_ZONE" = "EST "
741 $! "MULTINET_TIMEZONE" = "EST"
742 $! "DAYLIGHT_SAVINGS" = "1"
744 $! Charles Bailey recommends (in ANU NEWS Doc Jan 1995):
746 $! "Multinet_Timezone"
747 $! "TCPware_Timezone"
750 $! This snippet o' DCL returns a string in default Unix `date` format,
751 $! and it will prompt to set SYS$TIMEZONE_DIFFERENTIAL.
752 $! Peter Prymmer pvhp@lns62.lns.cornell.edu
754 $ MIN_TZO = -840 !units are minutes here
757 $ wkday = F$EXTRACT(0,3,F$CVTIME(,,"WEEKDAY"))
758 $ monn = F$CVTIME(,,"MONTH")
759 $ mday = F$EXTRACT(8,2,F$CVTIME(,,"DATE"))
760 $ hour = F$CVTIME(,,"HOUR")
761 $ min = F$CVTIME(,,"MINUTE")
762 $ sec = F$CVTIME(,,"SECOND")
763 $ year = F$CVTIME(,,"YEAR")
765 $ months = "/Jan/Feb/Mar/Apr/May/Jun/Jul/Aug/Sep/Oct/Nov/Dec/"
769 $ mon = F$ELEMENT(i,"/",months)
770 $ IF i.LT.monn THEN GOTO Mon_loop
773 $ systz = F$TRNLNM("SYS$TIMEZONE_DIFFERENTIAL")
776 $ tzhour = F$INTEGER(systz)/3600
777 $ tzmins = F$INTEGER(systz)/60
778 $ tzminrem = tzmins - tzhour*60
779 $ IF tzminrem.lt.0 THEN tzminrem = -1*tzminrem !keeps !2ZL happy
781 $ THEN signothetime = "+"
782 $ IF tzhour.EQ.0.AND.tzminrem.EQ.0
783 $ THEN direction = "on GMT/"
784 $ ELSE direction = "east of "
786 $ ELSE signothetime = "-"
787 $ tzhour = -1*tzhour !keeps !UL happy
788 $ direction = "west of "
791 $ echo "%Config-I-VMS,"
792 $ echo "According to the setting of your ""SYS$TIMEZONE_DIFFERENTIAL"" (= ''systz')"
795 $ tzspan = "''tzhour' hours & ''tzminrem' minutes"
797 $ tzspan = "''tzhour' hours"
800 $ echo "Your system is ''tzspan' ''direction'UTC in England."
801 $ rp = "%Config-I-VMS, (''systz') Is this UTC Time Zone Offset correct? [''dflt'] "
803 $ IF ans.OR.(ans.EQS."")
807 $ GOTO Beyond_TimeZone
811 $ echo4 "%Config-I-VMS,"
812 $ echo4 """SYS$TIMEZONE_DIFFERENTIAL"" does not appear to be DEFINEd on your system"
817 $ echo "Please tell me in hh:mm form what time offset from GMT/UTC in England"
818 $ echo "you are. As an example Eastern (US) Standard Time is -5:00 offset, but"
819 $ echo "Eastern Daylight Time (summer) is -4:00 offset."
821 $ rp = "Enter the Time Zone offset: [''dflt'] "
823 $ ans = F$Edit(ans,"collapse,trim,uncomment,upcase")
824 $ IF ans.EQS."" THEN ans = dflt
825 $ tzhour = F$ELEMENT(0,":","''ans'") !first
826 $ IF tzhour.EQS."" THEN tzhour = 0
827 $ tzhour = F$INTEGER(tzhour)
828 $ tzminrem = F$ELEMENT(1,":","''ans'") !second
831 $ tzminrem = F$INTEGER(tzminrem)
832 $ IF F$EXTRACT(0,1,"''ans'") .EQS. "-" THEN tzminrem = tzminrem * -1
836 $ tzmins = tzhour*60 + tzminrem
837 $ tzd = F$STRING(tzmins*60)
842 $ tzhour = -1*tzhour !keeps !UL happy
845 $ IF (tzmins.GT.MAX_TZO).OR.(tzmins.LT.MIN_TZO)
848 $ echo "%Config-W-VMS-TIMERANGE, Response must be in the range -14:00 to 14:00."
853 $ tz = f$fao("UTC!AS!UL:!2ZL",signothetime,tzhour,tzminrem)
854 $ cf_time = "''wkday' ''mon' ''mday' ''hour':''min':''sec' ''tz' ''year'"
856 $!: determine the architecture name
857 $! genconfig.pl has either archname='VMS_AXP' or 'VMS_VAX'
859 $ IF (F$GETSYI("HW_MODEL") .LT. 1024)
861 $ archname = "VMS_VAX"
863 $ archname = "VMS_AXP"
865 $ rp = "What is your architecture name? [''archname'] "
869 $ ans = F$EDIT(ans,"COLLAPSE, UPCASE")
870 $ IF (ans.NES.archname) !.AND.knowitall
872 $ echo4 "I'll go with ''archname' anyway..."
875 $ IF (archname.EQS."VMS_AXP")
878 $ rp = "Are you sharing your PERL_ROOT with a VAX? [''dflt'] "
882 $ ans = F$EDIT(ans,"COLLAPSE, UPCASE")
889 $ macros = macros + """AXE=1"","
895 $!: is AFS running? !sfn
896 $!: decide how portable to be. Allow command line overrides. !sfn
897 $!: set up shell script to do ~ expansion !sfn
898 $!: expand filename !sfn
899 $!: now set up to get a file name !sfn
901 $ vms_skip_install = "true"
904 $ rp = "%Config-I-VMS, Do you wish to skip the """"where install"""" questions? [''dflt'] "
906 $ IF (.NOT.ans).AND.(ans.NES."") THEN vms_skip_install = "false"
907 $ prefix = F$ENVIRONMENT("DEFAULT") - ".UU]" + "]"
908 $ prefix = f$parse(prefix,,,,"NO_CONCEAL") - "][" - ".;"
909 $ prefix = prefix - "]" + ".]"
910 $ IF (.NOT.vms_skip_install)
912 $!: determine root of directory hierarchy where package will be installed.
917 $ echo "By default, ''package' will be installed in ''dflt'/bin, manual"
918 $ echo "pages under ''dflt'/man, etc..., i.e. with ''dflt' as prefix for"
919 $ echo "all installation directories. Typically set to /usr/local, but you"
920 $ echo "may choose /usr if you wish to install ''package' among your system
923 $ THEN TYPE SYS$INPUT:
924 binaries. If you wish to have binaries under /bin but manual pages
925 under /usr/local/man, that's ok: you will be prompted separately
926 for each of the installation directories, the prefix being only used
930 $ rp = "Installation prefix to use? [ ''dflt' ] "
935 $ IF F$LOCATE(".]",ans) .EQ. F$LENGTH(ans) THEN prefix = prefix - "]" + ".]"
940 $!: set the prefixit variable, to compute a suitable default value
942 $!: determine where private library files go
943 $!: Usual default is /usr/local/lib/perl5. Also allow things like
944 $!: /opt/perl/lib, since /opt/perl/lib/perl5 would be redundant.
946 $ THEN TYPE SYS$INPUT:
948 There are some auxiliary files for perl5 that need to be put into a
949 private library directory that is accessible by everyone.
951 $ dflt = prefix - ".]" + ".LIB]"
952 $ rp = "Pathname where the private library files will reside? "
953 $ rp = F$FAO("!AS!/!AS",rp,"[ ''dflt' ] ")
957 $ ELSE privlib = dflt
960 $ ENDIF !%Config-I-VMS, skip "where install" questions
962 $!: set the base revision
964 $!: get the patchlevel
966 $ echo4 "Getting the current patchlevel..." !>&4
967 $ patchlevel_h = F$SEARCH("[-]patchlevel.h")
968 $ IF (patchlevel_h.NES."")
970 $ got_patch = "false"
972 $ OPEN/READONLY CONFIG 'patchlevel_h'
974 $ READ/END_Of_File=Close_patch CONFIG line
975 $ IF ((F$LOCATE("#define PATCHLEVEL",line).NE.F$LENGTH(line)).AND.(.NOT.got_patch))
977 $ line = F$EDIT(line,"COMPRESS, TRIM")
978 $ patchlevel = F$EXTRACT(18,F$LENGTH(line)-18,line)
981 $ IF ((F$LOCATE("SUBVERSION",line).NE.F$LENGTH(line)).AND.(.NOT.got_sub))
983 $ line = F$EDIT(line,"COMPRESS, TRIM")
984 $ subversion = F$EXTRACT(18,F$LENGTH(line)-18,line)
987 $ IF (.NOT.got_patch).OR.(.NOT.got_sub) THEN GOTO Patchlevel_h_loop
994 $ echo "(You have ''package' ''baserev' PL''patchlevel' sub''subversion'.)"
995 $! This whole thing needs replacing w/ F$FAO() calls:
996 $ patchlevel = F$INTEGER(patchlevel)
997 $ IF patchlevel.LT.10
998 $ THEN patchlevel = "00" + F$STRING(patchlevel)
999 $ ELSE patchlevel = "0" + F$STRING(patchlevel)
1001 $ subversion = F$INTEGER(subversion)
1002 $ IF subversion.GT.0
1004 $ IF subversion.LT.10
1005 $ THEN subversion = "0" + F$STRING(subversion)
1006 $ ELSE subversion = F$STRING(subversion)
1008 $ ELSE subversion = ""
1011 $ version = F$EXTRACT(0,1,baserev) + "_" + patchlevel + subversion
1013 $ IF (.NOT.vms_skip_install)
1015 $!: set the prefixup variable, to restore leading tilda escape !sfn
1016 $!: set the prefixup variable, to restore leading tilde escape !sfn
1018 $!: determine where public architecture dependent libraries go
1022 $ echo "''package' contains architecture-dependent library files. If you are"
1025 $ THEN TYPE SYS$INPUT:
1026 sharing libraries in a heterogeneous environment, you might store
1027 these files in a separate location. Otherwise, you can just include
1028 them with the rest of the public library files.
1030 $ dflt = privlib - "]" + "." + archname + "." + version + "]"
1031 $ rp = "Where do you want to put the public architecture-dependent libraries? "
1032 $ rp = F$FAO("!AS!/!AS",rp,"[ ''dflt' ] ")
1035 $ THEN archlib = ans
1036 $ ELSE archlib = dflt
1039 $!: set up the script used to warn in case of inconsistency !sfn
1040 $!: function used to set $1 to $val !sfn
1042 $ ENDIF !%Config-I-VMS, skip "where install" questions
1043 $! This quotation from Configure has to be included on VMS:
1046 There is, however, a strange, musty smell in the air that reminds me of
1047 something...hmm...yes...I've got it...there's a VMS nearby, or I'm a Blit.
1049 $ IF (.NOT.vms_skip_install)
1051 $!: it so happens the Eunice I know will not run shell scripts in Unix format
1053 $!: see if setuid scripts can be secure !sfn
1054 $!: now see if they want to do setuid emulation !sfn
1056 $!: determine where site specific libraries go.
1058 $ THEN TYPE SYS$INPUT:
1060 The installation process will also create a directory for
1061 site-specific extensions and modules. Some users find it convenient
1062 to place all local files in this directory rather than in the main
1063 distribution directory.
1065 $ dflt = privlib - "]" + ".SITE_PERL]"
1066 $ rp = "Pathname for the site-specific library files? "
1067 $ rp = F$FAO("!AS!/!AS",rp,"[ ''dflt' ] ")
1070 $ THEN sitelib = ans
1071 $ ELSE sitelib = dflt
1074 $!: determine where site specific architecture-dependent libraries go.
1076 $ THEN TYPE SYS$INPUT:
1078 The installation process will also create a directory for
1079 architecture-dependent site-specific extensions and modules.
1081 $ dflt = sitelib - "]" + "." + archname + "]"
1082 $ rp = "Pathname for the site-specific architecture-dependent library files? "
1083 $ rp = F$FAO("!AS!/!AS",rp,"[ ''dflt' ] ")
1086 $ THEN sitearch = ans
1087 $ ELSE sitearch = dflt
1090 $!: determine where old public architecture dependent libraries might be
1092 $!: determine where public executables go
1093 $ dflt = prefix - ".]" + ".BIN]"
1094 $ rp = "Pathname where the public executables will reside? "
1095 $ rp = F$FAO("!AS!/!AS",rp,"[ ''dflt' ] ")
1102 $!: determine where manual pages are on this system
1103 $!: What suffix to use on installed man pages
1104 $!: see if we can have long filenames
1105 $!: determine where library module manual pages go
1106 $!: What suffix to use on installed man pages
1107 $!: see what memory models we can support
1109 $ ENDIF !%Config-I-VMS, skip "where install" questions
1111 $!: see if we need a special compiler
1112 $! cc_list = "cc/vaxc|cc/decc|gcc" !%Config-I-VMS, compiler symbols/commands
1116 $ vms_cc_available = ""
1118 $ OPEN/WRITE CONFIG ccvms.c
1119 $ WRITE CONFIG "#include <stdlib.h>" !DECC is sooo picky
1120 $ WRITE CONFIG "#include <stdio.h>"
1121 $ WRITE CONFIG "int main() {"
1122 $ WRITE CONFIG "#ifdef __DECC"
1123 $ WRITE CONFIG " printf(""/DECC\n"");"
1124 $ WRITE CONFIG "#else"
1125 $ WRITE CONFIG " printf(""/VAXC\n"");"
1126 $ WRITE CONFIG "#endif"
1127 $ WRITE CONFIG " exit(0);"
1131 $ DEFINE SYS$ERROR _NLA0:
1132 $ DEFINE SYS$OUTPUT _NLA0:
1133 $ cc/NoObj/list=ccvms.lis ccvms.c
1135 $ DEASSIGN SYS$OUTPUT
1136 $ DEASSIGN SYS$ERROR
1137 $ IF (silent) THEN GOSUB Shut_up
1138 $! echo "%Config-I-VMS, After cc compile $status = >''tmp'<" !diagnostic
1140 $ IF tmp.NE.%X10B90001
1142 $ IF tmp.NE.%X10000001
1144 $ nocc = "t" !%X10000001 is return from gcc
1145 $ GOTO Gcc_initial_check
1150 $ IF .NOT.silent THEN echo ""
1151 $ echo "%Config-I-VMS, Default ""cc"" is ''line' ''archsufx' ''F$GETSYI("VERSION")'"
1152 $ IF F$LOCATE("VAX",line).NE.F$LENGTH(line)
1154 $ vms_cc_dflt = "/vaxc"
1155 $ vms_cc_available = vms_cc_available + "cc/vaxc "
1158 $ echo "%Config-I-VMS, Will try cc/decc..."
1160 $ DEFINE SYS$ERROR _NLA0:
1161 $ DEFINE SYS$OUTPUT _NLA0:
1163 $ cc/decc/NoObj/list=ccvms.lis ccvms.c
1165 $ DEASSIGN SYS$OUTPUT
1166 $ DEASSIGN SYS$ERROR
1168 $ IF (silent) THEN GOSUB Shut_up
1169 $ IF tmp.NE.%X10B90001
1171 $ echo "%Config-I-VMS, Apparently you don't have that one."
1174 $ echo "%Config-I-VMS, You also have: ''line' ''archsufx' ''F$GETSYI("VERSION")'"
1175 $ vms_cc_available = vms_cc_available + "cc/decc "
1178 $ IF F$LOCATE("DEC",line).NE.F$LENGTH(line)
1180 $ vms_cc_dflt = "/decc"
1181 $ vms_cc_available = vms_cc_available + "cc/decc "
1182 $ echo "%Config-I-VMS, Will try cc/vaxc..."
1183 $ DEFINE SYS$ERROR _NLA0:
1184 $ DEFINE SYS$OUTPUT _NLA0:
1186 $ cc/vaxc/NoObj/list=ccvms.lis ccvms.c
1188 $ DEASSIGN SYS$OUTPUT
1189 $ DEASSIGN SYS$ERROR
1191 $ IF (silent) THEN GOSUB Shut_up
1192 $ IF tmp.NE.%X10B90001
1194 $ echo "%Config-I-VMS, Apparently you don't have that one."
1197 $ echo "%Config-I-VMS, You also have: ''line' ''archsufx' ''F$GETSYI("VERSION")'"
1198 $ vms_cc_available = vms_cc_available + "cc/vaxc "
1204 $ echo "%Config-I-VMS, Checking for Gcc"
1205 $ OPEN/WRITE CONFIG gccvers.lis
1206 $ DEFINE SYS$ERROR CONFIG
1207 $ DEFINE SYS$OUTPUT CONFIG
1208 $ 'gcc_symbol'/noobj/version _nla0:
1210 $ DEASSIGN SYS$OUTPUT
1211 $ DEASSIGN SYS$ERROR
1212 $ IF (silent) THEN GOSUB Shut_up
1214 $ IF (tmp.NE.%X10000001).and.(tmp.ne.%X00030001)
1216 $ echo "%Config-I-VMS, Symbol ""''gcc_symbol'"" is not defined. I guess you don't have it."
1219 $ OPEN/READ CONFIG gccvers.lis
1221 $ READ/END_OF_FILE=GCC_List_End CONFIG line
1222 $ GOTO GCC_List_Read
1226 $ vms_cc_available = vms_cc_available + "''gcc_symbol' "
1227 $ DELETE/NOLOG/NOCONFIRM gccvers.lis;
1230 $ DELETE/NOLOG/NOCONFIRM ccvms.*;
1232 $!: see if we need a special compiler
1234 $ echo "%Config-I-VMS, available compiler(s):"
1235 $ echo "( ''vms_cc_available')"
1238 $ dflt = "cc''vms_cc_dflt'" !-> "cc" in case first compile went OK
1242 $ rp = "Use which C compiler? [''dflt'] "
1246 $ ans = F$EDIT(ans,"TRIM, COMPRESS, LOWERCASE")
1248 $ IF F$LOCATE("dec",ans).NE.F$LENGTH(ans)
1251 $ Using_Dec_C = "Yes"
1252 $ C_COMPILER_Replace = "CC=cc=''Mcc'"
1254 $ IF F$LOCATE("vax",ans).NE.F$LENGTH(ans)
1257 $ Using_Vax_C = "Yes"
1258 $ C_COMPILER_Replace = "CC=cc=''Mcc'"
1262 $ IF F$LOCATE("dec",dflt).NE.F$LENGTH(dflt)
1264 $ C_COMPILER_Replace = "CC=cc=''Mcc'"
1266 $ Using_Dec_C = "Yes"
1267 $ IF F$LOCATE("vax",dflt).NE.F$LENGTH(dflt)
1269 $ C_COMPILER_Replace = "CC=cc=''Mcc'"
1273 $ IF Mcc .EQS. "cc/decc"
1275 $ Using_Dec_C = "Yes"
1276 $ C_COMPILER_Replace = "CC=cc=''Mcc'"
1281 $ IF Mcc .EQS. "cc/decc"
1283 $ Using_Dec_C = "Yes"
1284 $ C_COMPILER_Replace = "CC=cc=''Mcc'"
1286 $ IF Mcc .EQS. "cc/vaxc"
1288 $ Using_Vax_C = "Yes"
1289 $ C_COMPILER_Replace = "CC=cc=''Mcc'"
1291 $ IF Mcc .EQS. "gcc"
1293 $ Using_Gnu_C = "Yes"
1294 $ C_COMPILER_Replace = "CC=cc=''Mcc'"
1297 $Decc_Version_check:
1298 $ IF "''Using_Dec_C'".EQS."Yes"
1301 $ echo4 "Checking for Dec C's version number..." !>&4
1302 $ OPEN/WRITE CONFIG deccvers.c
1303 $ WRITE CONFIG "#include <stdlib.h>" !DECC is sooo picky
1304 $ WRITE CONFIG "#include <stdio.h>"
1305 $ WRITE CONFIG "int main() {"
1306 $ WRITE CONFIG "#ifdef __DECC"
1307 $ WRITE CONFIG "#ifdef __DECC_VER"
1308 $ WRITE CONFIG " printf(""%i\n"", __DECC_VER);"
1309 $ WRITE CONFIG "#else"
1310 $ WRITE CONFIG " printf(""%i\n"", ""1"");"
1311 $ WRITE CONFIG "#endif"
1312 $ WRITE CONFIG "#endif"
1313 $ WRITE CONFIG " exit(0);"
1316 $ DEFINE SYS$ERROR _NLA0:
1317 $ DEFINE SYS$OUTPUT _NLA0:
1320 $ DEASSIGN SYS$ERROR _NLA0:
1321 $ DEASSIGN SYS$OUTPUT _NLA0:
1322 $ IF (silent) THEN GOSUB Shut_up
1323 $ DEFINE SYS$ERROR _NLA0:
1324 $ DEFINE SYS$OUTPUT _NLA0:
1327 $ DEASSIGN SYS$ERROR
1328 $ DEASSIGN SYS$OUTPUT
1329 $ IF (silent) THEN GOSUB Shut_up
1330 $ OPEN/WRITE CONFIG deccvers.out
1331 $ DEFINE SYS$ERROR CONFIG
1332 $ DEFINE SYS$OUTPUT CONFIG
1333 $ mcr []deccvers.exe
1336 $ DEASSIGN SYS$OUTPUT
1337 $ DEASSIGN SYS$ERROR
1338 $ IF (silent) THEN GOSUB Shut_up
1339 $ OPEN/READ CONFIG deccvers.out
1340 $ READ/END_OF_FILE=Dec_c_cleanup CONFIG line
1343 $! DELETE/NOLOG/NOCONFIRM deccvers.*;
1344 $ echo "You are using Dec C ''line'"
1345 $ Dec_C_Version = line
1348 $ IF "''Using_Vax_C'".EQS."Yes"
1351 $ echo4 "Checking to see how to invoke Vax C..."
1352 $ OPEN/WRITE CONFIG vaxcchk.c
1353 $ WRITE CONFIG "#include <stdio.h>"
1354 $ WRITE CONFIG "int main() {"
1355 $ WRITE CONFIG " printf(""%i\n"", ""1"");"
1356 $ WRITE CONFIG " exit(0);"
1359 $ DEFINE SYS$ERROR _NLA0:
1360 $ DEFINE SYS$OUTPUT _NLA0:
1362 $ cc/vaxc/NoObj vaxcchk.c
1364 $ DEASSIGN SYS$OUTPUT
1365 $ DEASSIGN SYS$ERROR
1367 $ IF (silent) THEN GOSUB Shut_up
1368 $ IF tmp.NE.%X10B90001
1375 $ DELETE/NOLOG/NOCONFIRM vaxcchk.*;
1378 $ if "''using_gnu_c'" .eqs. "Yes"
1380 $ vaxcrtl_olb = F$SEARCH("SYS$LIBRARY:VAXCRTL.OLB")
1381 $ vaxcrtl_exe = F$SEARCH("SYS$SHARE:VAXCRTL.EXE")
1382 $ gcclib_olb = F$SEARCH("GNU_CC:[000000]GCCLIB.OLB")
1383 $ IF gcclib_olb .EQS. ""
1385 $! These objects/libs come w/ gcc 2.7.2 for AXP:
1386 $ tmp = F$SEARCH("GNU_CC:[000000]libgcc2.olb")
1387 $ IF tmp .NES. "" then gcclib_olb = tmp
1388 $ tmp = F$SEARCH("GNU_CC:[000000]libgcclib.olb")
1391 $ IF gcclib_olb .EQS. ""
1392 $ THEN gcclib_olb = tmp
1393 $ ELSE gcclib_olb = gcclib_olb + "/lib," + tmp
1396 $ tmp = F$SEARCH("SYS$LIBRARY:VAXCRTL.OLB")
1399 $ IF gcclib_olb .EQS. ""
1400 $ THEN gcclib_olb = tmp
1401 $ ELSE gcclib_olb = gcclib_olb + "/lib," + tmp
1404 $ tmp = F$SEARCH("GNU_CC:[000000]crt0.obj")
1407 $ IF gcclib_olb .EQS. ""
1408 $ THEN gcclib_olb = tmp
1409 $ ELSE gcclib_olb = gcclib_olb + "/lib," + tmp
1412 $ IF gcclib_olb .EQS. vaxcrtl_olb THEN gcclib_olb = "" !goofy order of axplibs
1414 $ gcclib_olb = gcclib_olb + "/lib"
1416 $ IF gcclib_olb .NES. "" .AND. -
1417 (vaxcrtl_olb .NES. "" .OR. -
1418 vaxcrtl_exe .NES. "" )
1421 $ echo4 "Checking for GNU cc in disguise and/or its version number..." !>&4
1422 $ OPEN/WRITE CONFIG gccvers.c
1423 $ WRITE CONFIG "#include <stdlib.h>" !DECC is sooo picky
1424 $ WRITE CONFIG "#include <stdio.h>"
1425 $ WRITE CONFIG "int main() {"
1426 $ WRITE CONFIG "#ifdef __GNUC__"
1427 $ WRITE CONFIG "#ifdef __VERSION__"
1428 $ WRITE CONFIG " printf(""%s\n"", __VERSION__);"
1429 $ WRITE CONFIG "#else"
1430 $ WRITE CONFIG " printf(""%s\n"", ""1"");"
1431 $ WRITE CONFIG "#endif"
1432 $ WRITE CONFIG "#endif"
1433 $ WRITE CONFIG " exit(0);"
1436 $ DEFINE SYS$ERROR _NLA0:
1437 $ DEFINE SYS$OUTPUT _NLA0:
1440 $ DEASSIGN SYS$ERROR _NLA0:
1441 $ DEASSIGN SYS$OUTPUT _NLA0:
1442 $ IF (silent) THEN GOSUB Shut_up
1443 $ DEFINE SYS$ERROR _NLA0:
1444 $ DEFINE SYS$OUTPUT _NLA0:
1445 $ IF vaxcrtl_exe .EQS. ""
1447 $ IF F$LOCATE("VAXCRTL",gcclib_olb).NE.F$LENGTH(gcclib_olb)
1449 $ link gccvers.obj,'gcclib_olb',SYS$LIBRARY:VAXCRTL/Library
1452 $ link gccvers.obj,'gcclib_olb'
1456 $ OPEN/WRITE CONFIG GCCVERS.OPT
1457 $ WRITE CONFIG "SYS$SHARE:VAXCRTL/SHARE"
1459 $ link gccvers.obj,GCCVERS.OPT/OPT,'gcclib_olb'
1462 $ DEASSIGN SYS$ERROR
1463 $ DEASSIGN SYS$OUTPUT
1464 $ IF (silent) THEN GOSUB Shut_up
1465 $ OPEN/WRITE CONFIG gccvers.out
1466 $ DEFINE SYS$ERROR CONFIG
1467 $ DEFINE SYS$OUTPUT CONFIG
1471 $ DEASSIGN SYS$OUTPUT
1472 $ DEASSIGN SYS$ERROR
1473 $ IF (silent) THEN GOSUB Shut_up
1474 $ OPEN/READ CONFIG gccvers.out
1475 $ READ/END_OF_FILE=Gcc_cleanup CONFIG line
1478 $ DELETE/NOLOG/NOCONFIRM gccvers.*;
1479 $ IF F$LOCATE("GNU C version ",line).NE.F$LENGTH(line)
1481 $ echo "You are not using GNU cc."
1484 $ echo "You are using GNU cc ''line'"
1485 $ Using_Gnu_C = "Yes"
1486 $ C_COMPILER_Replace = "CC=cc=''Mcc'"
1494 $ OPEN/READ CONFIG ccvms.lis
1496 $ IF (F$GETSYI("HW_MODEL") .LT. 1024)
1504 $ line = F$EDIT(line,"TRIM,COMPRESS")
1505 $ line = line - "Page 1" ! occurs at end all compilers
1506 $ line = line - "CCVMS " ! filename appears w/ VAXC
1507 $ line = line - "Source Listing " ! Seen w/ AXP DECC
1508 $ tmp = F$EXTRACT(0,20,line) !timestamp, e.g. "30-JUL-1996 21:12:54 "
1510 $ line = F$EDIT(line,"TRIM") !bit redundant but we're in no big hurry
1511 $ DELETE/NOLOG/NOCONFIRM ccvms.lis;
1515 $!: What should the include directory be ?
1517 $ rp = "Where are the include files you want to use? "
1518 $ IF f$length( rp + "[''dflt'] " ).gt.76
1519 $ THEN rp = F$FAO("!AS!/!AS",rp,"[''dflt'] ")
1520 $ ELSE rp = rp + "[''dflt'] "
1525 $!: see if we have to deal with yellow pages, now NIS.
1526 $!: now get the host name
1529 $ echo4 "Figuring out host name..." !>&4
1531 $ IF myhostname.eqs."" THEN myhostname = F$TRNLNM("ARPANET_HOST_NAME")
1532 $ IF myhostname.eqs."" THEN myhostname = F$TRNLNM("INTERNET_HOST_NAME")
1533 $ IF myhostname.eqs."" THEN myhostname = F$TRNLNM("MULTINET_HOST_NAME")
1534 $ IF myhostname.eqs."" THEN myhostname = F$TRNLNM("UCX$INET_HOST_NAME")
1535 $ IF myhostname.eqs."".and. -
1536 F$TRNLNM("UCX$INET_HOST") .nes. "" .and. -
1537 F$TRNLNM("UCX$INET_DOMAIN") .nes. "" THEN -
1538 myhostname = F$TRNLNM("UCX$INET_HOST") + "." + F$TRNLNM("UCX$INET_DOMAIN")
1539 $ IF myhostname.eqs."" THEN myhostname = F$TRNLNM("TCPWARE_DOMAINNAME")
1540 $ IF myhostname.eqs."" THEN myhostname = F$TRNLNM("NEWS_ADDRESS")
1541 $ IF myhostname.eqs."" THEN myhostname = F$TRNLNM("SYS$NODE") - "::"
1542 $ IF myhostname.eqs."" THEN myhostname = F$EDIT(F$GETSYI("SCSNODE"),"TRIM")
1543 $!: you do not want to know about this
1545 $ rp = "Your host name appears to be """"''myhostname'"""". Right? "
1547 $ IF (.not.ans).and.(ans.NES."")
1549 $ READ SYS$COMMAND/PROMPT= -
1550 "Please type the (one word) name of your host: " ans
1553 $!: translate upper to lower if necessary
1554 $ myhostname = F$EDIT(myhostname,"COLLAPSE")
1555 $ mylowhostname = F$EDIT(myhostname," LOWERCASE")
1556 $ IF mylowhostname.NES.myhostname
1558 $ echo "(Normalizing case in your host name)"
1559 $ myhostname = mylowhostname
1562 $ fp = F$LOCATE(".",myhostname)
1563 $ mydomain = F$EXTRACT(fp,(F$LENGTH(myhostname)-fp)+1,myhostname)
1564 $ IF mydomain.NES."" !no periods in DECnet names like "MYDECNODE::"
1566 $ rp = "What is your domain name? [''mydomain'] "
1568 $ IF ans THEN mydomain = ans
1569 $!: translate upper to lower if necessary
1570 $ mydomain = F$EDIT(mydomain,"COLLAPSE")
1571 $ mylowdomain = F$EDIT(mydomain," LOWERCASE")
1572 $ IF mylowdomain.NES.mydomain
1574 $ echo "(Normalizing case in your domain name)"
1575 $ mydomain = mylowdomain
1578 $ myhostname = myhostname - mydomain
1579 $ echo "(Trimming domain name from host name--host name is now ''myhostname')"
1581 $ THEN TYPE SYS$INPUT:
1583 I need to get your e-mail address in Internet format if possible, i.e.
1584 something like user@host.domain. Please answer accurately since I have
1585 no easy means to double check it. The default value provided below
1586 is most probably close to the reality but may not be valid from outside
1587 your organization...
1589 $ dflt = "''cf_by@''myhostname'"+"''mydomain'"
1590 $ rp = "What is your e-mail address? [''dflt'] "
1593 $ THEN cf_email = ans
1594 $ ELSE cf_email = dflt
1598 $ THEN TYPE SYS$INPUT:
1600 If you or somebody else will be maintaining perl at your site, please
1601 fill in the correct e-mail address here so that they may be contacted
1602 if necessary. Currently, the "perlbug" program included with perl
1603 will send mail to this address in addition to perlbug@perl.com. You may
1604 enter "none" for no administrator.
1606 $ dflt = "''cf_email'"
1607 $ rp = "Perl administrator e-mail address [''dflt'] "
1610 $ THEN perladmin = ans
1611 $ ELSE perladmin = dflt
1614 $!: determine where public executable scripts go
1615 $!: determine perl absolute location
1616 $!: figure out how to guarantee perl startup
1618 $!: see how we invoke the C preprocessor
1620 $! echo4 "Now, how can we feed standard input to your C preprocessor..." !>&4
1621 $!: Set private lib path
1622 $!: Now check and see which directories actually exist, avoiding duplicates
1623 $!: determine optimize, if desired, or use for debug flag also
1624 $!: We will not override a previous value, but we might want to
1625 $!: augment a hint file
1626 $!: the following weeds options from ccflags that are of no interest to cpp
1627 $!: flags used in final linking phase
1628 $!: Try to guess additional flags to pick up local libraries.
1631 $! echo4 "Checking your choice of C compiler and flags for coherency..." !>&4
1632 $!: compute shared library extension
1633 $!: Looking for optional libraries
1634 $!: see if nm is to be used to determine whether a symbol is defined or not
1635 $!: get list of predefined functions in a handy place
1636 $!: see if we have sigaction
1637 $!: see whether socketshr exists
1638 $ IF (F$SEARCH(F$PARSE("SocketShr","Sys$Share:.Exe")).NES."")
1640 $ has_socketshr = "T"
1642 $ echo4 "Hmm... Looks like you have SOCKETSHR's Berkeley networking support."
1644 $ if (Dec_C_Version .ge. 50200000)
1646 $ Has_Dec_C_Sockets = "T"
1648 $ echo4 "Hmm... Looks like you've got Dec C's Berkeley networking support."
1650 $ ! Hey, we've got both. Default to Dec C, then, since it's better
1651 $ if ("''Has_socketshr'".eq."T") .or.("''has_dec_c_sockets'".eq."T")
1654 $ echo "You've got sockets available. Which socket stack do you want to"
1655 $ echo "build into perl?"
1656 $ if "''has_dec_c_sockets'".eqs."T"
1660 $ dlft = "SOCKETSHR"
1662 $ rp = "Choose socket stack (NONE"
1663 $ if "''has_socketshr'".eqs."T" THEN rp = rp + ",SOCKETSHR"
1664 $ if "''has_dec_c_sockets'".eqs."T" THEN rp = rp + ",DECC"
1665 $ rp = rp + ") [''dflt'] "
1667 $ IF "''ans'".eqs."" THEN ans = "''dflt'"
1668 $ has_dec_c_sockets = "F"
1669 $ has_socketshr = "F"
1670 $ ans = F$EDIT(ans,"TRIM,COMPRESS,LOWERCASE")
1671 $ IF ans.eqs."decc" then has_dec_c_sockets = "T"
1672 $ IF ans.eqs."socketshr" then has_socketshr = "T"
1676 $! Ask about threads, if appropriate
1677 $ if (Using_Dec_C.eqs."Yes")
1679 $ echo "This version of Perl can be built with threads. While really nifty,
1680 $ echo "they are a beta feature, and there is a speed penalty for perl
1681 $ echo "programs if you build with threads *even if you don't use them*
1684 $ rp = "Build with threads? [''dflt'] "
1686 $ if ans.eqs."" then ans = dflt
1687 $ if (f$extract(0, 1, "''ans'").eqs."Y").or.(f$extract(0, 1, "''ans'").eqs."y")
1690 $ ! Are they on VMS 7.1 on an alpha?
1691 $ if (Archname.eqs."VMS_AXP").and.("''f$extract(1,3, f$getsyi(""version""))'".ges."7.1")
1694 $ echo "Threaded perl can be linked to use multiple kernel threads
1695 $ echo "and system upcalls on VMS 7.1+ on Alpha systems. This feature
1696 $ echo "allows multiple threads to execute simultaneously on an SMP
1697 $ echo "system as well as preventing a single thread from blocking
1698 $ echo "all the threads in a program, even on a single-processor
1699 $ echo "machine. Unfortunately this feature isn't safe on an
1700 $ echo "unpatched 7.1 system. (Several OS patches were required when
1701 $ echo "this procedure was written)
1704 $ rp = "Enable multiple kernel threads and upcalls? [''dflt'] "
1706 $ if ans.eqs."" then ans="''dflt'"
1707 $ if f$extract(0, 1, f$edit(ans,"TRIM,COMPRESS,UPCASE")).eqs."Y"
1709 $ Thread_Live_Dangerously = "MT=MT=1"
1717 $ echo "Because of the way perl fetches the list of logical names
1718 $ echo "for the %ENV hash (we spawn a subprocess that does a
1719 $ echo "SHOW LOGICALS *, which is expensive), we defer fetching it
1720 $ echo "until the first time a program iterates over the %ENV hash.
1721 $ echo "This means things like 'exists($ENV{'SYS$MANAGER'})' will
1722 $ echo "return false unless you've already accessed $ENV{SYS$MANAGER}
1723 $ echo "or done something like a keys %ENV."
1725 $ echo "If you choose, perl can populate the %ENV hash at startup.
1726 $ echo "This will exact both a memory penalty (to store the keys) and
1727 $ echo "a time penalty (to spawn the subprocess) every time you invoke
1728 $ echo "perl. Depending on your system, this might not be a big deal.
1731 $ rp = "Populate %ENV at startup time? [''dflt'] "
1733 $ if ans.eqs."" then ans="''dflt'"
1734 $ preload_env = f$extract(0, 1, f$edit(ans,"TRIM,COMPRESS,UPCASE"))
1736 $! Ask if they want to use perl's memory allocator
1738 $ echo "Perl has a built-in memory allocator that's tuned for perl's
1739 $ echo "normal memory usage. It's oftentimes better than the standard
1740 $ echo "system memory allocator. It also has the advantage of providing
1741 $ echo "memory allocation statistics, if you choose to enable them.
1744 $ rp = "Build with perl's memory allocator? [''dflt'] "
1746 $ if ans.eqs."" then ans="''dflt'"
1747 $ mymalloc = f$extract(0, 1, f$edit(ans,"TRIM,COMPRESS,UPCASE"))
1748 $ if mymalloc.eqs."Y"
1750 $ if use_debugging_perl.eqs."Y"
1753 $ echo "Perl can keep statistics on memory usage if you choose to use
1754 $ echo "them. This is useful for debugging, but does have some
1755 $ echo "performance overhead.
1758 $ rp = "Do you want the debugging memory allocator? [''dflt'] "
1760 $ if ans.eqs."" then ans="''dflt'"
1761 $ use_debugmalloc = f$extract(0, 1, f$edit(ans, "TRIM,COMPRESS,UPCASE"))
1763 $ ! Check which memory allocator we want
1765 $ echo "There are currently three different memory allocators: the
1766 $ echo "default (which is a pretty good general-purpose memory manager),
1767 $ echo "the TWO_POT allocator (which is optimized to save memory for
1768 $ echo "larger allocations), and PACK_MALLOC (which is optimized to save
1769 $ echo "memory for smaller allocations). They're all good, but if your
1770 $ echo "usage tends towards larger chunks use TWO_POT, otherwise use
1771 $ echo "PACK_MALLOC."
1774 $ rp = "Memory allocator (DEFAULT, TWO_POT, PACK_MALLOC) [''dflt'] "
1776 $ if ans.eqs."" then ans = "''dflt'"
1777 $ if ans.eqs."TWO_POT" then use_two_pot_malloc = "Y"
1778 $ if ans.eqs."PACK_MALLOC" then use_pack_malloc = "Y"
1781 $! Ask for their default list of extensions to build
1783 $ echo "It's time to specify which modules you want to build into
1784 $ echo "perl. Most of these are standard and should be chosen, though
1785 $ echo "you might, for example, want to build GDBM_File instead of
1786 $ echo "SDBM_File if you have the GDBM library built on your machine
1788 $ echo "Which modules do you want to build into perl?"
1789 $ dflt = "Fcntl Errno IO Opcode Dumper attrs re Stdio DCLsym B SDBM_File"
1790 $ if Using_Dec_C.eqs."Yes"
1792 $ dflt = dflt + " POSIX"
1793 $ if Use_Threads.eqs."T"
1795 $ dflt = dflt + " Thread"
1800 $ if ans.eqs."" then ans = "''dflt'"
1801 $ extensions = "''ans'"
1803 $! %Config-I-VMS, determine build/make utility here (make gmake mmk mms)
1805 $ echo "%Config-I-VMS, Checking your ""make"" utilities..."
1806 $! If the 'build' that you use is not here add it and it's test
1807 $! switch to the _END_ of these strings (and increment max_build)
1808 $! (e.g. builders = builders + "/FOOMAKE"
1809 $! probers = probers + " -fooVersionSwitch"
1810 $! ) & please let me know about it.
1811 $ builders = "IMAKE/GNUMAKE/MGMAKE/GMAKE/MAKE/MMS/MMK"
1812 $ probers = "-f Makefile. -v!-f Makefile. -v!-f Makefile. -v!-f Makefile. -v!-f Makefile. -v!/IDENT!/IDENT"
1818 $ OPEN/WRITE/ERROR=Open_error CONFIG Makefile.
1819 $ WRITE CONFIG "dont_make_anything_yet:"
1820 $ WRITE CONFIG F$FAO("!_")
1823 $ messages = F$ENVIRONMENT("MESSAGE")
1825 $ build = F$ELEMENT(n,"/",builders)
1826 $ probe = F$ELEMENT(n,"!",probers)
1827 $ echo "Testing whether you have ''build' on your system..."
1828 $ SET NOON !sorry :-(
1829 $ ON CONTROL_Y THEN GOTO Reenable_messages_build !sorry :-(
1830 $ SET MESSAGE/NOFAC/NOSEV/NOIDENT/NOTEXT !sorry :-(
1832 $ IF ($SEVERITY .EQ. 1)
1835 $ IF (build .EQS. orig_dflt)
1837 $ default_set = "TRUE"
1840 $ ok_builders = ok_builders + " " + build
1841 $ IF (.NOT. default_set) THEN dflt = build
1845 $Reenable_messages_build: !hope you made it here :-)
1846 $ SET MESSAGE 'messages' !hope you made it here :-)
1847 $ SET ON !hope you made it here :-)
1849 $ IF (n .LT. max_build) THEN GOTO Build_probe
1852 $ IF (ok_builders .NES. "")
1854 $ echo "Here is the list of builders you can apparently use:"
1855 $ echo "(",ok_builders," )"
1856 $ rp = "Which """"make"""" utility do you wish to use [''dflt']? "
1858 $ ans = F$EDIT(ans,"TRIM, COMPRESS")
1859 $ ans = F$EXTRACT(0,F$LOCATE(" ",ans),ans) !throw out "-f Makefile." here
1867 %Config-E-VMS, ERROR:
1868 Well this looks pretty serious. Perl5 cannot be compiled without a "make"
1869 utility of some sort and after checking my "builders" list I cannot find
1870 the symbol or command you use on your system to compile programs.
1872 $ READ SYS$COMMAND/PROMPT="%Config-I-VMS, Which ""MMS"" do you use? " ans
1873 $ ans = F$EDIT(ans,"TRIM, COMPRESS")
1874 $ ans = F$EXTRACT(0,F$LOCATE(" ",ans),ans) !throw out "-f Makefile." here
1877 $ echo "I don't know where 'make' is, and my life depends on it."
1878 $ echo "Go find a make program or fix your DCL$PATH setting!"
1879 $ echo "ABORTING..."
1880 $ SET DEFAULT 'vms_default_directory_name' !be kind rewind
1882 $ EXIT 2 !$STATUS = "%X00000002" (error)
1888 $ DELETE/NOLOG Makefile.;
1893 There seems to be trouble. I just tried to create a file in
1894 $ echo4 'F$ENVIRONMENT("DEFAULT")'
1896 but was unsuccessful. I am stopping now. Please check that directories'
1897 PROTECTION bits. I will leave you in the directory where you started
1899 $ echo4 "ABORTING..."
1905 $! echo " Very well I will proceed with ""''build'"""
1906 $ make = F$EDIT(build,"UPCASE")
1908 $!: locate the preferred pager for this system
1909 $!pagers = "most|more|less|type/page"
1910 $!rp='What pager is used on your system?'
1912 $! update [.vms]config.vms here
1914 $! update makefile here
1915 $! echo4 "Updating makefile..."
1917 $ IF (make .EQS. "MMS").OR.(make .EQS. "MMK")
1919 $ makefile = "" !wrt MANIFEST dir
1920 $ UUmakefile = "DESCRIP.MMS" !wrt CWD dir
1921 $ DEFmakefile = "DESCRIP.MMS" !wrt DEF dir (?)
1923 $ makefile = " -f [.VMS]Makefile." !wrt MANIFEST dir
1924 $ UUmakefile = "[-.VMS]Makefile." !wrt CWD dir
1925 $ DEFmakefile = "[-.VMS]Makefile." !wrt DEF dir (?)
1930 $ tmp = F$LENGTH(macros)
1931 $ macros = F$EXTRACT(0,(tmp-1),macros) !miss trailing comma
1932 $ macros = "/macro=(" + macros + ")"
1935 $! Invoke the subconfig piece
1938 $ echo4 "Generating config.h"
1939 $ dflt = F$ENVIRONMENT("DEFAULT")
1940 $ SET DEFAULT [-.vms]
1944 $! %Config-I-VMS, write perl_setup.com here
1947 $ echo4 "%Config-I-VMS, The perl_setup.com file is now being written..."
1948 $ file_2_find = "[-.vms]perl_setup.com"
1949 $ OPEN/WRITE CONFIG 'file_2_find'
1951 $ WRITE CONFIG "$! Perl_Setup.com ''cf_time'"
1952 $ IF cf_email.NES.perladmin
1954 $ WRITE CONFIG "$! perl configured by ''cf_email'"
1956 $ WRITE CONFIG "$! This perl configured & administered by ''perladmin'"
1959 $ IF F$LOCATE(".]",prefix) .EQ. F$LENGTH(prefix) THEN -
1960 prefix = prefix - "]" + ".]"
1961 $ WRITE CONFIG "$ define/translation=concealed Perl_Root ''prefix'"
1962 $ WRITE CONFIG "$ perl :== $Perl_Root:[000000]Perl"
1963 $ WRITE CONFIG "$ define PerlShr Perl_Root:[000000]PerlShr.Exe"
1966 $ WRITE CONFIG "$ define SYS$TIMEZONE_DIFFERENTIAL ''tzd'"
1967 $ ELSE !leave in but commented out (in case setting was from perl :-)
1968 $ WRITE CONFIG "$! define SYS$TIMEZONE_DIFFERENTIAL ''tzd'"
1971 $ WRITE CONFIG "$! Symbols for commonly used scripts:"
1973 $ WRITE CONFIG "$ Perldoc == ""'"+"'Perl' Perl_Root:[lib.pod]Perldoc.com -t"""
1977 $ echo "%Config-I-VMS, The file can be found at:"
1978 $ echo4 "-Config-I-VMS, ''F$SEARCH(file_2_find)'"
1979 $ echo "-Config-I-VMS, Add that file (or an @ call to it) to your [SY]LOGIN.COM"
1980 $ echo "-Config-I-VMS, when you are satisfied with a successful compilation,"
1981 $ echo "-Config-I-VMS, testing, and installation of your perl."
1984 $!figure out where we "are" by parsing 'vms_default_directory_name'
1986 $ set_def_command = ""
1987 $ dflt = F$ENVIRONMENT("DEFAULT") - ".UU]"
1988 $ tmp = vms_default_directory_name - dflt - "]"
1990 $ IF tmp .EQS. "" THEN GOTO Beyond_set_def_loop
1992 $ tmp1 = F$ELEMENT(i,".",tmp)
1993 $ IF tmp1 .EQS. "." THEN GOTO Beyond_set_def_loop
1995 $ THEN set_def_command = "set default [-"
1996 $ ELSE set_def_command = set_def_command + "-"
2000 $Beyond_set_def_loop:
2001 $ IF set_def_command.NES.""
2003 $ set_def_command = set_def_command - "-" + "]"
2005 $ echo4 "In order to build ''package' you must now issue the commands:"
2007 $ echo4 " ''set_def_command'"
2010 $ echo4 "In order to build ''package' you must now issue the command:"
2013 $ echo4 " ''make'''makefile'", macros
2019 $ DEASSIGN SYS$OUTPUT
2020 $! DEASSIGN SYS$ERROR
2022 $ IF F$GETJPI("","FILCNT").NE.vms_filcnt THEN CLOSE CONFIG
2023 $ IF F$GETJPI("","FILCNT").NE.vms_filcnt
2024 $ THEN WRITE SYS$ERROR "%Config-W-VMS, WARNING: There is a file still open"
2026 $ dflt = F$ENVIRONMENT("DEFAULT")
2027 $ IF F$LOCATE("UU]",dflt).EQS.(F$LENGTH(dflt)-3)
2029 $ IF ( F$SEARCH("[]*.*").NES."" ) THEN DELETE/NOLOG/NOCONFIRM []*.*;*
2031 $ SET PROTECTION=(SYSTEM:RWED,OWNER:RWED) UU.DIR
2032 $ DELETE/NOLOG/NOCONFIRM UU.DIR;
2034 $ SET DEFAULT 'vms_default_directory_name' !be kind rewind
2037 $!: End of Configure