~ubuntu-branches/ubuntu/trusty/log4shib/trusty

« back to all changes in this revision

Viewing changes to m4/BB_ENABLE_DOXYGEN.m4

  • Committer: Package Import Robot
  • Author(s): Russ Allbery
  • Date: 2012-06-05 21:20:25 UTC
  • Revision ID: package-import@ubuntu.com-20120605212025-uyigtav7dqwvnf41
Tags: upstream-1.0.4
ImportĀ upstreamĀ versionĀ 1.0.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AC_DEFUN(BB_ENABLE_DOXYGEN,
 
2
[
 
3
AC_ARG_ENABLE(doxygen, [  --enable-doxygen        enable documentation generation with doxygen (auto)])
 
4
AC_ARG_ENABLE(dot, [  --enable-dot            use 'dot' to generate graphs in doxygen (auto)])              
 
5
AC_ARG_ENABLE(html-docs, [  --enable-html-docs      enable HTML generation with doxygen (yes)], [], [ enable_html_docs=yes])              
 
6
AC_ARG_ENABLE(latex-docs, [  --enable-latex-docs     enable LaTeX documentation generation with doxygen (no)], [], [ enable_latex_docs=no])              
 
7
if test "x$enable_doxygen" = xno; then
 
8
        enable_doc=no
 
9
else 
 
10
        AC_PATH_PROG(DOXYGEN, doxygen, , $PATH)
 
11
        if test x$DOXYGEN = x; then
 
12
                if test "x$enable_doxygen" = xyes; then
 
13
                        AC_MSG_ERROR([could not find doxygen])
 
14
                fi
 
15
                enable_doc=no
 
16
        else
 
17
                enable_doc=yes
 
18
                AC_PATH_PROG(DOT, dot, , $PATH)
 
19
        fi
 
20
fi
 
21
AM_CONDITIONAL(DOC, test x$enable_doc = xyes)
 
22
 
 
23
if test x$DOT = x; then
 
24
        if test "x$enable_dot" = xyes; then
 
25
                AC_MSG_ERROR([could not find dot])
 
26
        fi
 
27
        enable_dot=no
 
28
else
 
29
        enable_dot=yes
 
30
fi
 
31
AC_SUBST(enable_dot)
 
32
AC_SUBST(enable_html_docs)
 
33
AC_SUBST(enable_latex_docs)
 
34
])