Add ruby 2.5 and 2.4 detection

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 7 years ago
parent 9dc323e987
commit e586cb9494

@ -15,7 +15,7 @@ else
RUBY_CFLAGS=`$PKGCONFIG ruby --cflags` RUBY_CFLAGS=`$PKGCONFIG ruby --cflags`
fi fi
if test -z "$RUBY_VERSION"; then if test -z "$RUBY_VERSION"; then
for RUBY_TEST in 2.3 2.2 2.1 2.0 1.9; do for RUBY_TEST in 2.5 2.4 2.3 2.2 2.1 2.0 1.9; do
RUBY_VERSION=`$PKG_CONFIG ruby-$RUBY_TEST --modversion 2>/dev/null` RUBY_VERSION=`$PKG_CONFIG ruby-$RUBY_TEST --modversion 2>/dev/null`
if test -n "$RUBY_VERSION"; then if test -n "$RUBY_VERSION"; then
RUBY_CFLAGS=`$PKG_CONFIG ruby-$RUBY_TEST --cflags` RUBY_CFLAGS=`$PKG_CONFIG ruby-$RUBY_TEST --cflags`

@ -15,7 +15,7 @@ else
RUBY_CFLAGS=`$PKGCONFIG ruby --cflags` RUBY_CFLAGS=`$PKGCONFIG ruby --cflags`
fi fi
if test -z "$RUBY_VERSION"; then if test -z "$RUBY_VERSION"; then
for RUBY_TEST in 2.3 2.2 2.1 2.0 1.9; do for RUBY_TEST in 2.5 2.4 2.3 2.2 2.1 2.0 1.9; do
RUBY_VERSION=`$PKG_CONFIG ruby-$RUBY_TEST --modversion 2>/dev/null` RUBY_VERSION=`$PKG_CONFIG ruby-$RUBY_TEST --modversion 2>/dev/null`
if test -n "$RUBY_VERSION"; then if test -n "$RUBY_VERSION"; then
RUBY_CFLAGS=`$PKG_CONFIG ruby-$RUBY_TEST --cflags` RUBY_CFLAGS=`$PKG_CONFIG ruby-$RUBY_TEST --cflags`

Loading…
Cancel
Save