Index: configure.ac
===================================================================
RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/configure.ac,v
retrieving revision 1.223
diff -u -p -r1.223 configure.ac
--- configure.ac	28 Jun 2004 06:01:20 -0000	1.223
+++ configure.ac	6 Jul 2004 21:14:30 -0000
@@ -592,11 +592,17 @@ AC_ARG_WITH(zlib,
 			else
 				LDFLAGS="-L${withval}/lib ${LDFLAGS}"
 			fi
+			if test ! -z "$blibpath" ; then
+				blibpath="$blibpath:${withval}:/lib"
+			fi
 		else
 			if test -n "${need_dash_r}"; then
 				LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
 			else
 				LDFLAGS="-L${withval} ${LDFLAGS}"
+			fi
+			if test ! -z "$blibpath" ; then
+				blibpath="$blibpath:${withval}"
 			fi
 		fi
 		if test -d "$withval/include"; then
