]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add deprecation warning about DLZ drivers
authorOndřej Surý <ondrej@sury.org>
Tue, 21 Sep 2021 08:44:41 +0000 (10:44 +0200)
committerOndřej Surý <ondrej@sury.org>
Tue, 21 Sep 2021 08:44:41 +0000 (10:44 +0200)
DLZ drivers are going to be removed from the next major BIND 9 release,
this commit adds a deprecation warning to inform the users about the
need to migrate to DLZ modules.

configure
configure.ac

index edd0f9cde865c8ad2e3d286b3fbfde745747e8be..e3852f3036e3d2aa458ba839f10acf6ce9db2478 100755 (executable)
--- a/configure
+++ b/configure
@@ -26381,22 +26381,53 @@ report() {
        echo "    +--------------------------------------------+"
     )
 
+    dlz_enabled=no
+
     echo "    Dynamically loadable zone (DLZ) drivers:"
-    test "no" = "$use_dlz_bdb" || \
-       echo "        Berkeley DB (--with-dlz-bdb)"
-    test "no" = "$use_dlz_ldap" || \
-       echo "        LDAP (--with-dlz-ldap)"
-    test "no" = "$use_dlz_mysql" || \
-       echo "        MySQL (--with-dlz-mysql)"
-    test "no" = "$use_dlz_odbc" || \
-       echo "        ODBC (--with-dlz-odbc)"
-    test "no" = "$use_dlz_postgres" || \
-       echo "        Postgres (--with-dlz-postgres)"
-    test "no" = "$use_dlz_filesystem" || \
-       echo "        Filesystem (--with-dlz-filesystem)"
-    test "no" = "$use_dlz_stub" || \
-       echo "        Stub (--with-dlz-stub)"
-    test "$use_dlz_bdb $use_dlz_ldap $use_dlz_mysql $use_dlz_odbc $use_dlz_postgres $use_dlz_filesystem $use_dlz_stub" = "no no no no no no no" && echo "        None"
+    if test "$use_dlz_bdb" != "no"; then :
+  $as_echo "        Berkeley DB (--with-dlz-bdb)"
+          dlz_enabled=yes
+fi
+    if test "$use_dlz_ldap" != "no"; then :
+  $as_echo "        LDAP (--with-dlz-ldap)"
+          dlz_enabled=yes
+fi
+    if test "$use_dlz_mysql" != "no"; then :
+  $as_echo "        MySQL (--with-dlz-mysql)"
+          dlz_enabled=yes
+fi
+    if test "$use_dlz_odbc" != "no"; then :
+  $as_echo "        ODBC (--with-dlz-odbc)"
+          dlz_enabled=yes
+fi
+    if test "$use_dlz_postgres" != "no"; then :
+  $as_echo "        Postgres (--with-dlz-postgres)"
+          dlz_enabled=yes
+fi
+    if test "$use_dlz_filesystem" != "no"; then :
+  $as_echo "        Filesystem (--with-dlz-filesystem)"
+          dlz_enabled=yes
+fi
+    if test "$use_dlz_stub" != "no"; then :
+  $as_echo "        Stub (--with-dlz-stub)"
+          dlz_enabled=yes
+fi
+
+    if test "$dlz_enabled" = "no"; then :
+  $as_echo "        None"
+else
+  $as_echo "    +--------------------------------------------------------+"
+          $as_echo "    |             ==== DEPRECATION WARNING ====              |"
+          $as_echo "    +--------------------------------------------------------+"
+          $as_echo "    | Old-style DLZ drivers has been deprecated in favor of  |"
+          $as_echo "    | DLZ modules. The DLZ drivers configuration option will |"
+          $as_echo "    | be removed from the next major BIND 9 release.         |"
+          $as_echo "    |                                                        |"
+          $as_echo "    | The option to use the DLZ modules is already available |"
+          $as_echo "    | in BIND 9; please see the ARM section on DLZ modules.  |"
+          $as_echo "    +--------------------------------------------------------+"
+
+fi
 
     echo "-------------------------------------------------------------------------------"
 
