]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Add version and feature information to -V 4029/head
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 22 Jun 2016 16:34:01 +0000 (18:34 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Wed, 22 Jun 2016 16:35:07 +0000 (18:35 +0200)
Closes #4018

pdns/dnsdist.cc

index a496e2b6e340c6b0e2ce58fef15f0f6a1c465fe0..8dfbbc37340619d040beb9e902fb20a8c8c34510 100644 (file)
@@ -1552,7 +1552,24 @@ try
       g_verbose=true;
       break;
     case 'V':
-      cout<<"dnsdist "<<VERSION<<endl;
+      cout<<"dnsdist "<<VERSION<<" ("<<LUA_VERSION<<")"<<endl;
+      cout<<"Enabled features: ";
+#ifdef HAVE_DNSCRYPT
+      cout<<"dnscrypt ";
+#endif
+#ifdef HAVE_LIBSODIUM
+      cout<<"libsodium ";
+#endif
+#ifdef HAVE_PROTOBUF
+      cout<<"protobuf ";
+#endif
+#ifdef HAVE_RE2
+      cout<<"re2 ";
+#endif
+#ifdef HAVE_SYSTEMD
+      cout<<"systemd";
+#endif
+      cout<<endl;
       exit(EXIT_SUCCESS);
       break;
     }