List whether we were compiled with LIBNL or not (including which major

version).

svn path=/trunk/; revision=43574
This commit is contained in:
Jeff Morriss 2012-07-05 19:10:47 +00:00
parent a0c01750b8
commit efe4dd96aa
1 changed files with 12 additions and 0 deletions

View File

@ -154,6 +154,18 @@ get_compiled_version_info(GString *str, void (*prepend_info)(GString *),
g_string_append(str, "without POSIX capabilities");
#endif /* HAVE_LIBCAP */
/* LIBNL */
g_string_append(str, ", ");
#if defined(HAVE_LIBNL1)
g_string_append(str, "with libnl 1");
#elif defined(HAVE_LIBNL2)
g_string_append(str, "with libnl 2");
#elif defined(HAVE_LIBNL3)
g_string_append(str, "with libnl 3");
#else
g_string_append(str, "without libnl");
#endif
/* Additional application-dependent information */
if (append_info)
(*append_info)(str);