aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--image.c9
-rw-r--r--nsxiv.h9
-rw-r--r--options.c21
3 files changed, 30 insertions, 9 deletions
diff --git a/image.c b/image.c
index 426a05a..e7e4455 100644
--- a/image.c
+++ b/image.c
@@ -33,15 +33,6 @@
#include <libexif/exif-data.h>
#endif
-#ifdef IMLIB2_VERSION
- #if IMLIB2_VERSION >= IMLIB2_VERSION_(1, 8, 0)
- #define HAVE_IMLIB2_MULTI_FRAME 1
- #endif
-#endif
-#ifndef HAVE_IMLIB2_MULTI_FRAME
- #define HAVE_IMLIB2_MULTI_FRAME 0
-#endif
-
#if HAVE_LIBGIF && !HAVE_IMLIB2_MULTI_FRAME
#include <gif_lib.h>
enum { DEF_GIF_DELAY = 75 };
diff --git a/nsxiv.h b/nsxiv.h
index 7e373c2..574ab1a 100644
--- a/nsxiv.h
+++ b/nsxiv.h
@@ -159,6 +159,15 @@ typedef keymap_t button_t;
/* image.c */
+#ifdef IMLIB2_VERSION
+ #if IMLIB2_VERSION >= IMLIB2_VERSION_(1, 8, 0)
+ #define HAVE_IMLIB2_MULTI_FRAME 1
+ #endif
+#endif
+#ifndef HAVE_IMLIB2_MULTI_FRAME
+ #define HAVE_IMLIB2_MULTI_FRAME 0
+#endif
+
typedef struct {
Imlib_Image im;
unsigned int delay;
diff --git a/options.c b/options.c
index ef874ac..89dfe20 100644
--- a/options.c
+++ b/options.c
@@ -50,6 +50,27 @@ void print_usage(void)
static void print_version(void)
{
printf("%s %s\n", progname, VERSION);
+ fputs("features: "
+#if HAVE_INOTIFY
+ "+inotify "
+#endif
+#if HAVE_LIBFONTS
+ "+statusbar "
+#endif
+#if HAVE_LIBEXIF
+ "+exif "
+#endif
+#if HAVE_IMLIB2_MULTI_FRAME
+ "+multiframe "
+#else
+ #if HAVE_LIBGIF
+ "+giflib "
+ #endif
+ #if HAVE_LIBWEBP
+ "+libwebp "
+ #endif
+#endif
+ "\n", stdout);
}
void parse_options(int argc, char **argv)