From: Christian Hofstaedtler Date: Sat, 24 Aug 2013 19:54:25 +0000 (+0200) Subject: Show built-in features in --version output X-Git-Tag: rec-3.6.0-rc1~475^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F972%2Fhead;p=thirdparty%2Fpdns.git Show built-in features in --version output --- diff --git a/configure.ac b/configure.ac index 748e412260..4d79cc796d 100644 --- a/configure.ac +++ b/configure.ac @@ -269,6 +269,11 @@ then AC_DEFINE(HAVE_BOTAN18,1,[If we have botan 1.8]) fi +if test "x$enable_cryptopp" = "xyes" +then + AC_DEFINE(HAVE_CRYPTOPP,1,[If we have cryptopp]) +fi + AC_ARG_ENABLE(remotebackend_http, AC_HELP_STRING([--enable-remotebackend-http],[enable HTTP connector for remotebackend]),[enable_remotebackend_http=yes], [enable_remotebackend_http=no]) AC_MSG_CHECKING(whether to enable http connector in remotebackend) AC_MSG_RESULT($enable_remotebackend_http) @@ -327,6 +332,7 @@ AC_ARG_WITH(socketdir, AC_HELP_STRING([--with-socketdir],[where the controlsocke AC_SUBST(moduledirs) AC_SUBST(moduleobjects) AC_SUBST(modulelibs) +AC_DEFINE_UNQUOTED(PDNS_MODULES,"$modules", [Built-in modules]) AC_MSG_CHECKING(whether we will be building the server) AC_ARG_ENABLE(pdns-server, diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index f489004866..146edecb64 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -2115,6 +2115,7 @@ int main(int argc, char **argv) } if(::arg().mustDo("version")) { showProductVersion(); + showBuildConfiguration(); exit(99); } diff --git a/pdns/receiver.cc b/pdns/receiver.cc index b5cb44d65a..bc514a13ec 100644 --- a/pdns/receiver.cc +++ b/pdns/receiver.cc @@ -425,6 +425,7 @@ int main(int argc, char **argv) if(::arg().mustDo("version")) { showProductVersion(); + showBuildConfiguration(); exit(99); } diff --git a/pdns/version.cc b/pdns/version.cc index 3eceba95f5..8cb17a36b5 100644 --- a/pdns/version.cc +++ b/pdns/version.cc @@ -46,6 +46,37 @@ void showProductVersion() "according to the terms of the GPL version 2." << endl; } +void showBuildConfiguration() +{ + theL()<