From d250ccb421c1bcf978b26606b5ae9713d9a1e649 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 16 Feb 2011 18:46:34 +0100 Subject: feh -v: Show compiletime switches --- src/options.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/options.c b/src/options.c index caa9aa4..bbef6ef 100644 --- a/src/options.c +++ b/src/options.c @@ -849,7 +849,23 @@ static void check_options(void) static void show_version(void) { - printf(PACKAGE " version " VERSION "\n"); + puts(PACKAGE " version " VERSION); + puts("Compile-time switches: " + +#ifdef HAVE_LIBCURL + "curl " +#endif + +#ifdef DEBUG + "debug " +#endif + +#ifdef HAVE_LIBXINERAMA + "xinerama " +#endif + + ); + exit(0); } -- cgit v1.2.3