diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-02-25 05:23:27 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-02-25 05:23:27 +0100 |
commit | 1c4127666adfded4f7caf58fc30040cb235107d1 (patch) | |
tree | cc334f88239f90c6fb34a69251c6ab95cdbf8baa /configure.ac | |
parent | 18b1ac8cd1fe81af721ed903c23813f568630d9c (diff) | |
download | sciteco-1c4127666adfded4f7caf58fc30040cb235107d1.tar.gz |
integrate Doxygen into build system
* solely for generating developer docs
* disabled by default even if Doxygen is installed
* Doxygen comments are not used currently
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 49963c7..4ad2a28 100644 --- a/configure.ac +++ b/configure.ac @@ -36,6 +36,13 @@ if [[ x$READLINK = x ]]; then AC_MSG_ERROR([Required tool readlink not found!]) fi +# not necessarily required (depends on --enable-developer-doc) +AC_CHECK_PROG(DOXYGEN, doxygen, doxygen) +AC_CHECK_PROG(DOT, dot, dot) +DOXYGEN_HAVE_DOT=YES +if [[ x$DOT = x ]]; then DOXYGEN_HAVE_DOT=NO; fi +AC_SUBST(DOXYGEN_HAVE_DOT) + # For bootstrapping via installed sciteco AC_CHECK_PROG(SCITECO, sciteco, sciteco) if [[ x$SCITECO = x ]]; then @@ -165,6 +172,17 @@ AC_ARG_WITH(teco-integer, [TECO_INTEGER=$withval], [TECO_INTEGER=64]) AC_DEFINE_UNQUOTED(TECO_INTEGER, $TECO_INTEGER, [Storage size of TECO integers]) +AC_ARG_ENABLE(developer-doc, + AS_HELP_STRING([--enable-developer-doc], + [Generate developer documentation using Doxygen [default=no]]), + [dev_doc=$enableval], [dev_doc=no]) +if [[ $dev_doc = yes -a x$DOXYGEN = x ]]; then + AC_MSG_ERROR([Enabled generating developer documentation, + but Doxygen cannot be found! + Try --disable-developer-doc.]) +fi +AM_CONDITIONAL(BUILD_DEVDOC, [test $dev_doc = yes]) + AC_ARG_ENABLE(bootstrap, AS_HELP_STRING([--enable-bootstrap], [Bootstrap using sciteco-minimal, @@ -172,6 +190,6 @@ AC_ARG_ENABLE(bootstrap, [bootstrap=$enableval]) AM_CONDITIONAL(BOOTSTRAP, [test x$bootstrap = xyes]) -AC_CONFIG_FILES([Makefile]) -AC_CONFIG_FILES([src/Makefile lib/Makefile doc/Makefile]) +AC_CONFIG_FILES([Makefile src/Makefile lib/Makefile]) +AC_CONFIG_FILES([doc/Makefile doc/Doxyfile]) AC_OUTPUT |