X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=config.com;h=1e1b925ab8f76e05da739c28210067481a2a3470;hp=1beb74a2582e377cb821fcd45f8a9425d3d82477;hb=4ace4ccda2934d2628c3d63d41e79abe041621a7;hpb=e84193e43dbd3da23845ef9fcfcb5e364049a396 diff --git a/config.com b/config.com index 1beb74a258..1e1b925ab8 100644 --- a/config.com +++ b/config.com @@ -1,15 +1,23 @@ $ ! OpenSSL config: determine the architecture and run Configure +$ ! Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved. +$ ! +$ ! Licensed under the Apache License 2.0 (the "License"). You may not use +$ ! this file except in compliance with the License. You can obtain a +$ ! copy in the file LICENSE in the source distribution or at +$ ! https://www.openssl.org/source/license.html $ ! $ ! Very simple for the moment, it will take the following arguments: $ ! -$ ! 32 sets /POINTER_SIZE=32 -$ ! 64 sets /POINTER_SIZE=64 -$ ! DEBUG sets debugging -$ ! HELP prints a usage and exits +$ ! -32 or 32 sets /POINTER_SIZE=32 +$ ! -64 or 64 sets /POINTER_SIZE=64 +$ ! -d sets debugging +$ ! -h prints a usage and exits +$ ! -t test mode, doesn't run Configure $ -$ arch == f$edit( f$getsyi( "arch_name"), "lowercase") +$ arch = f$edit( f$getsyi( "arch_name"), "lowercase") $ pointer_size = "" -$ debug = "" +$ dryrun = 0 +$ verbose = 0 $ here = F$PARSE("A.;",F$ENVIRONMENT("PROCEDURE"),,,"SYNTAX_ONLY") - "A.;" $ $ collected_args = "" @@ -17,25 +25,55 @@ $ P_index = 0 $ LOOP1: $ P_index = P_index + 1 $ IF P_index .GT. 8 THEN GOTO ENDLOOP1 -$ P1 = F$EDIT(P1,"TRIM") -$ IF P1 .EQS. "HELP" THEN GOTO USAGE -$ IF P1 .EQS. "32" +$ P = F$EDIT(P1,"TRIM,LOWERCASE") +$ IF P .EQS. "-h" +$ THEN +$ dryrun = 1 +$ P = "" +$ TYPE SYS$INPUT +$ DECK +Usage: @config [options] + + -32 or 32 Build with 32-bit pointer size. + -64 or 64 Build with 64-bit pointer size. + -d Build with debugging. + -t Test mode, do not run the Configure perl script. + -v Verbose mode, show the exact Configure call that is being made. + -h This help. + +Any other text will be passed to the Configure perl script. +See INSTALL for instructions. + +$ EOD +$ ENDIF +$ IF P .EQS. "-t" +$ THEN +$ dryrun = 1 +$ verbose = 1 +$ P = "" +$ ENDIF +$ IF P .EQS. "-v" +$ THEN +$ verbose = 1 +$ P = "" +$ ENDIF +$ IF P .EQS. "-32" .OR. P .EQS. "32" $ THEN $ pointer_size = "-P32" -$ P1 = "" +$ P = "" $ ENDIF -$ IF P1 .EQS. "64" +$ IF P .EQS. "-64" .OR. P .EQS. "64" $ THEN $ pointer_size = "-P64" -$ P1 = "" +$ P = "" $ ENDIF -$ IF P1 .EQS. "DEBUG" +$ IF P .EQS. "-d" $ THEN -$ debug = "--debug" -$ P1 = "" +$ collected_args = collected_args + " --debug" +$ P = "" $ ENDIF -$ IF P1 .NES. "" THEN - - collected_args = collected_args + " " + P1 +$ IF P .NES. "" THEN - + collected_args = collected_args + " """ + P1 + """" $ P1 = P2 $ P2 = P3 $ P3 = P4 @@ -48,18 +86,8 @@ $ GOTO LOOP1 $ ENDLOOP1: $ $ target = "vms-''arch'''pointer_size'" -$ PERL 'here'Configure "''target'" 'debug' 'collected_args' -$ EXIT $STATUS -$ -$ USAGE: -$ TYPE SYS$INPUT -$ DECK -usage: @config [options] - - 32 build with 32-bit pointer size - 64 build with 64-bit pointer size - DEBUG build with debugging - HELP this text - -Any other option is simply passed to Configure. -$ EOD +$ IF verbose THEN - + WRITE SYS$OUTPUT "PERL ''here'Configure ""''target'""",collected_args +$ IF .not. dryrun THEN - + PERL 'here'Configure "''target'"'collected_args' +$ EXIT $STATUS