]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
configure: add --disable-modules option
authorDaniel Salzman <daniel.salzman@nic.cz>
Sat, 10 Feb 2018 21:52:35 +0000 (22:52 +0100)
committerDaniel Salzman <daniel.salzman@nic.cz>
Sat, 10 Feb 2018 21:52:35 +0000 (22:52 +0100)
configure.ac
m4/knot-module.m4

index b58630a59a062232e149c777c6519d7582daf1d0..df2d408ce0ef310d5a07a4ce181e9bcbf6c6330a 100644 (file)
@@ -70,6 +70,10 @@ AC_ARG_ENABLE([daemon],
     AS_HELP_STRING([--disable-daemon], [Don't build Knot DNS main daemon]), [], [enable_daemon=yes])
 AM_CONDITIONAL([HAVE_DAEMON], [test "$enable_daemon" = "yes"])
 
+# Build Knot DNS modules
+AC_ARG_ENABLE([modules],
+    AS_HELP_STRING([--disable-modules], [Don't build Knot DNS modules]), [], [enable_modules=yes])
+
 # Build Knot DNS utilities
 AC_ARG_ENABLE([utilities],
     AS_HELP_STRING([--disable-utilities], [Don't build Knot DNS utilities]), [], [enable_utilities=yes])
index 4fdc06ec0c64ab3b06180f7cd97f33000081b6a6..5893830cf19bcc937df2a5bad41bf4207fa50fd4 100644 (file)
@@ -7,7 +7,10 @@ AC_DEFUN([KNOT_MODULE],
   AC_ARG_WITH([module-$1],
     AS_HELP_STRING([--with-module-$1=yes|shared|no], [Build '$1' module [default=$2]]),
     [module=$withval],
-    [module=$2]
+    AS_IF([test "$enable_modules" = "no"],
+      [module=no],
+      [module=$2]
+    )
   )
 
   doc_modules="${doc_modules}.. include:: modules/$1/$1.rst\n"