summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2011-06-21 14:17:22 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-07-08 15:20:38 -0400
commitf7cfc227904771bccfda4f03f552923794dbb0c0 (patch)
tree62c36ac210b3a1c2b9b0f950b7b2f40a07c7a517
parent667db40da4db362d7ca0a1f7f1c4ba40fb71795a (diff)
downloadsssd-f7cfc227904771bccfda4f03f552923794dbb0c0.tar.gz
sssd-f7cfc227904771bccfda4f03f552923794dbb0c0.tar.bz2
sssd-f7cfc227904771bccfda4f03f552923794dbb0c0.zip
Add support for experimental features
New experimental features should have their own configure switch to enable or disable them at compile time. Additionally they can check if the configure variable build_all_experimental_features is set and enable the feature. This variable will be set if the command line option --enable-all-experimental-features is used to configure sssd. This will make it easy to enable all experimental features. Experimental features should be marked in the man pages. To simplify this include/experimental.xml can be used.
-rw-r--r--src/conf_macros.m46
-rw-r--r--src/man/include/experimental.xml4
2 files changed, 10 insertions, 0 deletions
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4
index af9cb4f2..1e503b3e 100644
--- a/src/conf_macros.m4
+++ b/src/conf_macros.m4
@@ -331,3 +331,9 @@ AC_DEFUN([WITH_NOLOGIN_SHELL],
fi
AC_DEFINE_UNQUOTED(NOLOGIN_SHELL, "$nologin_shell", [The shell used to deny access to users])
])
+
+AC_ARG_ENABLE([all-experimental-features],
+ [AS_HELP_STRING([--enable-all-experimental-features],
+ [build all experimental features])],
+ [build_all_experimental_features=$enableval],
+ [build_all_experimental_features=no])
diff --git a/src/man/include/experimental.xml b/src/man/include/experimental.xml
new file mode 100644
index 00000000..134bac95
--- /dev/null
+++ b/src/man/include/experimental.xml
@@ -0,0 +1,4 @@
+<emphasis>
+This is an experimental feature, please use http://fedorahosted.org/sssd to
+report any issues.
+</emphasis>