summaryrefslogtreecommitdiff
path: root/source3/configure.in
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-12-31 14:31:13 +0000
committerAndrew Tridgell <tridge@samba.org>2001-12-31 14:31:13 +0000
commit162a6606bdcb075c256980fb3a559e59d89f2192 (patch)
treede5a719de6612449acdb88203bb80b7bf9f13346 /source3/configure.in
parent84ecd95dba6cf03070432b3cc37d511d310d1325 (diff)
downloadsamba-162a6606bdcb075c256980fb3a559e59d89f2192.tar.gz
samba-162a6606bdcb075c256980fb3a559e59d89f2192.tar.bz2
samba-162a6606bdcb075c256980fb3a559e59d89f2192.zip
cope with systems that don't have full gssapi libs
(This used to be commit c4d928e55fe99a3a1c4e53508a44949f92d74219)
Diffstat (limited to 'source3/configure.in')
-rw-r--r--source3/configure.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/configure.in b/source3/configure.in
index d3f13e586a..077486e798 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -1669,7 +1669,7 @@ AC_CHECK_HEADERS(gssapi/gssapi_generic.h gssapi/gssapi.h)
# we might need the k5crypto and com_err libraries on some systems
AC_CHECK_LIB(com_err, _et_list, [LIBS="$LIBS -lcom_err"])
AC_CHECK_LIB(k5crypto, krb5_encrypt_data, [LIBS="$LIBS -lk5crypto"])
-AC_CHECK_LIB(gssapi_krb5, gss_import_name, [LIBS="$LIBS -lgssapi_krb5"])
+AC_CHECK_LIB(gssapi_krb5, gss_display_status, [LIBS="$LIBS -lgssapi_krb5"])
########################################################
@@ -1678,6 +1678,10 @@ AC_CHECK_LIB(gssapi_krb5, gss_import_name, [LIBS="$LIBS -lgssapi_krb5"])
AC_CHECK_LIB(krb5, krb5_mk_req_extended, [LIBS="$LIBS -lkrb5";
AC_DEFINE(HAVE_KRB5)])
+########################################################
+# now see if we can find the gssapi libs in standard paths
+AC_CHECK_LIB(gssapi_krb5, gss_display_status, [AC_DEFINE(HAVE_GSSAPI)])
+
##################################################################
# we might need the lber lib on some systems. To avoid link errors