@@ -6358,7 +6358,8 @@ done
63586358fi
63596359
63606360if test "$with_krb5" = yes ; then
6361- echo "$as_me:$LINENO: checking for library containing com_err" >&5
6361+ if test "$PORTNAME" != "win32"; then
6362+ echo "$as_me:$LINENO: checking for library containing com_err" >&5
63626363echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
63636364if test "${ac_cv_search_com_err+set}" = set; then
63646365 echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -6470,7 +6471,7 @@ echo "$as_me: error: could not find function 'com_err' required for Kerberos 5"
64706471 { (exit 1); exit 1; }; }
64716472fi
64726473
6473- echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6474+ echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
64746475echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
64756476if test "${ac_cv_search_krb5_encrypt+set}" = set; then
64766477 echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -6582,7 +6583,7 @@ echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerbero
65826583 { (exit 1); exit 1; }; }
65836584fi
65846585
6585- echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6586+ echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
65866587echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
65876588if test "${ac_cv_search_krb5_sendauth+set}" = set; then
65886589 echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -6694,6 +6695,120 @@ echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerber
66946695 { (exit 1); exit 1; }; }
66956696fi
66966697
6698+ else
6699+ echo "$as_me:$LINENO: checking for library containing com_err" >&5
6700+ echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6701+ if test "${ac_cv_search_com_err+set}" = set; then
6702+ echo $ECHO_N "(cached) $ECHO_C" >&6
6703+ else
6704+ ac_func_search_save_LIBS=$LIBS
6705+ ac_cv_search_com_err=no
6706+ cat >conftest.$ac_ext <<_ACEOF
6707+ #line $LINENO "configure"
6708+ #include "confdefs.h"
6709+
6710+ /* Override any gcc2 internal prototype to avoid an error. */
6711+ #ifdef __cplusplus
6712+ extern "C"
6713+ #endif
6714+ /* We use char because int might match the return type of a gcc2
6715+ builtin and then its argument prototype would still apply. */
6716+ char com_err ();
6717+ #ifdef F77_DUMMY_MAIN
6718+ # ifdef __cplusplus
6719+ extern "C"
6720+ # endif
6721+ int F77_DUMMY_MAIN() { return 1; }
6722+ #endif
6723+ int
6724+ main ()
6725+ {
6726+ com_err ();
6727+ ;
6728+ return 0;
6729+ }
6730+ _ACEOF
6731+ rm -f conftest.$ac_objext conftest$ac_exeext
6732+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6733+ (eval $ac_link) 2>&5
6734+ ac_status=$?
6735+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736+ (exit $ac_status); } &&
6737+ { ac_try='test -s conftest$ac_exeext'
6738+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739+ (eval $ac_try) 2>&5
6740+ ac_status=$?
6741+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742+ (exit $ac_status); }; }; then
6743+ ac_cv_search_com_err="none required"
6744+ else
6745+ echo "$as_me: failed program was:" >&5
6746+ cat conftest.$ac_ext >&5
6747+ fi
6748+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6749+ if test "$ac_cv_search_com_err" = no; then
6750+ for ac_lib in 'comerr32 -lkrb5_32'; do
6751+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6752+ cat >conftest.$ac_ext <<_ACEOF
6753+ #line $LINENO "configure"
6754+ #include "confdefs.h"
6755+
6756+ /* Override any gcc2 internal prototype to avoid an error. */
6757+ #ifdef __cplusplus
6758+ extern "C"
6759+ #endif
6760+ /* We use char because int might match the return type of a gcc2
6761+ builtin and then its argument prototype would still apply. */
6762+ char com_err ();
6763+ #ifdef F77_DUMMY_MAIN
6764+ # ifdef __cplusplus
6765+ extern "C"
6766+ # endif
6767+ int F77_DUMMY_MAIN() { return 1; }
6768+ #endif
6769+ int
6770+ main ()
6771+ {
6772+ com_err ();
6773+ ;
6774+ return 0;
6775+ }
6776+ _ACEOF
6777+ rm -f conftest.$ac_objext conftest$ac_exeext
6778+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6779+ (eval $ac_link) 2>&5
6780+ ac_status=$?
6781+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782+ (exit $ac_status); } &&
6783+ { ac_try='test -s conftest$ac_exeext'
6784+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785+ (eval $ac_try) 2>&5
6786+ ac_status=$?
6787+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788+ (exit $ac_status); }; }; then
6789+ ac_cv_search_com_err="-l$ac_lib"
6790+ break
6791+ else
6792+ echo "$as_me: failed program was:" >&5
6793+ cat conftest.$ac_ext >&5
6794+ fi
6795+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6796+ done
6797+ fi
6798+ LIBS=$ac_func_search_save_LIBS
6799+ fi
6800+ echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6801+ echo "${ECHO_T}$ac_cv_search_com_err" >&6
6802+ if test "$ac_cv_search_com_err" != no; then
6803+ test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6804+
6805+ else
6806+ { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6807+ echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6808+ { (exit 1); exit 1; }; }
6809+ fi
6810+
6811+ fi
66976812fi
66986813
66996814if test "$with_openssl" = yes ; then