Lines Matching refs:config

23 use OpenSSL::config;
244 our %config = ();
285 $config{sourcedir} = abs2rel($srcdir, $blddir);
286 $config{builddir} = abs2rel($blddir, $blddir);
288 $config{FIPSKEY} =
305 @argvcopy = defined($configdata::config{perlargv}) ?
306 @{$configdata::config{perlargv}} : ();
309 $config{perlenv} = $configdata::config{perlenv} // {};
315 $config{perlargv} = [ @argvcopy ];
350 $config{major} = $version{MAJOR} // 'unknown';
351 $config{minor} = $version{MINOR} // 'unknown';
352 $config{patch} = $version{PATCH} // 'unknown';
353 $config{prerelease} =
355 $config{build_metadata} =
357 $config{shlib_version} = $version{SHLIB_VERSION} // 'unknown';
358 $config{release_date} = $version{RELEASE_DATE} // 'xx XXX xxxx';
360 $config{version} = "$config{major}.$config{minor}.$config{patch}";
361 $config{full_version} = "$config{version}$config{prerelease}$config{build_metadata}";
364 "$config{version}, $config{shlib_version}\n"
398 $config{perl_cmd} = $^X;
399 $config{perl_version} = $Config{version};
400 $config{perl_archname} = $Config{archname};
402 $config{prefix}="";
403 $config{openssldir}="";
404 $config{processor}="";
405 $config{libdir}="";
634 sub { $config{processor} eq "386" }
808 $config{defines} = [ split(/$list_separator_re/, env('__CNF_CPPDEFINES')) ];
809 $config{includes} = [ split(/$list_separator_re/, env('__CNF_CPPINCLUDES')) ];
810 $config{cppflags} = [ env('__CNF_CPPFLAGS') || () ];
811 $config{cflags} = [ env('__CNF_CFLAGS') || () ];
812 $config{cxxflags} = [ env('__CNF_CXXFLAGS') || () ];
813 $config{lflags} = [ env('__CNF_LDFLAGS') || () ];
814 $config{ex_libs} = [ env('__CNF_LDLIBS') || () ];
816 $config{openssl_api_defines}=[];
817 $config{openssl_sys_defines}=[];
818 $config{openssl_feature_defines}=[];
819 $config{options}="";
820 $config{build_type} = "release";
978 $config{build_type} = "debug";
1001 $config{build_type} = "debug";
1005 $config{build_type} = "release";
1008 { $config{processor}=386; }
1019 $config{prefix}=$1;
1026 $config{api}=$apitable->{$api};
1030 $config{libdir}=$1;
1034 $config{openssldir}=$1;
1174 if ($config{options} eq "")
1175 { $config{options} = $_; }
1177 { $config{options} .= " ".$_; }
1255 my %system_config = OpenSSL::config::get_platform(%guess_opts, %user);
1266 %config = ( %config, %system_config );
1320 print "Configuring OpenSSL version $config{full_version} ";
1352 push @{$config{openssl_feature_defines}},
1358 $config{FIPS_VENDOR} =
1369 $config{build_type} = "debug";
1398 $config{target} = $target;
1410 $config{conf_files} = [ sort keys %conf_files ];
1442 $target{exe_extension}=".exe" if ($config{target} eq "DJGPP");
1443 $target{exe_extension}=".pm" if ($config{target} =~ /vos/);
1473 $config{$_} =
1476 delete $config{$_} unless defined $config{$_};
1486 if (defined $config{$_}) {
1487 push @{$config{$_}}, @{$useradd{$_}};
1489 $config{$_} = [ @{$useradd{$_}} ];
1495 if ($config{prefix} && !$config{CROSS_COMPILE}) {
1497 unless file_name_is_absolute($config{prefix});
1500 if (grep { $_ =~ /(?:^|\s)-static(?:\s|$)/ } @{$config{LDFLAGS}}) {
1505 $config{build_file} = env('BUILDFILE') || $target{build_file} || "Makefile";
1514 foreach my $checker (($builder_platform."-".$config{build_file}."-checker.pm",
1533 push @{$config{defines}}, "NDEBUG" if $config{build_type} eq "release";
1535 if ($target =~ /^mingw/ && `$config{CC} --target-help 2>&1` =~ m/-mno-cygwin/m)
1537 push @{$config{cflags}}, "-mno-cygwin";
1538 push @{$config{cxxflags}}, "-mno-cygwin" if $config{CXX};
1539 push @{$config{shared_ldflag}}, "-mno-cygwin";
1543 && !grep { $_ =~ /-m(ips|arch=)/ } (@{$config{CFLAGS}})) {
1548 unshift @{$config{cflags}}, $value;
1549 unshift @{$config{cxxflags}}, $value if $config{CXX};
1568 if (!@{$config{CFLAGS}} && !@{$config{CPPDEFINES}}) {
1580 foreach (grep /^-fsanitize=/, @{$config{CFLAGS} || []}) {
1600 push @{$config{openssl_feature_defines}}, "OPENSSL_THREADS";
1616 $config{dynamic_engines} = 0;
1618 $config{dynamic_engines} = 1;
1622 push @{$config{cflags}}, "-fsanitize=address";
1626 push @{$config{cflags}}, "-fsanitize=undefined", "-fno-sanitize-recover=all", "-DPEDANTIC";
1630 push @{$config{cflags}}, "-fsanitize=memory";
1635 push @{$config{cflags}}, "-fno-omit-frame-pointer", "-g";
1636 push @{$config{cxxflags}}, "-fno-omit-frame-pointer", "-g" if $config{CXX};
1650 delete $config{$_};
1656 push @{$config{lib_defines}}, "OPENSSL_PIC";
1661 push @{$config{openssl_sys_defines}}, "OPENSSL_SYS_$target{sys_id}";
1664 my %predefined_C = compiler_predefined($config{CROSS_COMPILE}.$config{CC});
1665 my %predefined_CXX = $config{CXX}
1666 ? compiler_predefined($config{CROSS_COMPILE}.$config{CXX})
1685 $config{makedep_scheme} = $target{makedep_scheme};
1688 $config{makedepcmd} = $target{makedepcmd} if $target{makedepcmd};
1694 $config{makedep_scheme} = 'gcc';
1698 $config{makedepcmd} = which('makedepend');
1699 $config{makedep_scheme} = 'makedepend' if $config{makedepcmd};
1703 disable('unavailable', 'makedepend') unless $config{makedep_scheme};
1713 push @{$config{cflags}}, "-Wa,--noexecstack", "-Qunused-arguments";
1715 my $cc = $config{CROSS_COMPILE}.$config{CC};
1719 push @{$config{cflags}}, "-Wa,--noexecstack";
1730 $config{bn_ll} =0;
1732 $config{rc4_int} =$def_int;
1733 ($config{b64l},$config{b64},$config{b32})=(0,0,1);
1738 $config{bn_ll}=1 if $_ eq 'BN_LLONG';
1739 $config{rc4_int}="unsigned char" if $_ eq 'RC4_CHAR';
1740 ($config{b64l},$config{b64},$config{b32})
1742 ($config{b64l},$config{b64},$config{b32})
1744 ($config{b64l},$config{b64},$config{b32})
1750 $config{api} = $config{major} * 10000 + $config{minor} * 100
1751 unless $config{api};
1754 if $disabled{deprecated} && $config{api} >= $apitable->{$_};
1763 $config{cflags} = [ map { (my $x = $_) =~ s/([\\\"])/\\$1/g; $x }
1764 @{$config{cflags}} ];
1765 $config{cxxflags} = [ map { (my $x = $_) =~ s/([\\\"])/\\$1/g; $x }
1766 @{$config{cxxflags}} ] if $config{CXX};
1768 $config{openssl_api_defines} = [
1769 "OPENSSL_CONFIGURED_API=".$config{api},
1784 elsif ($config{target} =~ /^VC-/)
1794 $config{CFLAGS} = [ map { $_ eq '--ossl-strict-warnings'
1797 @{$config{CFLAGS}} ];
1800 $config{afalgeng}="";
1802 push @{$config{engdirs}}, "afalg";
1824 $config{ktls}="";
1825 my $cc = $config{CROSS_COMPILE}.$config{CC};
1847 push @{$config{openssl_other_defines}}, "OPENSSL_NO_KTLS" if ($disabled{ktls});
1914 $config{options} .= " no-$what";
1927 push @{$config{openssl_feature_defines}}, $macro;
1936 push @{$config{openssl_feature_defines}}, "OPENSSL_NO_DYNAMIC_ENGINE";
1938 push @{$config{openssl_feature_defines}}, "OPENSSL_NO_STATIC_ENGINE";
1986 ( $builder_platform."-".$config{build_file}.".tmpl",
1987 $config{build_file}.".tmpl" );
2019 $config{build_file_templates}
2026 $config{build_infos} = [ ];
2190 push @{$config{build_infos}}, catfile(abs2rel($sourced, $blddir), $f);
2343 and !$config{dynamic_engines}) {
2609 if grep { $v eq $_ } @{$config{defines}};
2610 push @{$config{defines}}, $v;
2929 next if ($config{sourcedir} ne $config{builddir}
2930 && $d =~ m|^\Q$config{sourcedir}\E|);
2960 config => \%config,
2999 my $perlcmd = (quotify("maybeshell", $config{PERL}))[0];
3036 my $build_file = $config{build_file} // "build file";
3078 $opts{$config{build_type}} || ())->(); }
3433 $config{perlenv}->{$name} = $ENV{$name}
3434 if ! exists $config{perlenv}->{$name};
3436 return $config{perlenv}->{$name};