diff options
author | Nalin Dahyabhai <nalin@redhat.com> | 2012-11-13 18:08:38 -0500 |
---|---|---|
committer | Nalin Dahyabhai <nalin@redhat.com> | 2012-11-13 18:08:38 -0500 |
commit | eaa9c342928e20324f3248e65a37bb344fb0671c (patch) | |
tree | 8b0bce386addc0997e19e482abbe7804130b4dde | |
parent | 9a926114539a95cfc09e2b6601322072437d9a19 (diff) | |
download | slapi-nis-eaa9c342928e20324f3248e65a37bb344fb0671c.tar.gz slapi-nis-eaa9c342928e20324f3248e65a37bb344fb0671c.tar.xz slapi-nis-eaa9c342928e20324f3248e65a37bb344fb0671c.zip |
show betxn settings in the plugin version
-rw-r--r-- | configure.ac | 13 | ||||
-rw-r--r-- | src/plug-nis.c | 2 | ||||
-rw-r--r-- | src/plug-sch.c | 2 |
3 files changed, 15 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index d285b3b..9d639cf 100644 --- a/configure.ac +++ b/configure.ac @@ -222,6 +222,19 @@ fi AC_DEFINE_UNQUOTED(DEFAULT_PLUGIN_USE_BETXNS,$deftransactions, [Define non-zero if support for backend transactions should be enabled by default.]) +AH_VERBATIM([PACKAGE_VERSION_HAVE_TXNS], +[ +#ifdef SLAPI_NIS_SUPPORT_BE_TXNS +#ifdef DEFAULT_PLUGIN_USE_BETXNS +#define PACKAGE_VERSION_TXNS " (betxns:supported_and_used_by_default)" +#else +#define PACKAGE_VERSION_TXNS " (betxns:supported_but_not_used_by_default)" +#endif +#else +#define PACKAGE_VERSION_TXNS " (betxns:not_supported)" +#endif +]) + if test $thread_api = NSPR ; then AC_DEFINE(USE_NSPR_THREADS,1,[Define to use NSPR threading functions.]) elif test $thread_api = POSIX ; then diff --git a/src/plug-nis.c b/src/plug-nis.c index 4815749..85aa3e2 100644 --- a/src/plug-nis.c +++ b/src/plug-nis.c @@ -68,7 +68,7 @@ static Slapi_PluginDesc plugin_description = { .spd_id = "nis-plugin", .spd_vendor = "redhat.com", - .spd_version = PACKAGE_VERSION, + .spd_version = PACKAGE_VERSION PACKAGE_VERSION_TXNS, .spd_description = "NIS Server Plugin", }; static struct plugin_state *global_plugin_state; diff --git a/src/plug-sch.c b/src/plug-sch.c index a1c6344..913ab5e 100644 --- a/src/plug-sch.c +++ b/src/plug-sch.c @@ -68,7 +68,7 @@ static Slapi_PluginDesc plugin_description = { .spd_id = PLUGIN_ID, .spd_vendor = "redhat.com", - .spd_version = PACKAGE_VERSION, + .spd_version = PACKAGE_VERSION PACKAGE_VERSION_TXNS, .spd_description = "Schema Compatibility Plugin", }; static struct plugin_state *global_plugin_state; |