From e96523d83d9a8e0c035797584ca76ad08f9ff3a9 Mon Sep 17 00:00:00 2001 From: Emmanuel Dreyfus Date: Sun, 24 Apr 2016 15:03:16 +0200 Subject: [PATCH] Fix excessive library dependencies (continued) Make sure we only link with kerberos llibraries if kerberos features are enabled. Otherwise we produce a binaruy that requires unused libraries, which is a liability when we try to use it on a system where they are not installed. Previous changed failed to update configure. Here is that fixed. --- configure | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure b/configure index b14e39e..1d66da3 100755 --- a/configure +++ b/configure @@ -13394,7 +13394,9 @@ if test $ac_cv_lib_dl_dlopen = yes; then LIBS="-ldl $LIBS" fi - +if test "x$enable_configurable_krb5_ccname_env" = "xyes" -o \ + "x$enable_configurable_krb5_ccname_gssapi" = "xyes" -o \ + "x$enable_configurable_krb5_keytab" = "xyes" ; then { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi" >&5 echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi... $ECHO_C" >&6; } if test "${ac_cv_lib_gssapi_gss_krb5_ccache_name+set}" = set; then @@ -13645,7 +13647,7 @@ echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6; } if test $ac_cv_lib_krb5_main = yes; then LIBS="-lkrb5 $LIBS" fi - +fi { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }