THRIFT-459. Ruby installation always tries to write to /Library/Ruby/site
This patch adds a RUBY_PREFIX option similiar to JAVA_PREFIX or PY_PREFIX.
Patch: Matthieu Imbert
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@943698 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/configure.ac b/configure.ac
index 098b6ca..21ab733 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,6 +37,11 @@
Default = "/usr/local/lib"])
AS_IF([test "x$JAVA_PREFIX" = x], [JAVA_PREFIX="/usr/local/lib"])
+AC_ARG_VAR([RUBY_PREFIX], [Prefix for installing Ruby modules.
+ (Normal --prefix is ignored for Ruby because
+ Ruby has different conventions.)
+ Default = none, let ruby setup decide])
+
AC_ARG_VAR([PHP_PREFIX], [Prefix for installing PHP modules.
(Normal --prefix is ignored for PHP because
PHP has different conventions.)