pike.git / src / post_modules / GSSAPI / configure.in

version» Context lines:

pike.git/src/post_modules/GSSAPI/configure.in:32:    PIKE_FEATURE(GSSAPI, [yes ($pike_cv_search_gss_wrap)])    ])       AC_CHECK_FUNCS(gss_inquire_mechs_for_name)       dnl PIKE_CHECK_GSS_OID(OID)    AC_DEFUN([PIKE_CHECK_GSS_OID], [    AC_MSG_CHECKING([for OID $1])    AC_CACHE_VAL(pike_cv_have_oid_$1, [    AC_TRY_LINK([ - #ifdef HAVE_GSSAPI_H - #include <gssapi.h> - #elif defined(HAVE_GSSAPI_GSSAPI_H) + #ifdef HAVE_GSSAPI_GSSAPI_H   #include <gssapi/gssapi.h> -  + #elif defined(HAVE_GSSAPI_H) + #include <gssapi.h>   #elif defined(HAVE_GSSGLUE_GSSAPI_GSSAPI_H)   #include <gssglue/gssapi/gssapi.h>   #endif - #ifdef HAVE_GSSAPI_KRB5_H - #include <gssapi_krb5.h> - #elif defined(HAVE_GSSAPI_GSSAPI_KRB5_H) + #ifdef HAVE_GSSAPI_GSSAPI_KRB5_H   #include <gssapi/gssapi_krb5.h> -  + #elif defined(HAVE_GSSAPI_KRB5_H) + #include <gssapi_krb5.h>   #elif defined(HAVE_GSSGLUE_GSSAPI_GSSAPI_KRB5_H)   #include <gssglue/gssapi/gssapi_krb5.h>   #endif    ], [    const gss_OID_desc *desc = $1;    return 0;    ], [    pike_cv_have_oid_$1=yes    ], [    pike_cv_have_oid_$1=no
pike.git/src/post_modules/GSSAPI/configure.in:65:    if test "$pike_cv_have_oid_$1" = "yes"; then    AC_MSG_RESULT(yes)    AC_DEFINE(HAVE_$1,, [Define if you have the OID $1.])    else    AC_MSG_RESULT(no)    fi    ])       if test "$ac_cv_header_gssapi_krb5_h:$ac_cv_header_gssapi_gssapi_krb5_h:$ac_cv_header_gssglue_gssapi_gssapi_krb5_h" = "no:no:no"; then    PIKE_CHECK_GSS_OID(GSS_KRB5_NT_PRINCIPAL_NAME) +  else +  # NB: On FreeBSD 10.3 -lgssapi contains gss_wrap(), but +  # the definitions for GSS_KRB5_NT_PRINCIPAL_NAME are +  # in -lgssapi_krb5 (which doesn't contain gss_wrap()). +  AC_CHECK_LIB(gssapi_krb5, main)    fi    PIKE_CHECK_GSS_OID(GSS_C_NT_USER_NAME)    PIKE_CHECK_GSS_OID(GSS_C_NT_MACHINE_UID_NAME)    PIKE_CHECK_GSS_OID(GSS_C_NT_STRING_UID_NAME)    PIKE_CHECK_GSS_OID(GSS_C_NT_HOSTBASED_SERVICE)    PIKE_CHECK_GSS_OID(GSS_C_NT_ANONYMOUS)    PIKE_CHECK_GSS_OID(GSS_C_NT_EXPORT_NAME)   fi      fi      AC_OUTPUT(Makefile, test -z "$CONFIG_HEADERS" || echo FOO >stamp-h)