diff options
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | cifs.upcall.c | 1 | ||||
-rw-r--r-- | configure.ac | 6 |
3 files changed, 7 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 38babb3..a15392d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -31,7 +31,7 @@ sbin_PROGRAMS = if CONFIG_CIFSUPCALL sbin_PROGRAMS += cifs.upcall cifs_upcall_SOURCES = cifs.upcall.c data_blob.c asn1.c spnego.c -cifs_upcall_LDADD = -ltalloc -lkeyutils -lgssapi_krb5 $(KRB5_LDADD) $(CAPNG_LDADD) +cifs_upcall_LDADD = -ltalloc -lkeyutils $(GSSAPI_LDADD) $(KRB5_LDADD) $(CAPNG_LDADD) rst_man_pages += cifs.upcall.8 # # Fix the pathnames in manpages. To prevent @label@ being replaced by m4, we diff --git a/cifs.upcall.c b/cifs.upcall.c index bf4eb5d..922d644 100644 --- a/cifs.upcall.c +++ b/cifs.upcall.c @@ -37,7 +37,6 @@ #include <krb5.h> #endif -#include <gssapi/gssapi_generic.h> #include <gssapi/gssapi_krb5.h> #include <sys/utsname.h> diff --git a/configure.ac b/configure.ac index 2b1aae6..d78b75d 100644 --- a/configure.ac +++ b/configure.ac @@ -208,6 +208,12 @@ if test $enable_cifsupcall != "no"; then [ KRB5_LDADD='-lkrb5' ], AC_MSG_ERROR([no functioning krb5 library found!])) AC_SUBST(KRB5_LDADD) + save_LIBS=$LIBS + AC_SEARCH_LIBS([gss_init_sec_context], [gssapi_krb5 gssapi], + [ GSSAPI_LDADD="$ac_cv_search_gss_init_sec_context" ], + AC_MSG_ERROR([no functioning gssapi library found!])) + LIBS=$save_LIBS + AC_SUBST(GSSAPI_LDADD) fi # checks for wbclient.h and libwbclient.so library |