]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/autoconf/configure.in
Merge branch 'master' into mvw/plugin-changes
[bacula/bacula] / bacula / autoconf / configure.in
index 148a38cadee74077012e7995ce5eef05d29a8da3..3b71cbf3e281c3caa2fdb63045d67b6252ca436c 100644 (file)
@@ -1671,6 +1671,36 @@ AC_ARG_WITH(sbin-perm,
 
 AC_SUBST(SBINPERM)
 
+dnl --------------------------------------------------
+dnl plugin support
+dnl --------------------------------------------------
+have_plugins=yes
+AC_ARG_ENABLE(plugins,
+   AC_HELP_STRING([--enable-plugins], [enable plugin support @<:@default=yes@:>@]),
+   [
+       if test x$enableval = xno; then
+          have_plugins=no
+       fi
+   ]
+)
+
+if test "x$use_libtool" != "xyes" -a test "x$have_plugins" = "xyes"; then
+   echo " "
+   echo "You specified --enable-plugins but disabled libtool with --disable-libtool"
+   echo "We only support plugins using libtool so either disable plugins or enable libtool"
+   echo " "
+   echo "Aborting the configuration ..."
+   echo " "
+   echo " "
+   exit 1
+fi
+
+FD_PLUGIN_DIR=""
+if test "x$have_plugins" = "xyes" ; then
+   FD_PLUGIN_DIR="src/plugins/fd"
+fi
+AC_SUBST(FD_PLUGIN_DIR)
+
 dnl ------------------------------------------------
 dnl Bacula check for various SQL database engines
 dnl ------------------------------------------------
@@ -3208,6 +3238,7 @@ Configuration on `date`:
    client-only:            ${build_client_only}
    build-dird:             ${build_dird}
    build-stored:           ${build_stored}
+   Plugin support:         ${have_plugins}
    ACL support:            ${have_acl}
    XATTR support:          ${have_xattr}
    Python support:         ${support_python} ${PYTHON_LIBS}