diff --git a/doc/doxygen/Doxystyle b/doc/doxygen/Doxystyle
index 7a28c31e5ff73d31e3aa76ab24c92c61dc2a019b..9bed49a76d04014f9356951b5afdfa21c93cb4db 100644
--- a/doc/doxygen/Doxystyle
+++ b/doc/doxygen/Doxystyle
@@ -144,7 +144,7 @@ PREDEFINED             = DOXYGEN \
                          _DEBUG_ALLOCATOR_H:=1 \
                          "DUNE_DEPRECATED:=/** \deprecated */"
 
-HAVE_DOT               = YES
+@DOT_TRUE@HAVE_DOT               = YES
 
 # If set to YES, the inheritance and collaboration graphs will show the
 # relations between templates and their instances.