diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-11-11 10:38:10 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-11-11 10:38:10 -0500 |
commit | 2b3dc3384c41a1e8961b9303b5fa533edf4922c3 (patch) | |
tree | f8a7b29a146c4148527a6eeba655379baf1c14e7 /configure.ac | |
parent | ee33bf5ee0d1a2c88d185caa29e1924f919cc3e9 (diff) | |
parent | b1083584c752398056a591fb9b342f4e58e6b172 (diff) | |
download | tor-2b3dc3384c41a1e8961b9303b5fa533edf4922c3.tar.gz tor-2b3dc3384c41a1e8961b9303b5fa533edf4922c3.zip |
Merge branch 'ticket32385'
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 3a98a4a32c..afbf436f7a 100644 --- a/configure.ac +++ b/configure.ac @@ -81,6 +81,24 @@ AC_ARG_ENABLE(nss, AC_ARG_ENABLE(pic, AS_HELP_STRING(--enable-pic, [Build Tor's binaries as position-independent code, suitable to link as a library.])) +AC_ARG_ENABLE(missing-doc-warnings, + AS_HELP_STRING(--enable-missing-doc-warnings, [Tell doxygen to warn about missing documentation. Makes doxygen warnings nonfatal.])) + +if test "$enable_missing_doc_warnings" = "yes"; then + DOXYGEN_FATAL_WARNINGS=NO + DOXYGEN_WARN_ON_MISSING=YES +elif test "$enable_fatal_warnings" = "yes"; then + # Fatal warnings from doxygen are nice, but not if we're warning about + # missing documentation. + DOXYGEN_FATAL_WARNINGS=YES + DOXYGEN_WARN_ON_MISSING=NO +else + DOXYGEN_FATAL_WARNINGS=NO + DOXYGEN_WARN_ON_MISSING=NO +fi +AC_SUBST(DOXYGEN_FATAL_WARNINGS) +AC_SUBST(DOXYGEN_WARN_ON_MISSING) + if test "x$enable_coverage" != "xyes" -a "x$enable_asserts_in_tests" = "xno" ; then AC_MSG_ERROR([Can't disable assertions outside of coverage build]) fi |