Make fig2dev optional?

Colin Davis e1ven at
Tue Jul 8 14:08:47 CEST 2014

Sorry about that!

I went back to revise as you suggested, and ended up rewriting multiple time ;(
Building the docs on OSX are still more difficult than it should be, since the default apps Apple ships are very old. 

After playing with it, it seems like it's probably best to just add a flag to skip building the documentation.
I'm not sure if something along this line could be added, but it'd make it simpler, rather than trying to patch xfig, makeinfo, etc.

From b34dd80872f833a3955a2a4fcf322e3a93a963c7 Mon Sep 17 00:00:00 2001
From: Colin Davis <e1ven at>
Date: Tue, 8 Jul 2014 07:54:34 -0400
Subject: [PATCH] Allow the --disable-docs config option to bypass building

---  | 10 ++++++++-- |  8 ++++++++
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/ b/
index 937bdaf..0f9a45e 100644
--- a/
+++ b/
@@ -25,8 +25,14 @@ DISTCHECK_CONFIGURE_FLAGS = --disable-random-daemon \
 # (A suitable gitlog-to-changelog script can be found in GnuPG master.)
-DIST_SUBDIRS = m4 compat mpi cipher random src doc tests
-SUBDIRS =         compat mpi cipher random src doc tests
+DIST_SUBDIRS = m4 compat mpi cipher random src tests
+SUBDIRS =         compat mpi cipher random src tests
+SUBDIRS += doc
 EXTRA_DIST = autogen.rc README.GIT LICENSES      	           \
              ChangeLog-2011 build-aux/ChangeLog-2011 doc/ChangeLog-2011    \
diff --git a/ b/
index c5952c7..1a41460 100644
--- a/
+++ b/
@@ -646,6 +646,14 @@ AC_ARG_ENABLE(amd64-as-feature-detection,
+# Implementation of the --disable-docs switch.
+AC_MSG_CHECKING([whether to build documentation])
+              AC_HELP_STRING([--disable-docs],
+              [Disable the building of documentation]),
+        [:],enable_docs=yes)
+AM_CONDITIONAL([BUILD_DOCS], [test x"${enable_docs}" == xyes])
                    [A human readable text with the name of the OS])

On Jul 8, 2014, at 3:32 AM, Aki Tuomi <cmouse at> wrote:

> Usually conditionals like these are named HAVE_FIG2DEV. Can you perhaps consider
> renaming your conditional? 
> Kind regards,
> Aki Tuomi

More information about the Gcrypt-devel mailing list