From 4a4424442292465490389093b8d1f2460a7eb855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Tue, 26 Dec 2017 21:55:53 +0100 Subject: [PATCH] core: add detection of Ruby 2.5 in autotools (issue #1122) --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 471271746..3ad16dd47 100644 --- a/configure.ac +++ b/configure.ac @@ -611,7 +611,7 @@ RUBY_VERSION= if test "x$enable_ruby" = "xyes" ; then RUBY_CFLAGS="" RUBY_LFLAGS="" - for v in "2.3" "2.2" "2.1" "2.0" "1.9" "1.8" ; do + for v in "2.5" "2.4" "2.3" "2.2" "2.1" "2.0" "1.9" "1.8" ; do pkgconfig_ruby_found=`$PKGCONFIG --exists ruby-$v 2>/dev/null` if test "x$?" = "x0" ; then RUBY_VERSION=`$PKGCONFIG --modversion ruby-$v` @@ -621,6 +621,7 @@ if test "x$enable_ruby" = "xyes" ; then fi done + # detect old Ruby versions if test "x$RUBY_CFLAGS" = "x" -o "x$RUBY_LFLAGS" = "x" ; then AC_PATH_PROGS(RUBY, ruby1.9.3 ruby1.9.2 ruby1.9.1 ruby1.9 ruby1.8 ruby) if test -z $RUBY ; then