[PATCH] configure: add --without-api-docs option
authormp39590 <mp39590@gmail.com>
Wed, 10 Aug 2016 13:02:35 +0000 (16:02 +0300)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:22:22 +0000 (16:22 -0700)
13/cb17b48219f7c1d104bdff1d6677fb5df894d7 [new file with mode: 0644]

diff --git a/13/cb17b48219f7c1d104bdff1d6677fb5df894d7 b/13/cb17b48219f7c1d104bdff1d6677fb5df894d7
new file mode 100644 (file)
index 0000000..e86cea3
--- /dev/null
@@ -0,0 +1,144 @@
+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 B9BC76DE01C2\r
+ for <notmuch@notmuchmail.org>; Wed, 10 Aug 2016 06:02:55 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.477\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.477 tagged_above=-999 required=5 tests=[AWL=0.093,\r
+  DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7,\r
+ RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001]\r
+ 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 WXcGEyxyUx5a for <notmuch@notmuchmail.org>;\r
+ Wed, 10 Aug 2016 06:02:47 -0700 (PDT)\r
+Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com\r
+ [74.125.82.67]) by arlo.cworth.org (Postfix) with ESMTPS id 069756DE015B for\r
+ <notmuch@notmuchmail.org>; Wed, 10 Aug 2016 06:02:47 -0700 (PDT)\r
+Received: by mail-wm0-f67.google.com with SMTP id o80so9413105wme.0\r
+ for <notmuch@notmuchmail.org>; Wed, 10 Aug 2016 06:02:46 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=from:to:cc:subject:date:message-id:in-reply-to:references;\r
+ bh=mBOfnD1GinbSilZYFX+e2QnjY0G7jJyjB+HXqHfPV+Q=;\r
+ b=j2IK7lXvz3Zm+SrdJe5YCV10H/RbDWNPqxYBP1tA2S9rQhsXGFm7derwSHQTa68dVS\r
+ RbyAWReRnzl2pBPp+OdA3Cx1zvZbxEClgl6s82KGwyo1B+rMFV4Mtb55F7xbwYaKopqp\r
+ lfcMGjGiJnRaPKV8EPeAw7EzbSMjkJjtXwIVsJMDLZi+5Hy0UH6kT1DpH3cTd3VWCfKV\r
+ zFrhk8+f7cGwkXqDHBrjb8ZuwJNuM/SDSiq4uzwzWDaKpa8uzLhI8eQ3MtdRcs10AftH\r
+ GZE84K226ED3jP5wN+Krmty9jLEUVf1tY3dzcEqeVy7/agZiPagk2ARe2eargbRIopp5\r
+ HbNg==\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\r
+ :references;\r
+ bh=mBOfnD1GinbSilZYFX+e2QnjY0G7jJyjB+HXqHfPV+Q=;\r
+ b=Zvdqy6dgAxuR9vdz2voHO/9pksDYWyPSJcpxu4zCZ0ajdkdESi1nLwyClfIMiwVpZ2\r
+ HIqXN3y4xBayzg1HetQ4TEfzdids9+xVD6WnSZJW5vrlmD9/3mXAFDcxDtO1gPwxNV0p\r
+ SEwzmV7w3N+9oXkwLo0SJR4XS1cnr3JwRZljZp0R6Al6hLSFC6Tbns0dNLacOJAGOvE4\r
+ ALFSTVbFSt4g0V9w2GArfcndwsMqP4istBG4dAkc9kfKf5D7nCG22svL4lI0toMncQEK\r
+ lu4QL/evFDhbfobERHF7L1brtCQu8WMP2b7JFL/Pqr5xZnqfPHKMtA18dzzMZewULsI3\r
+ k1BQ==\r
+X-Gm-Message-State:\r
+ AEkoouvZ+QAENvxNrnEXeqLbuvJh7RpMtho1ewjdeUOkD38MV5ajghqkiT732T3Nstp5tg==\r
+X-Received: by 10.46.0.92 with SMTP id 89mr654567lja.37.1470834162781;\r
+ Wed, 10 Aug 2016 06:02:42 -0700 (PDT)\r
+Received: from bsd1.my.domain ([84.51.98.95])\r
+ by smtp.gmail.com with ESMTPSA id 67sm7553811ljj.8.2016.08.10.06.02.41\r
+ (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Wed, 10 Aug 2016 06:02:42 -0700 (PDT)\r
+From: mp39590@gmail.com\r
+To: notmuch@notmuchmail.org\r
+Cc: David Bremner <david@tethera.net>,\r
+       Tomi Ollila <tomi.ollila@iki.fi>\r
+Subject: [PATCH] configure: add --without-api-docs option\r
+Date: Wed, 10 Aug 2016 16:02:35 +0300\r
+Message-Id: <20160810130235.7108-1-mp39590@gmail.com>\r
+X-Mailer: git-send-email 2.9.0\r
+In-Reply-To: <87popijavz.fsf@maritornes.cs.unb.ca>\r
+References: <87popijavz.fsf@maritornes.cs.unb.ca>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://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: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 10 Aug 2016 13:02:55 -0000\r
+\r
+From: Mikhail <mp39590@gmail.com>\r
+\r
+Add option to explicitly disable API man page build even if doxygen\r
+binary is available. --without-docs also implies not building API\r
+manpage.\r
+\r
+This change intended to add more distinctness into build system and\r
+allow user not to build unwanted man pages.\r
+---\r
+ configure | 16 ++++++++++++++--\r
+ 1 file changed, 14 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/configure b/configure\r
+index ae0a027..fa4c5b5 100755\r
+--- a/configure\r
++++ b/configure\r
+@@ -68,6 +68,7 @@ PYTHON=${PYTHON:-}\r
+ PREFIX=/usr/local\r
+ LIBDIR=\r
+ WITH_DOCS=1\r
++WITH_API_DOCS=1\r
+ WITH_EMACS=1\r
+ WITH_BASH=1\r
+ WITH_RUBY=1\r
+@@ -137,7 +138,8 @@ Some features can be disabled (--with-feature=no is equivalent to\r
+ --without-feature) :\r
\r
+       --without-bash-completion       Do not install bash completions files\r
+-      --without-docs                  Do not install documentation and man pages\r
++      --without-docs                  Do not install documentation\r
++      --without-api-docs              Do not install API man page\r
+       --without-emacs                 Do not install lisp file\r
+       --without-ruby                  Do not install ruby bindings\r
+       --without-zsh-completion        Do not install zsh completions files\r
+@@ -184,11 +186,21 @@ for option; do\r
+     elif [ "${option%%=*}" = '--with-docs' ]; then\r
+       if [ "${option#*=}" = 'no' ]; then\r
+           WITH_DOCS=0\r
++          WITH_API_DOCS=0\r
+       else\r
+           WITH_DOCS=1\r
+       fi\r
+     elif [ "${option}" = '--without-docs' ] ; then\r
+       WITH_DOCS=0\r
++      WITH_API_DOCS=0\r
++    elif [ "${option%%=*}" = '--with-api-docs' ]; then\r
++      if [ "${option#*=}" = 'no' ]; then\r
++          WITH_API_DOCS=0\r
++      else\r
++          WITH_API_DOCS=1\r
++      fi\r
++    elif [ "${option}" = '--without-api-docs' ] ; then\r
++      WITH_API_DOCS=0\r
+     elif [ "${option%%=*}" = '--with-emacs' ]; then\r
+       if [ "${option#*=}" = 'no' ]; then\r
+           WITH_EMACS=0\r
+@@ -557,7 +569,7 @@ else\r
+ fi\r
\r
+ have_doxygen=0\r
+-if [ $WITH_DOCS = "1" ] ; then\r
++if [ $WITH_API_DOCS = "1" ] ; then\r
+     printf "Checking if doxygen is available... "\r
+     if command -v doxygen > /dev/null; then\r
+       printf "Yes.\n"\r
+-- \r
+2.9.0\r
+\r