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

diff --git a/26/20c95f6d54f566b40d4598b1a33482d5679c6a b/26/20c95f6d54f566b40d4598b1a33482d5679c6a
new file mode 100644 (file)
index 0000000..f1c7bdf
--- /dev/null
@@ -0,0 +1,129 @@
+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 22C236DE026C\r
+ for <notmuch@notmuchmail.org>; Tue,  9 Aug 2016 03:53:11 -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 wKu_8ru3EKdr for <notmuch@notmuchmail.org>;\r
+ Tue,  9 Aug 2016 03:53:03 -0700 (PDT)\r
+Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com\r
+ [74.125.82.66]) by arlo.cworth.org (Postfix) with ESMTPS id 1AFAD6DE0188 for\r
+ <notmuch@notmuchmail.org>; Tue,  9 Aug 2016 03:53:03 -0700 (PDT)\r
+Received: by mail-wm0-f66.google.com with SMTP id i138so2305934wmf.3\r
+ for <notmuch@notmuchmail.org>; Tue, 09 Aug 2016 03:53:03 -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=2oyL1MtHrCPcwmPlwCXbQMGPX7U2Ay0gj+oTYdBTNsU=;\r
+ b=MzeOK+Xqhk7/PzaVyktUg0/o5cL6ifUTWcFRolS4CseNlBioXYOUWIp8rSxKEEN16x\r
+ gvREZ080kWqn1pNrKn5T5HxPfFpahx1RKT56hb2sJruuSGGGsjOIB/cY7Z8ASzECm7Kv\r
+ 93gV/XhIql9gBk7Dp0ZtFuH7CylGfEXD/mv1n35c8v+niztfc1fL9fnHeFA7ynPS+2KP\r
+ HBsqtiUU6W6kMLrr6FaIcq+tdD/dqfWPrg+UFsHIkSBHNkxFOGa0qJq2ITeE65MKr7oX\r
+ AHLc3E3+Kd/aZoVtPWu4dBF1N8sY4iQRcMr3xs0bnhk+DeA1xDpFvcr1QXTaIsXPZdfe\r
+ K6pQ==\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:subject:date:message-id;\r
+ bh=2oyL1MtHrCPcwmPlwCXbQMGPX7U2Ay0gj+oTYdBTNsU=;\r
+ b=mO/u/5kxGwIKqitfriIRl7cqt7BNvBh+YUc3obxpOLc+5FQczrjc9amQt8pp5Ai9Ls\r
+ 92oc7/BZF49vxzu+R7S+M+gCJoa4mfffm69GRexg4MOvPGu7ReD40ZLqh/DUonr7XhfJ\r
+ rRoFUrT1nmOH7+Jm1IOlXw1CMzPiAB2CWGM4Lqd4tBFLWG5T2l1eUmJuKNJMNGtnwaUA\r
+ sQakUSByEoWRUkWB/WFRLfIIt+BVS+6qQ6uyY2ZEsnUzmz8P94cvKK7zfZphhHMIZG7+\r
+ Q09PSg+LScsBnYbZUcO3EAPIhi07fHLMaIDNgx92Hj93iofkrr58VlySj/Bb3GwamZOQ\r
+ JcCg==\r
+X-Gm-Message-State:\r
+ AEkoouvnjl1Xr8bV9PLYMc08YQEGVs/T6hoC1Rj4FiMTDYt/gUl1Ql5Dup7ST1mW0Teypg==\r
+X-Received: by 10.25.32.134 with SMTP id g128mr28849246lfg.87.1470739978740;\r
+ Tue, 09 Aug 2016 03:52:58 -0700 (PDT)\r
+Received: from bsd1.my.domain ([84.51.98.95])\r
+ by smtp.gmail.com with ESMTPSA id d15sm6408309lfg.0.2016.08.09.03.52.57\r
+ for <notmuch@notmuchmail.org>\r
+ (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Tue, 09 Aug 2016 03:52:58 -0700 (PDT)\r
+From: mp39590@gmail.com\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] configure: add --without-api-docs option\r
+Date: Tue,  9 Aug 2016 13:52:46 +0300\r
+Message-Id: <20160809105246.70959-1-mp39590@gmail.com>\r
+X-Mailer: git-send-email 2.9.0\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: Tue, 09 Aug 2016 10:53:11 -0000\r
+\r
+From: Mikhail <mp39590@gmail.com>\r
+\r
+Add option to explicitly disable API man page build even if doxygen is\r
+available.\r
+---\r
+ configure | 14 ++++++++++++--\r
+ 1 file changed, 12 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/configure b/configure\r
+index ae0a027..a6b6ee8 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 man pages\r
++      --without-api-docs              Do not install API documentation\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
+@@ -189,6 +191,14 @@ for option; do\r
+       fi\r
+     elif [ "${option}" = '--without-docs' ] ; then\r
+       WITH_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 +567,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