summaryrefslogtreecommitdiff
blob: fc09beace2233ed0f9009de38f6a2afe6e970ac2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/configure.in
+++ b/configure.in
@@ -525,9 +525,9 @@
 dnl * Ruby support                                   *
 dnl **************************************************
 
-
-AM_PATH_RUBY(,with_ruby=yes, with_ruby=no)
+AC_ARG_WITH(ruby, AC_HELP_STRING(--with-ruby@<:@=PATH@:>@, Enable support for ruby binding @<:@default=auto@:>@),,with_ruby=no)
 if test x$with_ruby != xno; then
+    AM_PATH_RUBY(,with_ruby=yes, with_ruby=no)
     RUBY_ARCHDIR=`$RUBY -e 'require "rbconfig.rb"; puts RbConfig::expand("\$(archdir)")'`
     RUBY_LIBRUBYARG=`$RUBY -e 'require "rbconfig.rb"; puts RbConfig::expand("\$(LIBRUBYARG)")'`