aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAvatar Marvin Schmidt <marv@exherbo.org> 2016-05-28 15:09:55 +0200
committerAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2016-06-06 22:33:14 +0200
commit17385c4894090b0f39605e5906ce3cdb2e0169b7 (patch)
treefe30042aa04205147a828ea59c1c6bace2a7656c /configure.ac
parentf3b004164cf4996eba27ae27e643665f8e76228e (diff)
downloadpaludis-17385c4894090b0f39605e5906ce3cdb2e0169b7.tar.gz
paludis-17385c4894090b0f39605e5906ce3cdb2e0169b7.tar.xz
build: Use configured ruby executable instead of `ruby`
Otherwise configure will fail if `ruby` does not point to the same ruby binary as specified by --with-ruby-version: $ readlink -f `which ruby` /usr/x86_64-pc-linux-gnu/bin/ruby2.3 $ ./configure --enable-ruby --with-ruby-version=2.2 --enable-ruby-doc [...] checking for RUBY... yes checking for Ruby installation dir... /usr/x86_64-pc-linux-gnu/lib/ruby/site_ruby/2.2/x86_64-linux checking whether to build the Ruby documentation... yes checking for syntax... configure: error: syntax (http://syntax.rubyforge.org) is needed to build Ruby documentation Change-Id: Idf9edae157b8e442a2d63c0a71097fd01374a9fc
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index d1a38ccf2..77fa73c04 100644
--- a/configure.ac
+++ b/configure.ac
@@ -696,7 +696,7 @@ AC_MSG_RESULT($enable_ruby_doc)
if test "x$enable_ruby_doc" = "xyes" ; then
AC_MSG_CHECKING([for syntax])
- if ruby -rubygems -e "require 'syntax/convertors/html'" >/dev/null 2>/dev/null ; then
+ if $RUBY -rubygems -e "require 'syntax/convertors/html'" >/dev/null 2>/dev/null ; then
AC_MSG_RESULT([yes])
else
AC_MSG_ERROR([syntax (http://syntax.rubyforge.org) is needed to build Ruby documentation])