Don't build docs if 'dot' is not found Signed-off-by: Paulo R. Zanoni <pzanoni@mandri...
authorPaulo R. Zanoni <pzanoni@mandriva.com>
Fri, 18 Sep 2009 18:05:46 +0000 (15:05 -0300)
committerAdam Jackson <ajax@redhat.com>
Fri, 18 Sep 2009 21:14:04 +0000 (17:14 -0400)
acinclude.m4

index bc98150..ad24bc2 100644 (file)
@@ -102,6 +102,11 @@ AC_ARG_WITH(
        AC_MSG_WARN(
           [Warning: no doxygen detected. Documentation will not be built])
     fi])
+    AC_PATH_PROG(DOT, dot, no)
+    if test "$DOT" = "no"; then
+        AC_MSG_WARN([Warning: no dot detected. Documentation will not be built])
+       BUILD_DOCS="no"
+    fi
 fi
 AC_MSG_CHECKING([whether documentation is built])
 AC_MSG_RESULT([${BUILD_DOCS}])