common/version.c: show lua release & version

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
dodo 2012-04-23 16:46:53 +02:00 committed by Julien Danjou
parent 394bacacea
commit 97040eb91d
1 changed files with 11 additions and 0 deletions

View File

@ -22,6 +22,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <lualib.h>
#include <lauxlib.h>
#include "config.h" #include "config.h"
#include "common/version.h" #include "common/version.h"
#include "awesome-version-internal.h" #include "awesome-version-internal.h"
@ -46,6 +49,14 @@ eprint_version(void)
__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);
lua_State *L = lua_open();
luaopen_base(L);
lua_getglobal(L, "_VERSION");
printf(" • Compiled against " LUA_RELEASE
" (running with %s)\n", lua_tostring(L, -1));
lua_close(L);
printf(" • D-Bus support: "); printf(" • D-Bus support: ");
#ifdef WITH_DBUS #ifdef WITH_DBUS
printf("\n"); printf("\n");