]> granicus.if.org Git - pdns/commitdiff
report more specific lua version; report luajit
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Sun, 15 Jan 2017 20:54:34 +0000 (21:54 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Sun, 15 Jan 2017 20:54:34 +0000 (21:54 +0100)
pdns/dnsdist.cc

index e68057ed62c1de8850a2d455edc29dcb0d6d3b79..2002e6d0bd51b03d34b3bfd991c646794fa3e460 100644 (file)
@@ -1790,7 +1790,11 @@ try
       g_verbose=true;
       break;
     case 'V':
-      cout<<"dnsdist "<<VERSION<<" ("<<LUA_VERSION<<")"<<endl;
+#ifdef LUAJIT_VERSION
+      cout<<"dnsdist "<<VERSION<<" ("<<LUA_RELEASE<<" ["<<LUAJIT_VERSION<<"])"<<endl;
+#else
+      cout<<"dnsdist "<<VERSION<<" ("<<LUA_RELEASE<<")"<<endl;
+#endif
       cout<<"Enabled features: ";
 #ifdef HAVE_DNSCRYPT
       cout<<"dnscrypt ";