version: print compilation options

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-24 20:25:42 +02:00
parent 678c9e3334
commit eb13ebcbf7
1 changed files with 12 additions and 0 deletions

View File

@ -47,6 +47,18 @@ eprint_version(const char *const executable)
__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__); __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__);
#endif #endif
printf(" (%s@%s)\n", AWESOME_COMPILE_BY, AWESOME_COMPILE_HOSTNAME); printf(" (%s@%s)\n", AWESOME_COMPILE_BY, AWESOME_COMPILE_HOSTNAME);
printf("* Image drawing engine: ");
#ifdef WITH_IMLIB2
printf("Imlib2\n");
#else
printf("GdkPixBuf\n");
#endif
printf("* DBus support: ");
#ifdef WITH_DBUS
printf("enabled\n");
#else
printf("disabled\n");
#endif
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
} }