From: mp39590@gmail.com
To: notmuch@notmuchmail.org
Subject: [PATCH] configure: add --without-docs switch
Date: Sat, 25 Jul 2015 21:57:11 +0300 [thread overview]
Message-ID: <1437850631-30742-1-git-send-email-mp39590@gmail.com> (raw)
From: Mikhail <mp39590@gmail.com>
Previously documentation was build automatically if sphinx/doxygen
executable were found. The switch is used to unconditionally disable
sphinx/doxygen detection and therefor, building of documentation
(including man pages).
---
configure | 36 ++++++++++++++++++++++--------------
1 file changed, 22 insertions(+), 14 deletions(-)
diff --git configure configure
index b967a4e..c07a49b 100755
--- configure
+++ configure
@@ -65,6 +65,7 @@ PYTHON=${PYTHON:-}
# options.
PREFIX=/usr/local
LIBDIR=
+WITH_DOCS=1
WITH_EMACS=1
WITH_BASH=1
WITH_ZSH=1
@@ -143,6 +144,7 @@ Some specific library versions can be specified (auto-detected otherwise):
Some features can be disabled (--with-feature=no is equivalent to
--without-feature) :
+ --without-docs Do not install documentation and man pages
--without-emacs Do not install lisp file
--without-bash-completion Do not install bash completions files
--without-zsh-completion Do not install zsh completions files
@@ -185,6 +187,8 @@ for option; do
BASHCOMPLETIONDIR="${option#*=}"
elif [ "${option%%=*}" = '--zshcompletiondir' ] ; then
ZSHCOMLETIONDIR="${option#*=}"
+ elif [ "${option}" = '--without-docs' ] ; then
+ WITH_DOCS=0
elif [ "${option%%=*}" = '--with-emacs' ]; then
if [ "${option#*=}" = 'no' ]; then
WITH_EMACS=0
@@ -466,13 +470,15 @@ else
have_emacs=0
fi
-printf "Checking if doxygen is available... "
-if command -v doxygen > /dev/null; then
- printf "Yes.\n"
- have_doxygen=1
-else
- printf "No (so will not install api docs)\n"
- have_doxygen=0
+have_doxygen=0
+if [ $WITH_DOCS = "1" ] ; then
+ printf "Checking if doxygen is available... "
+ if command -v doxygen > /dev/null; then
+ printf "Yes.\n"
+ have_doxygen=1
+ else
+ printf "No (so will not install api docs)\n"
+ fi
fi
printf "Checking for ruby development files... "
@@ -484,13 +490,15 @@ else
have_ruby_dev=0
fi
-printf "Checking if sphinx is available and supports nroff output... "
-if command -v sphinx-build > /dev/null && ${python} -m sphinx.writers.manpage > /dev/null 2>&1 ; then
- printf "Yes.\n"
- have_sphinx=1
-else
- printf "No (so will not install man pages).\n"
- have_sphinx=0
+have_sphinx=0
+if [ $WITH_DOCS = "1" ] ; then
+ printf "Checking if sphinx is available and supports nroff output... "
+ if command -v sphinx-build > /dev/null && ${python} -m sphinx.writers.manpage > /dev/null 2>&1 ; then
+ printf "Yes.\n"
+ have_sphinx=1
+ else
+ printf "No (so will not install man pages).\n"
+ fi
fi
libdir_in_ldconfig=0
--
2.4.6
next reply other threads:[~2015-07-25 18:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-25 18:57 mp39590 [this message]
2015-07-26 15:46 ` [PATCH] configure: add --without-docs switch David Bremner
2015-07-27 18:04 ` mp39590
2015-07-27 20:42 ` David Bremner
2015-07-28 6:51 ` Tomi Ollila
2015-07-28 9:06 ` David Bremner
2015-07-28 11:59 ` Tomi Ollila
2015-07-28 18:11 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1437850631-30742-1-git-send-email-mp39590@gmail.com \
--to=mp39590@gmail.com \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).