]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Provide GeoIP2 library version in version
authorPetr Menšík <pemensik@redhat.com>
Mon, 18 Nov 2019 20:51:36 +0000 (21:51 +0100)
committerMark Andrews <marka@isc.org>
Wed, 18 Dec 2019 00:31:43 +0000 (00:31 +0000)
Libmaxmind does not provide any version macro for link time version.
Print at least runtime version library used, if linked.

(cherry picked from commit e6d7384c0d08dc56af6ed0c902ba2baf87f58119)

bin/named/main.c

index 936d29a03097ff617f169d2dcbc31f0ef3fc92b0..f9ffe53b39c34dc7fdc86560d06757875c33a875 100644 (file)
 #endif
 
 
+#ifdef HAVE_GEOIP2
+#include <maxminddb.h>
+#endif
+
 /*
  * Defining NAMED_MAIN provides storage declarations (rather than extern)
  * for variables in named/globals.h.
@@ -513,6 +517,11 @@ OPENSSL_VERSION_NUMBER >= 0x10100000L /* 1.1.0 or higher */
               ZLIB_VERSION);
        printf("linked to zlib version: %s\n",
               zlibVersion());
+#endif
+#if defined(HAVE_GEOIP2)
+       /* Unfortunately, no version define on link time */
+       printf("linked to maxminddb version: %s\n",
+              MMDB_lib_version());
 #endif
        printf("threads support is enabled\n\n");