Merge pull request #302 from uglym8/freebsd_conf_fix

Fix configure script on FreeBSD
This commit is contained in:
Henrik Andersson 2019-01-18 13:38:21 +01:00 committed by GitHub
commit 2e80cdf396
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,8 +140,21 @@ AS_IF([test "x$enable_credssp" != "xno"], [
GSSAPI_LIBS="-framework Kerberos"
;;
*)
if test -n "$PKG_CONFIG"; then
PKG_CHECK_MODULES(GSSAPI, krb5-gssapi, [WITH_CREDSSP=1], [WITH_CREDSSP=0])
#if 'OSTYPE' is not set use 'host' instead
if test x"$OSTYPE" = "x"; then
case "$host" in
*-*-freebsd*)
if test -n "$PKG_CONFIG"; then
PKG_CHECK_MODULES(GSSAPI, gss, [WITH_CREDSSP=1], [WITH_CREDSSP=0])
fi
;;
*)
;;
esac
else
if test -n "$PKG_CONFIG"; then
PKG_CHECK_MODULES(GSSAPI, krb5-gssapi, [WITH_CREDSSP=1], [WITH_CREDSSP=0])
fi
fi
;;
esac