From 48704cc651b937bf2e265aeaae55d44c9ed81e55 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 2 Mar 2020 23:01:25 +0100 Subject: [PATCH] Remove OpenSSL::config::main(), it's not necessary This also remove all option parsing. We leave that to Configure. Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/11230) --- util/perl/OpenSSL/config.pm | 81 ------------------------------------- 1 file changed, 81 deletions(-) diff --git a/util/perl/OpenSSL/config.pm b/util/perl/OpenSSL/config.pm index 3ce5edf80b..c2d079a64f 100755 --- a/util/perl/OpenSSL/config.pm +++ b/util/perl/OpenSSL/config.pm @@ -180,55 +180,6 @@ sub maybe_abort { } } -# Parse options. -sub call_getopt { - our($opt_d); - our($opt_h); - our($opt_t); - our($opt_v); - our($opt_w); - getopts("dhtvw"); - - # Building on windows needs a VisualC target. - my $iswin = $^O eq 'MSWin32'; - my $foundvc = 0; - - if ( $opt_h ) { - print <<'EOF'; -Usage: config [options] [args...] - -d Build with debugging when possible. - -t Test mode, do not run the Configure perl script. - -v Verbose mode, show the exact Configure call that is being made. - -w Do not wait after displaying any warnings. - -h This help. -All other arguments are passed to the Configure script. -See INSTALL for instructions. -EOF - exit; - } - # All other parameters are passed to Configure - foreach my $opt ( @ARGV ) { - # Could make the VC- part optional, but that might cause - # confusion. - if ( $iswin && $opt =~ /^VC-(WIN32|WIN64A|WIN64I|CE)$/i ) { - $opt = tr/a-z/A-Z/; - $opt = "VC-$opt" unless $opt =~ /^VC-/; - $foundvc = 1; - } - $options .= " $opt"; - } - if ( $iswin && !$foundvc ) { - print <