Skip to content

Commit 4870a1a

Browse files
committed
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. From upstream PADL#5
1 parent 7058cda commit 4870a1a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

configure

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13394,7 +13394,9 @@ if test $ac_cv_lib_dl_dlopen = yes; then
1339413394
LIBS="-ldl $LIBS"
1339513395
fi
1339613396
13397-
13397+
if test "x$enable_configurable_krb5_ccname_env" = "xyes" -o \
13398+
"x$enable_configurable_krb5_ccname_gssapi" = "xyes" -o \
13399+
"x$enable_configurable_krb5_keytab" = "xyes" ; then
1339813400
{ echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi" >&5
1339913401
echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi... $ECHO_C" >&6; }
1340013402
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; }
1364513647
if test $ac_cv_lib_krb5_main = yes; then
1364613648
LIBS="-lkrb5 $LIBS"
1364713649
fi
13648-
13650+
fi
1364913651
1365013652
{ echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
1365113653
echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }

0 commit comments

Comments
 (0)