From: Roy Marples Date: Tue, 27 Sep 2016 10:34:29 +0000 (+0000) Subject: Report compiled in features in --version. X-Git-Tag: v6.11.4~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0a8b16891542f2c58af10491023a45ecbc052da;p=thirdparty%2Fdhcpcd.git Report compiled in features in --version. --- diff --git a/dhcpcd.c b/dhcpcd.c index d9f3e13e..8f1862b2 100644 --- a/dhcpcd.c +++ b/dhcpcd.c @@ -1455,6 +1455,23 @@ main(int argc, char **argv) return EXIT_SUCCESS; } else if (strcmp(argv[1], "--version") == 0) { printf(""PACKAGE" "VERSION"\n%s\n", dhcpcd_copyright); + printf("Compiled in features:" +#ifdef INET + " INET" +#endif +#ifdef IPV4LL + " IPv4LL" +#endif +#ifdef INET6 + " INET6" +#endif +#ifdef DHCP6 + " DHCPv6" +#endif +#ifdef AUTH + " AUTH" +#endif + "\n"); return EXIT_SUCCESS; } }