summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorIrene Huang <irene.huang@sun.com>2007-06-05 13:29:59 +0000
committerIrene Huang <ireneh@src.gnome.org>2007-06-05 13:29:59 +0000
commit86309add9f55fdbdf108c0672d4eb3ef3306e45b (patch)
treede84e1d9af74a608ab4e6daf684478a04f36bfc5 /configure.in
parentc3090096271b824b15298a4549a8c819c3047540 (diff)
downloadevolution-data-server-86309add9f55fdbdf108c0672d4eb3ef3306e45b.tar.gz
Add option for using Sun Kerberos fixing bug #344728 2006-06-05 Irene
2007-06-05 Irene Huang <irene.huang@sun.com> * configure.in: Add option for using Sun Kerberos fixing bug #344728 2006-06-05 Irene Huang <irene.huang@sun.com> * camel-sasl-gssapi.c: Add headers for Sun Kerberos fixing bug #344728 svn path=/trunk/; revision=7809
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in27
1 files changed, 21 insertions, 6 deletions
diff --git a/configure.in b/configure.in
index 832e3d3ba..2ee17c263 100644
--- a/configure.in
+++ b/configure.in
@@ -981,13 +981,18 @@ if test "x${with_krb5}" != "xno"; then
mitlibs="-lkrb5 -lk5crypto -lcom_err -lgssapi_krb5"
heimlibs="-lkrb5 -lcrypto -lasn1 -lcom_err -lroken -lgssapi"
+ sunlibs="-lkrb5 -lgss"
AC_CACHE_CHECK([for Kerberos 5], ac_cv_lib_kerberos5,
[
LDFLAGS="$LDFLAGS -L$with_krb5_libs $mitlibs"
AC_TRY_LINK([#include <krb5.h>],krb5_init_context, ac_cv_lib_kerberos5="$mitlibs",
[
LDFLAGS="$LDFLAGS_save -L$with_krb5_libs $heimlibs"
- AC_TRY_LINK_FUNC(krb5_init_context, ac_cv_lib_kerberos5="$heimlibs", ac_cv_lib_kerberos5="no")
+ AC_TRY_LINK_FUNC(krb5_init_context, ac_cv_lib_kerberos5="$heimlibs",
+ [
+ LDFLAGS="$LDFLAGS_save -L$with_krb5_libs $sunlibs"
+ AC_TRY_LINK_FUNC(krb5_init_context, ac_cv_lib_kerberos5="$sunlibs", ac_cv_lib_kerberos5="no")
+ ])
])
LDFLAGS="$LDFLAGS_save"
])
@@ -1002,13 +1007,23 @@ if test "x${with_krb5}" != "xno"; then
fi
msg_krb5="yes (MIT)"
else
- AC_DEFINE(HAVE_HEIMDAL_KRB5,1,[Define if you have Heimdal])
- if test -z "$with_krb5_includes"; then
- KRB5_CFLAGS="-I$with_krb5/include/heimdal"
+ if test "$ac_cv_lib_kerberos5" = "$heimlibs"; then
+ AC_DEFINE(HAVE_HEIMDAL_KRB5,1,[Define if you have Heimdal])
+ if test -z "$with_krb5_includes"; then
+ KRB5_CFLAGS="-I$with_krb5/include/heimdal"
+ else
+ KRB5_CFLAGS="-I$with_krb5_includes"
+ fi
+ msg_krb5="yes (Heimdal)"
else
- KRB5_CFLAGS="-I$with_krb5_includes"
+ AC_DEFINE(HAVE_SUN_KRB5,1,[Define if you have Sun Kerberosv5])
+ if test -z "$with_krb5_includes"; then
+ KRB5_CFLAGS="-I$with_krb5/include/kerberosv5"
+ else
+ KRB5_CFLAGS="-I$with_krb5_includes"
+ fi
+ msg_krb5="yes (Sun)"
fi
- msg_krb5="yes (Heimdal)"
fi
KRB5_LDFLAGS="-L$with_krb5_libs $ac_cv_lib_kerberos5"
AC_MSG_RESULT(msg_krb5)