From: Peter Prymmer Date: Thu, 13 May 1999 15:29:57 +0000 (-0700) Subject: add config.msg to VMS configure.com X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a4521476fe41e2ec4e09ca8b4982e94e0cf66f6e;p=p5sagit%2Fp5-mst-13.2.git add config.msg to VMS configure.com To: perl5-porters@perl.org, vmsperl@perl.org Message-Id: <9905132229.AA15854@forte.com> p4raw-id: //depot/cfgperl@3422 --- diff --git a/configure.com b/configure.com index 388ba6b..6a1c37a 100644 --- a/configure.com +++ b/configure.com @@ -1992,6 +1992,32 @@ $ SET DEFAULT [-.vms] $ @subconfigure $ SET DEFAULT 'dflt $! +$! Warn of dangerous logical names +$! +$Bad_logical: SUBROUTINE +$ IF f$trnlnm(p1) .nes. "" +$ THEN +$ IF f$search("config.msg") .nes. "" +$ THEN +$ OPEN/APPEND CONFIG config.msg +$ ELSE +$ OPEN/WRITE CONFIG config.msg +$ ENDIF +$ WRITE CONFIG "Logical name ''p1' found in environment as " + f$trnlnm(p1) +$ WRITE CONFIG " deassign before building ''package'" +$ CLOSE CONFIG +$ ENDIF +$ EXIT +$ ENDSUBROUTINE ! Bad_logical +$ echo "" +$ echo4 "%Config-I-VMS, Checking for dangerous pre extant logical names." +$ CALL Bad_logical "TMP" +$ CALL Bad_logical "LIB" +$ CALL Bad_logical "T" +$ CALL Bad_logical "FOO" +$ CALL Bad_logical "EXT" +$ IF f$search("config.msg") .eqs. "" THEN echo "OK." +$! $! %Config-I-VMS, write perl_setup.com here $! $ echo "" @@ -2078,6 +2104,15 @@ $ ENDIF $ echo4 " ''make'''makefile'", macros $ echo4 "" $! +$ IF ( F$SEARCH("config.msg").NES."" ) +$ THEN +$ echo "Hmm. I also noted the following information while running:" +$ echo "" +$ type config.msg +$ SET PROTECTION=(SYSTEM:RWED,OWNER:RWED) config.msg +$ DELETE/NOLOG/NOCONFIRM config.msg; +$ ENDIF +$! $Clean_up: $ IF (silent) $ THEN