summaryrefslogtreecommitdiffstats
path: root/lib/kross/configure.in.in
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2012-10-28 21:02:13 +0100
committerSlávek Banko <slavek.banko@axis.cz>2012-10-28 21:02:13 +0100
commite566a4bef04b83c4927349955ca7cca80aee1c09 (patch)
tree41ff36da4808373bc7e062e248e4a87ce73681e6 /lib/kross/configure.in.in
parent5d27227c3ea7a5976eb8b241975f4871fb07aa52 (diff)
downloadkoffice-e566a4bef04b83c4927349955ca7cca80aee1c09.tar.gz
koffice-e566a4bef04b83c4927349955ca7cca80aee1c09.zip
Fix Ruby 1.9.x shared library test without pkgconfig file
Diffstat (limited to 'lib/kross/configure.in.in')
-rw-r--r--lib/kross/configure.in.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/kross/configure.in.in b/lib/kross/configure.in.in
index 496b399b..dd049651 100644
--- a/lib/kross/configure.in.in
+++ b/lib/kross/configure.in.in
@@ -52,6 +52,9 @@ if test "x$compile_kross" = "xyes" ; then
RUBY_VERSION="$RUBY_MAJOR.$RUBY_MINOR.$RUBY_TEENY"
RUBY_CFLAGS="-I`$RUBY -r rbconfig -e 'printf("%s",RbConfig::CONFIG@<:@"rubyhdrdir"@:>@)'`"
RUBY_CFLAGS="$RUBY_CFLAGS/`$RUBY -r rbconfig -e 'printf("%s",RbConfig::CONFIG@<:@"arch"@:>@)'` $RUBY_CFLAGS"
+ if test -n "`$RUBY -r rbconfig -e 'printf("%s",RbConfig::CONFIG@<:@"LIBRUBYARG_SHARED"@:>@)'`"; then
+ RUBY_ENABLESHARED=yes
+ fi
fi
fi
fi
@@ -88,6 +91,7 @@ if test "x$compile_kross" = "xyes" ; then
AC_SUBST(RUBY_SITEARCHDIR)
AC_SUBST(RUBY_RUBYLIBDIR)
AC_SUBST(RUBY_INCLUDEDIR)
+ AC_SUBST(RUBY_LIBRUBYARG)
AC_SUBST(RUBY_SITEDIR)
AC_SUBST(RUBY_CFLAGS)