[PATCH] configure: add --without-docs switch
authormp39590 <mp39590@gmail.com>
Sat, 25 Jul 2015 18:57:11 +0000 (21:57 +0300)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:49:11 +0000 (14:49 -0700)
1c/e5d46bd1c3260288644396fd87dd2b690fc284 [new file with mode: 0644]

diff --git a/1c/e5d46bd1c3260288644396fd87dd2b690fc284 b/1c/e5d46bd1c3260288644396fd87dd2b690fc284
new file mode 100644 (file)
index 0000000..e2ba0f0
--- /dev/null
@@ -0,0 +1,150 @@
+Return-Path: <mp39590@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 8B4406DE0AC2\r
+ for <notmuch@notmuchmail.org>; Sat, 25 Jul 2015 11:57:22 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.57\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.57 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,\r
+ RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01,\r
+ RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id 7E8sooepkp44 for <notmuch@notmuchmail.org>;\r
+ Sat, 25 Jul 2015 11:57:21 -0700 (PDT)\r
+Received: from mail-la0-f53.google.com (mail-la0-f53.google.com\r
+ [209.85.215.53])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 6E88E6DE00CB\r
+ for <notmuch@notmuchmail.org>; Sat, 25 Jul 2015 11:57:20 -0700 (PDT)\r
+Received: by lafd3 with SMTP id d3so19539976laf.1\r
+ for <notmuch@notmuchmail.org>; Sat, 25 Jul 2015 11:57:17 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=from:to:subject:date:message-id;\r
+ bh=u00JnJZV+fHLrHaRKofY/xxSkETpW9J+kXQ/SuQU7ZI=;\r
+ b=oXwsIrDFHHsF7lcqNRCRuC5P7fjgt/nKAzjfyFmk+djOkQR5TaBcWFQGsbdTcO8ssM\r
+ JzZ8krsU3WH8kmaFWKenHQAR2x9HzXZHTVK5qZzwkfMxKGJuNsHaRoyi0jHpbUoiQvBN\r
+ yGcu2SekH3iuGwuELFOOn2zJ5Ym3RhEn+E8BrYjDIYFm4dwMWQ4K3nYVpkhIGSnkpE4J\r
+ 8ZyhVH3JIHVnLdNQHMqwhQI/lkkYgkCS3w94z6xpnrf3Y1EKrL+h7lOCdt4Asf0XCfOC\r
+ sTzhMrJy4zdz3B5D44bi+WVT5IpDXRFNzVpEkB6Jg6NPpRghGAwomqfjn/b9Rqx7yw5q\r
+ cRSg==\r
+X-Received: by 10.152.23.38 with SMTP id j6mr19047435laf.47.1437850637077;\r
+ Sat, 25 Jul 2015 11:57:17 -0700 (PDT)\r
+Received: from edge.my.domain ([46.31.31.62])\r
+ by smtp.gmail.com with ESMTPSA id w9sm2722739laj.21.2015.07.25.11.57.15\r
+ for <notmuch@notmuchmail.org>\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\r
+ Sat, 25 Jul 2015 11:57:16 -0700 (PDT)\r
+From: mp39590@gmail.com\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] configure: add --without-docs switch\r
+Date: Sat, 25 Jul 2015 21:57:11 +0300\r
+Message-Id: <1437850631-30742-1-git-send-email-mp39590@gmail.com>\r
+X-Mailer: git-send-email 2.4.6\r
+X-Mailman-Approved-At: Sun, 26 Jul 2015 01:22:07 -0700\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 25 Jul 2015 18:57:22 -0000\r
+\r
+From: Mikhail <mp39590@gmail.com>\r
+\r
+Previously documentation was build automatically if sphinx/doxygen\r
+executable were found. The switch is used to unconditionally disable\r
+sphinx/doxygen detection and therefor, building of documentation\r
+(including man pages).\r
+---\r
+ configure | 36 ++++++++++++++++++++++--------------\r
+ 1 file changed, 22 insertions(+), 14 deletions(-)\r
+\r
+diff --git configure configure\r
+index b967a4e..c07a49b 100755\r
+--- configure\r
++++ configure\r
+@@ -65,6 +65,7 @@ PYTHON=${PYTHON:-}\r
+ # options.\r
+ PREFIX=/usr/local\r
+ LIBDIR=\r
++WITH_DOCS=1\r
+ WITH_EMACS=1\r
+ WITH_BASH=1\r
+ WITH_ZSH=1\r
+@@ -143,6 +144,7 @@ Some specific library versions can be specified (auto-detected otherwise):\r
+ Some features can be disabled (--with-feature=no is equivalent to\r
+ --without-feature) :\r
\r
++      --without-docs                  Do not install documentation and man pages\r
+       --without-emacs                 Do not install lisp file\r
+       --without-bash-completion       Do not install bash completions files\r
+       --without-zsh-completion        Do not install zsh completions files\r
+@@ -185,6 +187,8 @@ for option; do\r
+       BASHCOMPLETIONDIR="${option#*=}"\r
+     elif [ "${option%%=*}" = '--zshcompletiondir' ] ; then\r
+       ZSHCOMLETIONDIR="${option#*=}"\r
++    elif [ "${option}" = '--without-docs' ] ; then\r
++      WITH_DOCS=0\r
+     elif [ "${option%%=*}" = '--with-emacs' ]; then\r
+       if [ "${option#*=}" = 'no' ]; then\r
+           WITH_EMACS=0\r
+@@ -466,13 +470,15 @@ else\r
+     have_emacs=0\r
+ fi\r
\r
+-printf "Checking if doxygen is available... "\r
+-if command -v doxygen > /dev/null; then\r
+-    printf "Yes.\n"\r
+-    have_doxygen=1\r
+-else\r
+-    printf "No (so will not install api docs)\n"\r
+-    have_doxygen=0\r
++have_doxygen=0\r
++if [ $WITH_DOCS = "1" ] ; then\r
++    printf "Checking if doxygen is available... "\r
++    if command -v doxygen > /dev/null; then\r
++        printf "Yes.\n"\r
++        have_doxygen=1\r
++    else\r
++        printf "No (so will not install api docs)\n"\r
++    fi\r
+ fi\r
\r
+ printf "Checking for ruby development files... "\r
+@@ -484,13 +490,15 @@ else\r
+     have_ruby_dev=0\r
+ fi\r
\r
+-printf "Checking if sphinx is available and supports nroff output... "\r
+-if command -v sphinx-build > /dev/null && ${python} -m sphinx.writers.manpage > /dev/null 2>&1 ; then\r
+-    printf "Yes.\n"\r
+-    have_sphinx=1\r
+-else\r
+-    printf "No (so will not install man pages).\n"\r
+-    have_sphinx=0\r
++have_sphinx=0\r
++if [ $WITH_DOCS = "1" ] ; then\r
++    printf "Checking if sphinx is available and supports nroff output... "\r
++    if command -v sphinx-build > /dev/null && ${python} -m sphinx.writers.manpage > /dev/null 2>&1 ; then\r
++        printf "Yes.\n"\r
++        have_sphinx=1\r
++    else\r
++        printf "No (so will not install man pages).\n"\r
++    fi\r
+ fi\r
\r
+ libdir_in_ldconfig=0\r
+-- \r
+2.4.6\r
+\r