summaryrefslogtreecommitdiffstats
path: root/proxy/conf_macros.m4
diff options
context:
space:
mode:
authorGünther Deschner <gdeschner@redhat.com>2013-10-17 18:53:07 +0200
committerGünther Deschner <gdeschner@redhat.com>2013-10-18 15:17:52 +0200
commit117ed0a24c47d91d7c0ba836b218f620195afd61 (patch)
tree71eb0c59d54889c1a69f9853c5d925f049d0e26e /proxy/conf_macros.m4
parenta87ab15711b340e1f06cb4ae5534cc76add04e2c (diff)
downloadgss-proxy-117ed0a24c47d91d7c0ba836b218f620195afd61.tar.gz
gss-proxy-117ed0a24c47d91d7c0ba836b218f620195afd61.tar.xz
gss-proxy-117ed0a24c47d91d7c0ba836b218f620195afd61.zip
docs: Fill in GSSPROXY_BEHAVIOR default setting from configure option.
Signed-off-by: Günther Deschner <gdeschner@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'proxy/conf_macros.m4')
-rw-r--r--proxy/conf_macros.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/proxy/conf_macros.m4 b/proxy/conf_macros.m4
index a04f694..a0ecb13 100644
--- a/proxy/conf_macros.m4
+++ b/proxy/conf_macros.m4
@@ -259,19 +259,25 @@ AC_DEFUN([WITH_GPP_DEFAULT_BEHAVIOR],
[],
)
default_behavior=GPP_LOCAL_FIRST
+ default_behavior_env=LOCAL_FIRST
if test x"$with_gpp_default_behavior" = x"LOCAL_FIRST"; then
AC_MSG_RESULT([Using gssproxy interposer behavior LOCAL_FIRST])
+ default_behavior=GPP_LOCAL_FIRST
+ default_behavior_env=LOCAL_FIRST
elif test x"$with_gpp_default_behavior" = x"LOCAL_ONLY"; then
AC_MSG_RESULT([Using gssproxy interposer behavior LOCAL_ONLY])
default_behavior=GPP_LOCAL_ONLY
+ default_behavior_env=LOCAL_ONLY
elif test x"$with_gpp_default_behavior" = x"REMOTE_FIRST"; then
AC_MSG_RESULT([Using gssproxy interposer behavior REMOTE_FIRST])
default_behavior=GPP_REMOTE_FIRST
+ default_behavior_env=REMOTE_FIRST
elif test x"$with_gpp_default_behavior" = x"REMOTE_ONLY"; then
AC_MSG_ERROR([REMOTE_ONLY currently not supported])
elif test x"$with_gpp_default_behavior" != x; then
AC_MSG_ERROR([unknown gpp default behavior])
fi
+ AC_SUBST(GPP_DEFAULT_BEHAVIOR, $default_behavior_env)
AC_DEFINE_UNQUOTED(GPP_DEFAULT_BEHAVIOR, $default_behavior, [Default gssproxy interposer plugin behavior])
])