diff --git a/configure b/configure index 0529256372e..cf625c8e827 100755 --- a/configure +++ b/configure @@ -13640,11 +13640,11 @@ LIBS="-lkrb5 $KRB5_LIBS $LIBS" #ifdef __cplusplus extern "C" #endif -char krb5_init_context (); +char krb5_is_config_principal (); int main () { -return krb5_init_context (); +return krb5_is_config_principal (); ; return 0; } @@ -13689,9 +13689,9 @@ else fi if test "x$ac_cv_lib_soname_krb5" = "x"; then : case "x$with_krb5" in - x) as_fn_append wine_notices "|libkrb5 ${notice_platform}development files not found, Kerberos won't be supported." ;; + x) as_fn_append wine_notices "|libkrb5 ${notice_platform}development files not found (or too old), Kerberos won't be supported." ;; xno) ;; - *) as_fn_error $? "libkrb5 ${notice_platform}development files not found, Kerberos won't be supported. + *) as_fn_error $? "libkrb5 ${notice_platform}development files not found (or too old), Kerberos won't be supported. This is an error since --with-krb5 was requested." "$LINENO" 5 ;; esac diff --git a/configure.ac b/configure.ac index fe8ffaa00ed..7386d744bb3 100644 --- a/configure.ac +++ b/configure.ac @@ -1669,7 +1669,7 @@ then [AC_CHECK_HEADERS([krb5/krb5.h]) if test "$ac_cv_header_krb5_krb5_h" = "yes" then - WINE_CHECK_SONAME(krb5,krb5_init_context,,[KRB5_CFLAGS=""],[$KRB5_LIBS]) + WINE_CHECK_SONAME(krb5,krb5_is_config_principal,,[KRB5_CFLAGS=""],[$KRB5_LIBS]) else KRB5_CFLAGS="" fi]) @@ -1677,7 +1677,7 @@ else with_gssapi=${with_gssapi:-no} fi WINE_NOTICE_WITH(krb5,[test "x$ac_cv_lib_soname_krb5" = "x"], - [libkrb5 ${notice_platform}development files not found, Kerberos won't be supported.]) + [libkrb5 ${notice_platform}development files not found (or too old), Kerberos won't be supported.]) dnl **** Check for gssapi **** if test "x$with_gssapi" != "xno"