2021-12-06 16:07:01 +00:00
|
|
|
diff --git a/Configure b/Configure
|
2022-11-02 22:02:43 +00:00
|
|
|
index a558e5ab1a..9a884f0b0f 100755
|
2021-12-06 16:07:01 +00:00
|
|
|
--- a/Configure
|
|
|
|
+++ b/Configure
|
2022-11-02 22:02:43 +00:00
|
|
|
@@ -1714,20 +1714,6 @@ unless ($disabled{devcryptoeng}) {
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
unless ($disabled{ktls}) {
|
|
|
|
$config{ktls}="";
|
2022-11-02 22:02:43 +00:00
|
|
|
- my $cc = $config{CROSS_COMPILE}.$config{CC};
|
|
|
|
- if ($target =~ m/^linux/) {
|
|
|
|
- system("printf '#include <sys/types.h>\n#include <linux/tls.h>' | $cc -E - >/dev/null 2>&1");
|
|
|
|
- if ($? != 0) {
|
2021-12-06 16:07:01 +00:00
|
|
|
- disable('too-old-kernel', 'ktls');
|
|
|
|
- }
|
2022-11-02 22:02:43 +00:00
|
|
|
- } elsif ($target =~ m/^BSD/) {
|
|
|
|
- system("printf '#include <sys/types.h>\n#include <sys/ktls.h>' | $cc -E - >/dev/null 2>&1");
|
|
|
|
- if ($? != 0) {
|
|
|
|
- disable('too-old-freebsd', 'ktls');
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- disable('not-linux-or-freebsd', 'ktls');
|
|
|
|
- }
|
|
|
|
}
|
|
|
|
|
|
|
|
push @{$config{openssl_other_defines}}, "OPENSSL_NO_KTLS" if ($disabled{ktls});
|