]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Add new plugin targets to ./configure.in
authorEric Bollengier <eric@baculasystems.com>
Tue, 15 Mar 2022 14:25:49 +0000 (15:25 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:27 +0000 (09:03 +0100)
bacula/autoconf/configure.in

index 88a4b44edcca0bea360c4cf887bbd9c808236e41..f55e524f7a86842778a25b0e47e2bf22a867e7ee 100644 (file)
@@ -3401,6 +3401,7 @@ if test x$support_docker = xyes -o x$support_docker = xauto; then
    if test x$docker_bin = xyes; then
       support_docker=yes
       FD_PLUGIN_DIR="${FD_PLUGIN_DIR} src/plugins/fd/docker"
+      FD_PLUGIN_INSTALL="${FD_PLUGIN_INSTALL} install-docker"
    else
       if test x$support_docker = xyes; then
          echo " "
@@ -3419,6 +3420,7 @@ AC_ARG_ENABLE(kubernetes-plugin,
    [
       if test x$enableval = xyes; then
          support_kubernetes=yes
+         FD_PLUGIN_INSTALL="${FD_PLUGIN_INSTALL} install-kubernetes"
       elif test x$enableval = xno; then
          support_kubernetes=disabled
       fi
@@ -3428,7 +3430,24 @@ if test x$support_kubernetes = xyes -o x$support_kubernetes = xauto; then
       FD_PLUGIN_DIR="${FD_PLUGIN_DIR} src/plugins/fd/kubernetes-backend"
 fi
 
+dnl cdp Plugin
+support_cdp=auto
+AC_ARG_ENABLE(cdp-plugin,
+   AC_HELP_STRING([--disable-cdp-plugin], [disable CDP plugin support @<:@default=auto@:>@]),
+   [
+      if test x$enableval = xyes; then
+         support_cdp=yes
+         FD_PLUGIN_INSTALL="${FD_PLUGIN_INSTALL} install-cdp"
+         TOOLS_INSTALL="${TOOLS_INSTALL} install-cdp"
+      elif test x$enableval = xno; then
+         support_cdp=disabled
+      fi
+   ]
+)
+
 AC_SUBST(FD_PLUGIN_DIR)
+AC_SUBST(FD_PLUGIN_INSTALL)
+AC_SUBST(TOOLS_INSTALL)
 
 dnl
 dnl Bacula Pluggable Authentication Modules - Director Plugins
@@ -4157,6 +4176,7 @@ Configuration on `date`:
    - Docker:                  ${support_docker}
    - Kubernetes:              ${support_kubernetes}
    - LDAP BPAM:               ${support_ldap_bpam}
+   - CDP:                     ${support_cdp}
   " > config.out
 
 # create a small shell script useful for support with