[Pkg-gnupg-commit] [gpgme] 115/412: Qt: Check for graphviz and set HAVE_DOT correctly

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Sep 22 21:26:28 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gpgme.

commit 2f748b5a2d162be4f23b18782219771ead54cb51
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Thu May 19 11:14:24 2016 +0200

    Qt: Check for graphviz and set HAVE_DOT correctly
    
    * configure.ac: Check for graphviz and define HAVE_DOT.
    * lang/qt/doc/Doxyfile.in (HAVE_DOT): Use variable.
---
 configure.ac            | 10 ++++++++++
 lang/qt/doc/Doxyfile.in |  2 +-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 1472132..7559559 100644
--- a/configure.ac
+++ b/configure.ac
@@ -334,10 +334,20 @@ if test "$found" = "1"; then
             # This is not highlighted becase it's not really important.
             then AC_MSG_WARN([Doxygen not found - Qt binding doc will not be built.])
         fi
+        AC_CHECK_PROGS([GRAPHVIZ], [dot])
+        if test -z "$GRAPHVIZ";
+            then AC_MSG_WARN([Graphviz not found - Qt binding doc will not have diagrams.])
+        fi
     fi
 fi
 AM_CONDITIONAL([HAVE_DOXYGEN],
                [test -n "$DOXYGEN"])
+if test -n "$GRAPHVIZ"; then
+    HAVE_DOT="YES"
+else
+    HAVE_DOT="NO"
+fi
+AC_SUBST(HAVE_DOT)
 
 # Python bindings.
 LIST_MEMBER("python", $enabled_languages)
diff --git a/lang/qt/doc/Doxyfile.in b/lang/qt/doc/Doxyfile.in
index ef0a5c0..5d94f90 100644
--- a/lang/qt/doc/Doxyfile.in
+++ b/lang/qt/doc/Doxyfile.in
@@ -2087,7 +2087,7 @@ HIDE_UNDOC_RELATIONS   = YES
 # set to NO
 # The default value is: YES.
 
-HAVE_DOT               = YES
+HAVE_DOT               = @HAVE_DOT@
 
 # The DOT_NUM_THREADS specifies the number of dot invocations doxygen is allowed
 # to run in parallel. When set to 0 doxygen will base this on the number of

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git



More information about the Pkg-gnupg-commit mailing list