aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Richard Brown <rbrown@exherbo.org> 2008-01-23 07:35:45 +0000
committerAvatar Richard Brown <rbrown@exherbo.org> 2008-01-23 07:35:45 +0000
commit4104ef010268b7c5a080ade8412c65a364feba5c (patch)
tree3346e47b7cb9c9088f97d602388ebacbbd78e769
parent5e426948b85259c62038494d2a850a900dfa9023 (diff)
downloadpaludis-4104ef010268b7c5a080ade8412c65a364feba5c.tar.gz
paludis-4104ef010268b7c5a080ade8412c65a364feba5c.tar.xz
Require --enable-ruby to use --enable-ruby-doc.
-rw-r--r--configure.ac52
1 files changed, 30 insertions, 22 deletions
diff --git a/configure.ac b/configure.ac
index 1164f1c..06210b0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -879,31 +879,39 @@ if test "x$enable_ruby" = "xyes" ; then
AC_MSG_RESULT([$RUBY_INSTALL_DIR])
AC_SUBST([RUBY_INSTALL_DIR])
- AC_MSG_CHECKING([whether to build the Ruby documentation])
- AC_ARG_ENABLE([ruby-doc],
- AS_HELP_STRING([--enable-ruby-doc], [Enable Ruby documentation (default: disable)]),
- enable_ruby_doc=$enableval,
- enable_ruby_doc=no)
- AC_MSG_RESULT($enable_ruby_doc)
-
- if test "x$enable_ruby_doc" = "xyes" ; then
- AC_MSG_CHECKING([for allison])
- if ruby -rubygems -e "require 'allison'" >/dev/null 2>/dev/null ; then
- AC_MSG_RESULT([yes])
- else
- AC_MSG_ERROR([allison (http://blog.evanweaver.com/files/doc/fauna/allison/files/README.html) is needed to build Ruby documentation])
- fi
+fi
+AM_CONDITIONAL([ENABLE_RUBY], test "x$enable_ruby" = "xyes")
+dnl }}}
- AC_MSG_CHECKING([for syntax])
- 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])
- fi
- fi
+dnl {{{ ruby documentation
+AC_MSG_CHECKING([whether to build the Ruby documentation])
+AC_ARG_ENABLE([ruby-doc],
+ AS_HELP_STRING([--enable-ruby-doc], [Enable Ruby documentation, requires --enable-ruby (default: disable)]),
+ enable_ruby_doc=$enableval,
+ enable_ruby_doc=no)
+
+if test "x$enable_ruby_doc" = "xyes" && test "x$enable_ruby" = "xno"; then
+ AC_MSG_ERROR([--enable-ruby-doc requires --enable-ruby])
fi
-AM_CONDITIONAL([ENABLE_RUBY], test "x$enable_ruby" = "xyes")
+AC_MSG_RESULT($enable_ruby_doc)
+
+if test "x$enable_ruby_doc" = "xyes" ; then
+
+ AC_MSG_CHECKING([for allison])
+ if ruby -rubygems -e "require 'allison'" >/dev/null 2>/dev/null ; then
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_ERROR([allison (http://blog.evanweaver.com/files/doc/fauna/allison/files/README.html) is needed to build Ruby documentation])
+ fi
+
+ AC_MSG_CHECKING([for syntax])
+ 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])
+ fi
+fi
AM_CONDITIONAL([ENABLE_RUBY_DOC], test "x$enable_ruby_doc" = "xyes")
dnl }}}