diff options
Diffstat (limited to 'lib/kross/configure.in.in')
-rw-r--r-- | lib/kross/configure.in.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/kross/configure.in.in b/lib/kross/configure.in.in index 19c438ec..a1aba27c 100644 --- a/lib/kross/configure.in.in +++ b/lib/kross/configure.in.in @@ -36,6 +36,12 @@ if test "x$compile_kross" = "xyes" ; then RUBY_CFLAGS=`$PKGCONFIG ruby --cflags` fi if test -z "$RUBY_VERSION"; then + RUBY_VERSION=`$PKGCONFIG ruby-2.2 --modversion 2>/dev/null` + if test -n "$RUBY_VERSION"; then + RUBY_CFLAGS=`$PKGCONFIG ruby-2.2 --cflags` + fi + fi + if test -z "$RUBY_VERSION"; then RUBY_VERSION=`$PKGCONFIG ruby-2.1 --modversion 2>/dev/null` if test -n "$RUBY_VERSION"; then RUBY_CFLAGS=`$PKGCONFIG ruby-2.1 --cflags` |