index 845c2ea7388c4dd0703109a6832ded3b64c765a2..d7952a34175b917d8bf1523b5ba85a29fa0ab138 100644 (file)
@@ -3008,22 +3008,44 @@ report() {
        echo "    +--------------------------------------------+"
     )
 
+    dlz_enabled=no
+
     echo "    Dynamically loadable zone (DLZ) drivers:"
-    test "no" = "$use_dlz_bdb" || \
-       echo "        Berkeley DB (--with-dlz-bdb)"
-    test "no" = "$use_dlz_ldap" || \
-       echo "        LDAP (--with-dlz-ldap)"
-    test "no" = "$use_dlz_mysql" || \
-       echo "        MySQL (--with-dlz-mysql)"
-    test "no" = "$use_dlz_odbc" || \
-       echo "        ODBC (--with-dlz-odbc)"
-    test "no" = "$use_dlz_postgres" || \
-       echo "        Postgres (--with-dlz-postgres)"
-    test "no" = "$use_dlz_filesystem" || \
-       echo "        Filesystem (--with-dlz-filesystem)"
-    test "no" = "$use_dlz_stub" || \
-       echo "        Stub (--with-dlz-stub)"
-    test "$use_dlz_bdb $use_dlz_ldap $use_dlz_mysql $use_dlz_odbc $use_dlz_postgres $use_dlz_filesystem $use_dlz_stub" = "no no no no no no no" && echo "        None"
+    AS_IF([test "$use_dlz_bdb" != "no"],
+         [AS_ECHO(["        Berkeley DB (--with-dlz-bdb)"])
+          dlz_enabled=yes])
+    AS_IF([test "$use_dlz_ldap" != "no"],
+         [AS_ECHO(["        LDAP (--with-dlz-ldap)"])
+          dlz_enabled=yes])
+    AS_IF([test "$use_dlz_mysql" != "no"],
+         [AS_ECHO(["        MySQL (--with-dlz-mysql)"])
+          dlz_enabled=yes])
+    AS_IF([test "$use_dlz_odbc" != "no"],
+         [AS_ECHO(["        ODBC (--with-dlz-odbc)"])
+          dlz_enabled=yes])
+    AS_IF([test "$use_dlz_postgres" != "no"],
+         [AS_ECHO(["        Postgres (--with-dlz-postgres)"])
+          dlz_enabled=yes])
+    AS_IF([test "$use_dlz_filesystem" != "no"],
+         [AS_ECHO(["        Filesystem (--with-dlz-filesystem)"])
+          dlz_enabled=yes])
+    AS_IF([test "$use_dlz_stub" != "no"],
+         [AS_ECHO(["        Stub (--with-dlz-stub)"])
+          dlz_enabled=yes])
+
+    AS_IF([test "$dlz_enabled" = "no"],
+         [AS_ECHO(["        None"])],
+         [AS_ECHO(["    +--------------------------------------------------------+"])
+          AS_ECHO(["    |             ==== DEPRECATION WARNING ====              |"])
+          AS_ECHO(["    +--------------------------------------------------------+"])
+          AS_ECHO(["    | Old-style DLZ drivers has been deprecated in favor of  |"])
+          AS_ECHO(["    | DLZ modules. The DLZ drivers configuration option will |"])
+          AS_ECHO(["    | be removed from the next major BIND 9 release.         |"])
+          AS_ECHO(["    |                                                        |"])
+          AS_ECHO(["    | The option to use the DLZ modules is already available |"])
+          AS_ECHO(["    | in BIND 9; please see the ARM section on DLZ modules.  |"])
+          AS_ECHO(["    +--------------------------------------------------------+"])
+         ])
 
     echo "-------------------------------------------------------------------------------"