diff options
author | Florian Westphal <fw@strlen.de> | 2020-06-06 16:14:44 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2020-06-07 20:55:54 +0200 |
commit | 3622e6061d5cc34db70cef7b8516217e27ffa57c (patch) | |
tree | 0565366a179fd50fbd11bc1af6ca6fefa924fe8f /configure.ac | |
parent | 703553a4457935ec83119efb70bd23a7b05e7c0b (diff) |
configure: add --with/without-doxygen switch
Allows to turn off doxygen even if its installed, via
--without-doxygen.
Default is to probe for doxygen presence (--with-doxygen).
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 95ee82a..0de144c 100644 --- a/configure.ac +++ b/configure.ac @@ -36,12 +36,17 @@ AC_CONFIG_FILES([Makefile src/Makefile utils/Makefile examples/Makefile doxygen/Makefile include/linux/Makefile include/linux/netfilter/Makefile]) -dnl Only run doxygen Makefile if doxygen installed +AC_ARG_WITH([doxygen], [AS_HELP_STRING([--with-doxygen], + [create doxygen documentation])], + [with_doxygen="$withval"], [with_doxygen=yes]) -AC_CHECK_PROGS([DOXYGEN], [doxygen]) -if test -z "$DOXYGEN"; - then AC_MSG_WARN([Doxygen not found - continuing without Doxygen support]) -fi +AS_IF([test "x$with_doxygen" != xno], [ + AC_CHECK_PROGS([DOXYGEN], [doxygen]) +]) AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"]) +if test -z "$DOXYGEN"; then + dnl Only run doxygen Makefile if doxygen installed + AC_MSG_WARN([Doxygen not found - continuing without Doxygen support]) +fi AC_OUTPUT |