• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/crypto/openssl/

Lines Matching refs:config

27 my $usage="Usage: Configure [no-<cipher> ...] [enable-<cipher> ...] [-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-Kxxx] [no-hw-xxx|no-hw] [[no-]threads] [[no-]shared] [[no-]zlib|zlib-dynamic] [no-asm] [no-egd] [sctp] [386] [--prefix=DIR] [--openssldir=OPENSSLDIR] [--with-xxx[=vvv]] [--config=FILE] os/compiler[:flags]\n";
31 # --config add the given configuration file, which will be read after
89 # a.k.a. libc version. The mentioned config options are meant
193 our %config = ();
234 $config{sourcedir} = abs2rel($srcdir, $blddir);
235 $config{builddir} = abs2rel($blddir, $blddir);
251 @argvcopy = defined($configdata::config{perlargv}) ?
252 @{$configdata::config{perlargv}} : ();
255 $config{perlenv} = $configdata::config{perlenv} // {};
261 $config{perlargv} = [ @argvcopy ];
264 $config{version} = "unknown";
265 $config{version_num} = "unknown";
266 $config{shlib_version_number} = "unknown";
267 $config{shlib_version_history} = "unknown";
271 qr/OPENSSL.VERSION.TEXT.*OpenSSL (\S+) / => sub { $config{version} = $1; },
272 qr/OPENSSL.VERSION.NUMBER.*(0x\S+)/ => sub { $config{version_num}=$1 },
273 qr/SHLIB_VERSION_NUMBER *"([^"]+)"/ => sub { $config{shlib_version_number}=$1 },
274 qr/SHLIB_VERSION_HISTORY *"([^"]*)"/ => sub { $config{shlib_version_history}=$1 }
276 if ($config{shlib_version_history} ne "") { $config{shlib_version_history} .= ":"; }
278 ($config{major}, $config{minor})
279 = ($config{version} =~ /^([0-9]+)\.([0-9\.]+)/);
280 ($config{shlib_major}, $config{shlib_minor})
281 = ($config{shlib_version_number} =~ /^([0-9]+)\.([0-9\.]+)/);
283 "$config{major}, $config{minor}, $config{shlib_major}, $config{shlib_minor}\n"
284 if ($config{major} eq "" || $config{minor} eq ""
285 || $config{shlib_major} eq "" || $config{shlib_minor} eq "");
309 $config{perl_cmd} = $^X;
310 $config{perl_version} = $Config{version};
311 $config{perl_archname} = $Config{archname};
313 $config{prefix}="";
314 $config{openssldir}="";
315 $config{processor}="";
316 $config{libdir}="";
321 $config{dirs} = [ "crypto", "ssl", "engines", "apps", "test", "util", "tools", "fuzz" ];
323 $config{sdirs} = [
333 $config{tdirs} = [ "ossl_shim" ];
351 "autoload-config",
484 sub { $config{processor} eq "386" }
590 # config target attributes
622 # Initialisers coming from 'config' scripts
623 $config{defines} = [ split(/$list_separator_re/, env('__CNF_CPPDEFINES')) ];
624 $config{includes} = [ split(/$list_separator_re/, env('__CNF_CPPINCLUDES')) ];
625 $config{cppflags} = [ env('__CNF_CPPFLAGS') || () ];
626 $config{cflags} = [ env('__CNF_CFLAGS') || () ];
627 $config{cxxflags} = [ env('__CNF_CXXFLAGS') || () ];
628 $config{lflags} = [ env('__CNF_LDFLAGS') || () ];
629 $config{ex_libs} = [ env('__CNF_LDLIBS') || () ];
631 $config{openssl_api_defines}=[];
632 $config{openssl_algorithm_defines}=[];
633 $config{openssl_thread_defines}=[];
634 $config{openssl_sys_defines}=[];
635 $config{openssl_other_defines}=[];
636 $config{options}="";
637 $config{build_type} = "release";
782 $config{build_type} = "debug";
786 $config{build_type} = "release";
789 { $config{processor}=386; }
808 $config{prefix}=$1;
810 unless file_name_is_absolute($config{prefix});
814 $config{api}=$1;
818 $config{libdir}=$1;
822 $config{openssldir}=$1;
853 elsif (/^--config=(.*)$/)
924 if ($config{options} eq "")
925 { $config{options} = $_; }
927 { $config{options} .= " ".$_; }
931 if (defined($config{api}) && !exists $apitable->{$config{api}}) {
932 die "***** Unsupported api compatibility level: $config{api}\n",
1057 print "Configuring OpenSSL version $config{version} ($config{version_num}) ";
1084 push @{$config{openssl_other_defines}},
1096 $config{build_type} = "debug";
1106 $config{target} = $target;
1118 $config{conf_files} = [ sort keys %conf_files ];
1124 warn "***** config $target disables deprecated feature $feature\n";
1126 die "***** config $target disables unknown feature $feature\n";
1128 $disabled{$feature} = 'config';
1133 warn "***** config $target enables deprecated feature $feature\n";
1135 die "***** config $target enables unknown feature $feature\n";
1145 $target{exe_extension}=".exe" if ($config{target} eq "DJGPP"
1146 || $config{target} =~ /^(?:Cygwin|mingw)/);
1147 $target{exe_extension}=".pm" if ($config{target} =~ /vos/);
1154 if ($config{target} =~ /^(?:Cygwin|mingw)/);
1156 # Fill %config with values from %user, and in case those are undefined or
1184 $config{$_} =
1187 delete $config{$_} unless defined $config{$_};
1190 # Finish up %config by appending things the user gave us on the command line
1197 if (defined $config{$_}) {
1198 push @{$config{$_}}, @{$useradd{$_}};
1200 $config{$_} = [ @{$useradd{$_}} ];
1204 # because it's now all been merged into the corresponding $config entry
1206 if (grep { $_ eq '-static' } @{$config{LDFLAGS}}) {
1211 $config{build_file} = env('BUILDFILE') || $target{build_file} || "Makefile";
1239 push @{$config{defines}}, "NDEBUG" if $config{build_type} eq "release";
1241 if ($target =~ /^mingw/ && `$config{CC} --target-help 2>&1` =~ m/-mno-cygwin/m)
1243 push @{$config{cflags}}, "-mno-cygwin";
1244 push @{$config{cxxflags}}, "-mno-cygwin" if $config{CXX};
1245 push @{$config{shared_ldflag}}, "-mno-cygwin";
1249 && !grep { $_ !~ /-m(ips|arch=)/ } (@{$config{CFLAGS}})) {
1254 unshift @{$config{cflags}}, $value;
1255 unshift @{$config{cxxflags}}, $value if $config{CXX};
1274 if (!@{$config{CFLAGS}} && !@{$config{CPPDEFINES}}) {
1285 push @{$config{openssl_thread_defines}}, "OPENSSL_THREADS";
1290 $config{api} = $maxapi;
1302 $config{dynamic_engines} = 0;
1304 $config{dynamic_engines} = 1;
1308 push @{$config{cflags}}, "-fsanitize=address";
1314 push @{$config{cflags}}, "-fsanitize=undefined", "-fno-sanitize-recover=all";
1318 push @{$config{cflags}}, "-fsanitize=memory";
1323 push @{$config{cflags}}, "-fno-omit-frame-pointer", "-g";
1324 push @{$config{cxxflags}}, "-fno-omit-frame-pointer", "-g" if $config{CXX};
1338 delete $config{$_};
1344 push @{$config{lib_defines}}, "OPENSSL_PIC";
1349 push @{$config{openssl_sys_defines}}, "OPENSSL_SYS_$target{sys_id}";
1353 $target{cpuid_asm_src}=$table{DEFAULTS}->{cpuid_asm_src} if ($config{processor} eq "386");
1354 push @{$config{lib_defines}}, "OPENSSL_CPUID_OBJ" if ($target{cpuid_asm_src} ne "mem_clr.c");
1359 push @{$config{lib_defines}}, "OPENSSL_BN_ASM_PART_WORDS" if ($target{bn_asm_src} =~ /bn-586/);
1360 push @{$config{lib_defines}}, "OPENSSL_IA32_SSE2" if (!$disabled{sse2} && $target{bn_asm_src} =~ /86/);
1362 push @{$config{lib_defines}}, "OPENSSL_BN_ASM_MONT" if ($target{bn_asm_src} =~ /-mont/);
1363 push @{$config{lib_defines}}, "OPENSSL_BN_ASM_MONT5" if ($target{bn_asm_src} =~ /-mont5/);
1364 push @{$config{lib_defines}}, "OPENSSL_BN_ASM_GF2m" if ($target{bn_asm_src} =~ /-gf2m/);
1365 push @{$config{lib_defines}}, "BN_DIV3W" if ($target{bn_asm_src} =~ /-div3w/);
1368 push @{$config{lib_defines}}, "SHA1_ASM" if ($target{sha1_asm_src} =~ /sx86/ || $target{sha1_asm_src} =~ /sha1/);
1369 push @{$config{lib_defines}}, "SHA256_ASM" if ($target{sha1_asm_src} =~ /sha256/);
1370 push @{$config{lib_defines}}, "SHA512_ASM" if ($target{sha1_asm_src} =~ /sha512/);
1373 push @{$config{lib_defines}}, "KECCAK1600_ASM";
1376 push @{$config{lib_defines}}, "RC4_ASM";
1379 push @{$config{lib_defines}}, "MD5_ASM";
1383 push @{$config{lib_defines}}, "RMD160_ASM";
1386 push @{$config{lib_defines}}, "AES_ASM" if ($target{aes_asm_src} =~ m/\baes-/);;
1387 push @{$config{lib_defines}}, "AESNI_ASM" if ($target{aes_asm_src} =~ m/\baesni-/);;
1390 push @{$config{lib_defines}}, "AES_CTR_ASM" if ($target{aes_asm_src} =~ s/\s*aes-ctr\.fake//);
1392 push @{$config{lib_defines}}, "AES_XTS_ASM" if ($target{aes_asm_src} =~ s/\s*aes-xts\.fake//);
1394 push @{$config{lib_defines}}, "VPAES_ASM" if ($target{aes_asm_src} =~ m/vpaes/);
1395 push @{$config{lib_defines}}, "BSAES_ASM" if ($target{aes_asm_src} =~ m/bsaes/);
1398 if ($config{processor} eq "386") {
1401 push @{$config{lib_defines}}, "WHIRLPOOL_ASM";
1405 push @{$config{lib_defines}}, "GHASH_ASM";
1408 push @{$config{lib_defines}}, "ECP_NISTZ256_ASM";
1411 push @{$config{lib_defines}}, "X25519_ASM";
1414 push @{$config{dso_defines}}, "PADLOCK_ASM";
1417 push @{$config{lib_defines}}, "POLY1305_ASM";
1421 my %predefined_C = compiler_predefined($config{CROSS_COMPILE}.$config{CC});
1422 my %predefined_CXX = $config{CXX}
1423 ? compiler_predefined($config{CROSS_COMPILE}.$config{CXX})
1428 if ($config{target} =~ /^(VC|vms)-/) {
1437 $config{makedepprog} = "\$(CROSS_COMPILE)$config{CC}";
1441 $config{makedepprog} = which('makedepend');
1442 disable('unavailable', 'makedepend') unless $config{makedepprog};
1453 push @{$config{cflags}}, "-Wa,--noexecstack", "-Qunused-arguments";
1455 my $cc = $config{CROSS_COMPILE}.$config{CC};
1459 push @{$config{cflags}}, "-Wa,--noexecstack";
1470 $config{bn_ll} =0;
1471 $config{export_var_as_fn} =0;
1473 $config{rc4_int} =$def_int;
1474 ($config{b64l},$config{b64},$config{b32})=(0,0,1);
1479 $config{export_var_as_fn}=1 if $_ eq 'EXPORT_VAR_AS_FN';
1480 $config{bn_ll}=1 if $_ eq 'BN_LLONG';
1481 $config{rc4_int}="unsigned char" if $_ eq 'RC4_CHAR';
1482 ($config{b64l},$config{b64},$config{b32})
1484 ($config{b64l},$config{b64},$config{b32})
1486 ($config{b64l},$config{b64},$config{b32})
1497 $config{cflags} = [ map { (my $x = $_) =~ s/([\\\"])/\\$1/g; $x }
1498 @{$config{cflags}} ];
1499 $config{cxxflags} = [ map { (my $x = $_) =~ s/([\\\"])/\\$1/g; $x }
1500 @{$config{cxxflags}} ] if $config{CXX};
1502 if (defined($config{api})) {
1503 $config{openssl_api_defines} = [ "OPENSSL_MIN_API=".$apitable->{$config{api}} ];
1504 my $apiflag = sprintf("OPENSSL_API_COMPAT=%s", $apitable->{$config{api}});
1505 push @{$config{defines}}, $apiflag;
1520 elsif ($config{target} =~ /^VC-/)
1530 $config{CFLAGS} = [ map { $_ eq '--ossl-strict-warnings'
1533 @{$config{CFLAGS}} ];
1539 push @{$config{cflags}}, $wopt
1540 unless grep { $_ eq $wopt } @{$config{cflags}};
1544 push @{$config{ex_libs}}, "-lexecinfo";
1549 $config{afalgeng}="";
1552 if ($config{CROSS_COMPILE} eq "") {
1560 push @{$config{engdirs}}, "afalg";
1586 $config{ktls}="";
1588 my $usr = "/usr/$config{cross_compile_prefix}";
1590 if ($config{cross_compile_prefix} eq "") {
1600 my $cc = $config{CROSS_COMPILE}.$config{CC};
1610 push @{$config{openssl_other_defines}}, "OPENSSL_NO_KTLS" if ($disabled{ktls});
1653 # ALL MODIFICATIONS TO %disabled, %config and %target MUST BE DONE FROM HERE ON
1657 $config{options} .= " no-$what";
1673 if ((grep { $what eq $_ } @{$config{sdirs}})
1675 @{$config{sdirs}} = grep { $what ne $_} @{$config{sdirs}};
1679 push @{$config{openssl_algorithm_defines}}, $macro;
1681 @{$config{dirs}} = grep !/^engines$/, @{$config{dirs}};
1683 push @{$config{openssl_other_defines}}, $macro;
1686 push @{$config{openssl_other_defines}}, $macro;
1693 push @{$config{openssl_other_defines}}, "OPENSSL_NO_DYNAMIC_ENGINE";
1695 push @{$config{openssl_other_defines}}, "OPENSSL_NO_STATIC_ENGINE";
1739 # in %config. This may be useful for the build file itself.
1774 $config{build_file_templates}
1782 foreach (@{$config{dirs}}) {
1786 foreach (@{$config{sdirs}}) {
1790 foreach (@{$config{engdirs}}) {
1794 foreach (@{$config{tdirs}}) {
1799 $config{build_infos} = [ ];
1835 push @{$config{build_infos}}, catfile(abs2rel($sourced, $blddir), $f);
1843 $template->fill_in(HASH => { config => \%config,
2031 die <<"EOF" if scalar @engines and !$config{dynamic_engines};
2379 next if ($config{sourcedir} ne $config{builddir}
2380 && $d =~ m|^\Q$config{sourcedir}\E|);
2412 #! $config{HASHBANGPERL}
2422 our \@EXPORT = qw(\%config \%target \%disabled \%withargs \%unified_info \@disablables);
2425 print OUT "our %config = (\n";
2426 foreach (sort keys %config) {
2427 if (ref($config{$_}) eq "ARRAY") {
2430 @{$config{$_}}), " ],\n";
2431 } elsif (ref($config{$_}) eq "HASH") {
2433 if (scalar keys %{$config{$_}} > 0) {
2435 foreach my $key (sort keys %{$config{$_}}) {
2439 defined $config{$_}->{$key}
2440 ? quotify("perl", $config{$_}->{$key})
2448 print OUT " ", $_, " => ", quotify("perl", $config{$_}), ",\n"
2626 $config{PERL},
2627 catfile($config{sourcedir}, 'Configure'),
2628 @{$config{perlargv}}), "\n";
2630 print ' ',$config{perl_cmd},"\n";
2631 print ' ',$config{perl_version},' for ',$config{perl_archname},"\n";
2680 foreach (sort keys %{$config{perlenv}}) {
2681 print ' ',$_,' = ',($config{perlenv}->{$_} || ''),"\n";
2688 $prefix = $config{CROSS_COMPILE}
2692 (ref $config{$var} eq 'ARRAY'
2693 ? join(' ', @{$config{$var}})
2694 : $prefix.$config{$var}),
2696 if defined $config{$var};
2699 my @buildfile = ($config{builddir}, $config{build_file});
2701 unless file_name_is_absolute($config{builddir});
2712 my @buildfile = ($config{builddir}, $config{build_file});
2714 unless file_name_is_absolute($config{builddir});
2719 foreach (@{$config{build_file_templates}}) {
2722 unless file_name_is_absolute($config{sourcedir});
2728 print 'Reconfiguring with: ', join(' ',@{$config{perlargv}}), "\n";
2729 foreach (sort keys %{$config{perlenv}}) {
2730 print ' ',$_,' = ',($config{perlenv}->{$_} || ""),"\n";
2735 exec $^X,catfile($config{sourcedir}, 'Configure'),'reconf';
2768 %config Configured things.
2769 %target The OpenSSL config target with all inheritances
2806 Print the config attributes for this config target.
2844 @{$config{build_file_templates}});
2931 # plus additional values based on the value of $config{build_type}.
2951 $opts{$config{build_type}} || ())->(); }
3074 The following config targets from $fname
3075 shadow pre-existing config targets with the same name:
3131 # the config that had it.
3247 print STDERR "\n\nNOTE: If in doubt, on Unix-ish systems use './config'.\n";
3261 my $perlcmd = (quotify("maybeshell", $config{PERL}))[0];
3322 # $config{perlenv}->{$name} will be created with the value
3325 $config{perlenv}->{$name} = $ENV{$name}
3326 if ! exists $config{perlenv}->{$name};
3328 return $config{perlenv}->{$name};