From 49bd3a21e0f995c895b445c0566227661418c2bc Mon Sep 17 00:00:00 2001 From: Alexander Borisov Date: Wed, 4 Apr 2018 18:53:39 +0300 Subject: Changed version processing for modules. --- auto/modules/ruby | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'auto/modules/ruby') diff --git a/auto/modules/ruby b/auto/modules/ruby index 8c5dec0f..99efc449 100644 --- a/auto/modules/ruby +++ b/auto/modules/ruby @@ -91,8 +91,23 @@ if [ $nxt_found = no ]; then exit 1; fi -NXT_RUBY_VERSION=`$NXT_RUBY -r rbconfig -e 'printf("%s",RbConfig::CONFIG["RUBY_PROGRAM_VERSION"])'` -$echo " + Ruby version: ${NXT_RUBY_VERSION}" + +nxt_feature="Ruby version" +nxt_feature_name="" +nxt_feature_run=value +nxt_feature_incs="${NXT_RUBY_INCPATH}" +nxt_feature_libs="${NXT_RUBY_LIBS}" +nxt_feature_test=" + #include + #include + + int main() { + printf(\"%s\", ruby_version); + return 0; + }" + +. auto/feature + if grep ^$NXT_RUBY_MODULE: $NXT_MAKEFILE 2>&1 > /dev/null; then $echo -- cgit