diff options
author | Alexander Borisov <alexander.borisov@nginx.com> | 2018-04-04 18:53:39 +0300 |
---|---|---|
committer | Alexander Borisov <alexander.borisov@nginx.com> | 2018-04-04 18:53:39 +0300 |
commit | 49bd3a21e0f995c895b445c0566227661418c2bc (patch) | |
tree | 1822ad6a45f285ba1db652eec99949a128d39c15 /auto/modules/perl | |
parent | 0665896a5593fb41c92cbf164182a058ee40518c (diff) | |
download | unit-49bd3a21e0f995c895b445c0566227661418c2bc.tar.gz unit-49bd3a21e0f995c895b445c0566227661418c2bc.tar.bz2 |
Changed version processing for modules.
Diffstat (limited to '')
-rw-r--r-- | auto/modules/perl | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/auto/modules/perl b/auto/modules/perl index 85dc7307..ecc356c0 100644 --- a/auto/modules/perl +++ b/auto/modules/perl @@ -121,8 +121,23 @@ if [ $nxt_found = no ]; then exit 1; fi -NXT_PERL_VERSION=`$NXT_PERL -MConfig -e 'print $Config{version}'` -$echo " + Perl version: ${NXT_PERL_VERSION}" + +nxt_feature="Perl version" +nxt_feature_name="" +nxt_feature_run=value +nxt_feature_incs="${NXT_PERL_INCLUDE}" +nxt_feature_libs="${NXT_PERL_LIBS}" +nxt_feature_test=" + #include <EXTERN.h> + #include <perl.h> + + int main() { + printf(\"%s\", PERL_VERSION_STRING); + return 0; + }" + +. auto/feature + if grep ^$NXT_PERL_MODULE: $NXT_MAKEFILE 2>&1 > /dev/null; then $echo |