Fix Lerberos detection on different Solaris versions and Linux, examle update from pgsql see here: https://projects.commandprompt.com/public/pgsql/changeset/28598#file1 This does not mean that kerneros support would build in the imap toolkit because it seems to have -lgssapi_krb5 hard-coded. Anyway the configure is improvied with this patch. Also SSL detection is adapted, there is no need to have LIBS="$LIBS -lssl" there because when reading the documentation of AC_SEARCH_LIBS, one knows that that is done by AC_SEARCH_LIBS automatically. If SSL is not found, it should also be turned off, possibly, or maybe an AC_MSG_ERROR might be better instead. YMMV - that part is not in need to be touched but looks better that way. --- alpine-0.999/configure.ac 2007-06-28 00:48:15.000000000 +0000 +++ alpine-0.999/configure.ac 2007-08-01 17:24:13.000000000 +0000 @@ -588,6 +588,8 @@ [ if test "x$withval" != "xno" ; then alpine_GSSDIR=$withval + CPPFLAGS="$CPPFLAGS -I${withval}/include" + AM_LDFLAGS="$AM_LDFLAGS -L${withval}/lib" fi ]) @@ -596,6 +598,7 @@ [ if test "x$withval" != "xno" ; then alpine_GSSINCLUDE=$withval + CPPFLAGS="$CPPFLAGS -I${withval}/include" fi ]) @@ -604,6 +607,7 @@ [ if test "x$withval" != "xno" ; then alpine_GSSLIB=$withval + AM_LDFLAGS="$AM_LDFLAGS -L${withval}/lib" fi ]) fi @@ -797,31 +801,21 @@ if test "x$alpine_SSLTYPE" != "xnone" ; then AC_SEARCH_LIBS(SSL_library_init,ssl, [ - LIBS="$LIBS -lssl" + AC_MSG_NOTICE([OpenSSL libraries FOUND]) + ], + [ + AC_MSG_NOTICE([OpenSSL libraries NOT found]) + alpine_SSLTYPE=none ]) - if test "x$alpine_SSLTYPE" = "xnone" ; then - AC_MSG_NOTICE([OpenSSL libraries NOT found]) - else - AC_MSG_NOTICE([OpenSSL libraries FOUND]) - fi fi dnl provide KRB5 support? if test "x$alpine_GSSTYPE" != "xnone" ; then - case x$alpine_GSSLIB in - x) - AC_SEARCH_LIBS(gss_init_sec_context,$alpine_GSSLIB,, - [ - alpine_GSSTYPE="none" - ]) - ;; - *) - AC_CHECK_FUNC(gss_init_sec_context,, - [ + AC_SEARCH_LIBS(gss_init_sec_context, [gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'], [], + [ + AC_MSG_NOTICE([Kerberos5 libraries NOT found!!!]) alpine_GSSTYPE="none" - ]) - ;; - esac + ]) fi dnl check for tcl libraries for Web Alpine