From: Maxim Koltsov Date: Mon, 8 Nov 2010 14:35:13 +0000 (+0000) Subject: build: Add ./configure --disable-ruby option. X-Git-Tag: 1.6.2~42 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=542747145b72652b98b02f18f7448907be643483;p=libguestfs.git build: Add ./configure --disable-ruby option. This disables the Ruby language bindings. (cherry picked from commit 5b99e1b983b38d3405662c1e2b16f2731d465ce3) --- diff --git a/configure.ac b/configure.ac index ab7f7ae..3e15ad3 100644 --- a/configure.ac +++ b/configure.ac @@ -610,9 +610,15 @@ AM_CONDITIONAL([HAVE_PYTHON], [test "x$PYTHON_INCLUDEDIR" != "x" && test "x$PYTHON_SITE_PACKAGES" != "x"]) dnl Check for Ruby and rake (optional, for Ruby bindings). -AC_CHECK_LIB([ruby],[ruby_init],[HAVE_LIBRUBY=1],[HAVE_LIBRUBY=0]) -AC_CHECK_PROG([RAKE],[rake],[rake],[no]) - +AC_ARG_ENABLE([ruby], + AS_HELP_STRING([--disable-ruby], [Disable Ruby language bindings]), + [], + [enable_ruby=yes]) +AS_IF([test "x$enable_ruby" != "xno"], + [ + AC_CHECK_LIB([ruby],[ruby_init],[HAVE_LIBRUBY=1],[HAVE_LIBRUBY=0]) + AC_CHECK_PROG([RAKE],[rake],[rake],[no]) + ]) AM_CONDITIONAL([HAVE_RUBY], [test "x$RAKE" != "xno" && test -n "$HAVE_LIBRUBY"])