diff --git a/Changes b/Changes index 565b3d1..811dc64 100644 --- a/Changes +++ b/Changes @@ -1,7 +1,9 @@ Revision history for Perl extension Net::mbedTLS: 0.02 -- Added changelog +- Fixed IO::Async module not to require AnyEvent. +- Fixed compatiblity with older perls (“current_sub” is no longer used). +- Added changelog. 0.01 Wed Dec 21 2022 - Initial release diff --git a/Makefile.PL b/Makefile.PL index bb0af43..bfd97d7 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -111,6 +111,19 @@ sub _determine_defines { my @defines; my @checks = ( + + # A hack to detect nonavailability of mbedTLS: + { + label => 'mbedTLS availability', + required => 1, + c => q[ + #include + int main() { + return 0; + } + ], + }, + { label => 'public net_socket.fd', define => 'NET_CONTEXT_FD_IS_PUBLIC', @@ -222,6 +235,11 @@ sub _determine_defines { ); }; + if ($check_hr->{'required'}) { + die "DEPENDENCY FAILED\n" if !$obj_file; + next; + } + if ($obj_file) { push @defines, $check_hr->{'define'}; } diff --git a/cpanfile b/cpanfile index d62f407..515800a 100644 --- a/cpanfile +++ b/cpanfile @@ -4,7 +4,6 @@ configure_requires 'autodie'; configure_requires 'ExtUtils::CBuilder'; configure_requires 'ExtUtils::MakeMaker::CPANfile'; -test_requires 'Test::DescribeMe'; test_requires 'Test::FailWarnings'; test_requires 'Mozilla::CA'; diff --git a/lib/Net/mbedTLS.pm b/lib/Net/mbedTLS.pm index d39637c..30deda9 100644 --- a/lib/Net/mbedTLS.pm +++ b/lib/Net/mbedTLS.pm @@ -8,7 +8,7 @@ our $VERSION; use XSLoader (); BEGIN { - $VERSION = '0.01'; + $VERSION = '0.01_90'; XSLoader::load( __PACKAGE__, $VERSION ); }