X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=configure;h=cbb3b7cc4245f1d81979ebb1b1b1fd3fff716a9e;hb=b2e4778ea4a704e4a86ae41d680a9ec886e66cfa;hp=1a6bf295a8b3241867120ea493b8323e195da3fc;hpb=c20a5eb80520a11cb697a45b0d9553c68e2199c8;p=notmuch diff --git a/configure b/configure index 1a6bf295..cbb3b7cc 100755 --- a/configure +++ b/configure @@ -62,6 +62,7 @@ CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)} LDFLAGS=${LDFLAGS:-} XAPIAN_CONFIG=${XAPIAN_CONFIG:-} PYTHON=${PYTHON:-} +RUBY=${RUBY:-ruby} # We don't allow the EMACS or GZIP Makefile variables inherit values # from the environment as we do with CC and CXX above. The reason is @@ -118,6 +119,8 @@ Other environment variables can be used to control configure itself, library. [$XAPIAN_CONFIG] PYTHON Name of python command to use in configure and the test suite. + RUBY Name of ruby command to use in + configure and the test suite. Additionally, various options can be specified on the configure command line. @@ -621,7 +624,7 @@ fi have_ruby_dev=0 if [ $WITH_RUBY = "1" ] ; then printf "Checking for ruby development files... " - if ruby -e "require 'mkmf'"> /dev/null 2>&1; then + if ${RUBY} -e "require 'mkmf'"> /dev/null 2>&1; then printf "Yes.\n" have_ruby_dev=1 else @@ -1027,6 +1030,9 @@ WARN_CFLAGS=${WARN_CFLAGS} # Name of python interpreter PYTHON = ${python} +# Name of ruby interpreter +RUBY = ${RUBY} + # The prefix to which notmuch should be installed # Note: If you change this value here, be sure to ensure that the # LIBDIR_IN_LDCONFIG value below is still set correctly. @@ -1234,6 +1240,9 @@ NOTMUCH_HAVE_MAN=$((have_sphinx)) # Name of python interpreter NOTMUCH_PYTHON=${python} +# Name of ruby interpreter +NOTMUCH_RUBY=${RUBY} + # Are the ruby development files (and ruby) available? If not skip # building/testing ruby bindings. NOTMUCH_HAVE_RUBY_DEV=${have_ruby_dev}