From 39c5bb95d2764dedd424b7541b48fea1e623e8ca Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Fri, 26 Jun 2015 16:42:06 +0200
Subject: [PATCH] CommandLine: show more compile-time features in --version

---
 src/CommandLine.cxx | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/src/CommandLine.cxx b/src/CommandLine.cxx
index b63b9b53f..7e3871f70 100644
--- a/src/CommandLine.cxx
+++ b/src/CommandLine.cxx
@@ -150,6 +150,14 @@ static void version(void)
 		});
 
 	printf("\n"
+	       "Filters:\n"
+#ifdef ENABLE_LIBSAMPLERATE
+	       " libsamplerate"
+#endif
+#ifdef ENABLE_SOXR
+	       " soxr"
+#endif
+	       "\n\n"
 	       "Tag plugins:\n"
 #ifdef ENABLE_ID3TAG
 	       " id3tag"
@@ -199,6 +207,34 @@ static void version(void)
 	       "Protocols:\n");
 	print_supported_uri_schemes_to_fp(stdout);
 
+	printf("\n"
+	       "Other features:\n"
+#ifdef HAVE_AVAHI
+	       " avahi"
+#endif
+#ifdef USE_EPOLL
+	       " epoll"
+#endif
+#ifdef HAVE_ICU
+	       " icu"
+#endif
+#ifdef ENABLE_INOTIFY
+	       " inotify"
+#endif
+#ifdef HAVE_IPV6
+	       " ipv6"
+#endif
+#ifdef ENABLE_SYSTEMD_DAEMON
+	       " systemd"
+#endif
+#ifdef HAVE_TCP
+	       " tcp"
+#endif
+#ifdef HAVE_UN
+	       " un"
+#endif
+	       "\n");
+
 	exit(EXIT_SUCCESS);
 }