]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add missing options to feature-test utility
authorTom Krizek <tkrizek@isc.org>
Thu, 1 Dec 2022 14:08:36 +0000 (15:08 +0100)
committerTom Krizek <tkrizek@isc.org>
Fri, 2 Dec 2022 09:23:49 +0000 (10:23 +0100)
bin/tests/system/feature-test.c

index 3435c91e07f7e962cd64f01d77e839aa82819582..b1adaedadeabba9afc81b7c14360a43173cef821 100644 (file)
@@ -34,6 +34,7 @@ usage(void) {
        fprintf(stderr, "\t--gethostname\n");
        fprintf(stderr, "\t--gssapi\n");
        fprintf(stderr, "\t--have-geoip2\n");
+       fprintf(stderr, "\t--have-json-c\n");
        fprintf(stderr, "\t--have-libxml2\n");
        fprintf(stderr, "\t--ipv6only=no\n");
        fprintf(stderr, "\t--tsan\n");
@@ -41,6 +42,7 @@ usage(void) {
        fprintf(stderr, "\t--with-libidn2\n");
        fprintf(stderr, "\t--with-lmdb\n");
        fprintf(stderr, "\t--with-libnghttp2\n");
+       fprintf(stderr, "\t--with-zlib\n");
 }
 
 int
@@ -112,6 +114,14 @@ main(int argc, char **argv) {
 #endif /* ifdef HAVE_GEOIP2 */
        }
 
+       if (strcmp(argv[1], "--have-json-c") == 0) {
+#ifdef HAVE_JSON_C
+               return (0);
+#else  /* ifdef HAVE_JSON_C */
+               return (1);
+#endif /* ifdef HAVE_JSON_C */
+       }
+
        if (strcmp(argv[1], "--have-libxml2") == 0) {
 #ifdef HAVE_LIBXML2
                return (0);
@@ -179,9 +189,17 @@ main(int argc, char **argv) {
        if (strcmp(argv[1], "--with-libnghttp2") == 0) {
 #ifdef HAVE_LIBNGHTTP2
                return (0);
-#else  /* ifdef HAVE_LMDB */
+#else  /* ifdef HAVE_LIBNGHTTP2 */
                return (1);
-#endif /* ifdef HAVE_LMDB */
+#endif /* ifdef HAVE_LIBNGHTTP2 */
+       }
+
+       if (strcmp(argv[1], "--with-zlib") == 0) {
+#ifdef HAVE_ZLIB
+               return (0);
+#else  /* ifdef HAVE_ZLIB */
+               return (1);
+#endif /* ifdef HAVE_ZLIB */
        }
 
        fprintf(stderr, "unknown arg: %s\n", argv[1]);