summaryrefslogtreecommitdiffstats
path: root/src/conf_macros.m4
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-06-14 21:18:10 +0200
committerStephen Gallagher <sgallagh@redhat.com>2012-06-14 15:52:29 -0400
commitbc9235cfb80bd64a3bfa959e8d26d5ad1be0bdf4 (patch)
treefd5d852a84b5d443e4bc9f816b0df5ef3fe6a80b /src/conf_macros.m4
parent95cc3f4be93d3cb5bb28bb3787f0aace4edb3124 (diff)
downloadsssd_unused-bc9235cfb80bd64a3bfa959e8d26d5ad1be0bdf4.zip
sssd_unused-bc9235cfb80bd64a3bfa959e8d26d5ad1be0bdf4.tar.gz
sssd_unused-bc9235cfb80bd64a3bfa959e8d26d5ad1be0bdf4.tar.xz
Make krb5_ccname_template and krb5_ccachedir configurable
Diffstat (limited to 'src/conf_macros.m4')
-rw-r--r--src/conf_macros.m430
1 files changed, 30 insertions, 0 deletions
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4
index 8c13e5d..2e98b84 100644
--- a/src/conf_macros.m4
+++ b/src/conf_macros.m4
@@ -247,6 +247,36 @@ AC_DEFUN([WITH_KRB5_RCACHE_DIR],
AC_DEFINE_UNQUOTED(KRB5_RCACHE_DIR, "$krb5rcachedir", [Directory used for storing Kerberos replay caches])
])
+AC_DEFUN([WITH_DEFAULT_CCACHE_DIR],
+ [ AC_ARG_WITH([default-ccache-dir],
+ [AC_HELP_STRING([--with-default-ccache-dir=CCACHEDIR],
+ [The default value of krb5_ccachedir [/tmp]]
+ )
+ ]
+ )
+ config_def_ccache_dir="/tmp"
+ if test x"$with_default_ccache_dir" != x; then
+ config_def_ccache_dir=$with_default_ccache_dir
+ fi
+ AC_SUBST(config_def_ccache_dir)
+ AC_DEFINE_UNQUOTED(DEFAULT_CCACHE_DIR, "$config_def_ccache_dir", [The default value of krb5_ccachedir])
+ ])
+
+AC_DEFUN([WITH_DEFAULT_CCNAME_TEMPLATE],
+ [ AC_ARG_WITH([default-ccname-template],
+ [AC_HELP_STRING([--with-default-ccname-template=CCACHE],
+ [The default value of krb5_ccname_template [FILE:%d/krb5cc_%U_XXXXXX]]
+ )
+ ]
+ )
+ config_def_ccname_template="FILE:%d/krb5cc_%U_XXXXXX"
+ if test x"$with_default_ccname_template" != x; then
+ config_def_ccname_template=$with_default_ccname_template
+ fi
+ AC_SUBST(config_def_ccname_template)
+ AC_DEFINE_UNQUOTED(DEFAULT_CCNAME_TEMPLATE, "$config_def_ccname_template", [The default value of krb5_ccname_template])
+ ])
+
AC_DEFUN([WITH_PYTHON_BINDINGS],
[ AC_ARG_WITH([python-bindings],
[AC_HELP_STRING([--with-python-bindings],