Index: configure.ac
===================================================================
RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/configure.ac,v
retrieving revision 1.259
diff -u -p -r1.259 configure.ac
--- configure.ac	12 Apr 2005 02:00:18 -0000	1.259
+++ configure.ac	23 Apr 2005 03:55:52 -0000
@@ -2410,11 +2410,8 @@ AC_ARG_WITH(kerberos5,
 		AC_DEFINE(KRB5)
 		KRB5_MSG="yes"
 
-		AC_MSG_CHECKING(for krb5-config)
-		if test -x  $KRB5ROOT/bin/krb5-config ; then
-			KRB5CONF=$KRB5ROOT/bin/krb5-config
-			AC_MSG_RESULT($KRB5CONF)
-
+		AC_PATH_PROG(KRB5CONF, krb5-config, , [$KRB5ROOT/bin:$PATH])
+		if test -x "$KRB5CONF" ; then
 			AC_MSG_CHECKING(for gssapi support)
 			if $KRB5CONF | grep gssapi >/dev/null ; then
 				AC_MSG_RESULT(yes)
@@ -2435,7 +2432,6 @@ AC_ARG_WITH(kerberos5,
 				         AC_MSG_RESULT(no)
 			)
 		else
-			AC_MSG_RESULT(no)
 			CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
 			LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
 			AC_MSG_CHECKING(whether we are using Heimdal)
