From 14d5ff3b1722ca8df12fbc2739a39a18ebdd4ee6 Mon Sep 17 00:00:00 2001 From: Thomas Adam Date: Mon, 6 Nov 2006 15:52:32 +0100 Subject: [PATCH] Fixes version checking for Ruby in 'configure' Patch lifted from bug 725. --- config/m4/ruby.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/m4/ruby.m4 b/config/m4/ruby.m4 index a6485548..eb6fbae1 100644 --- a/config/m4/ruby.m4 +++ b/config/m4/ruby.m4 @@ -32,7 +32,7 @@ if test "$CONFIG_SCRIPTING_RUBY" = "yes"; then if test "$CONFIG_SCRIPTING_RUBY" != "no"; then AC_MSG_CHECKING(Ruby version) - if $CONFIG_SCRIPTING_RUBY -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then + if $CONFIG_SCRIPTING_RUBY -e 'puts "#{VERSION rescue RUBY_VERSION}" >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then ruby_version=`$CONFIG_SCRIPTING_RUBY -e 'puts "#{VERSION rescue RUBY_VERSION}"'` AC_MSG_RESULT($ruby_version)