$NetBSD: patch-aa,v 1.6 2002/03/24 19:39:09 martti Exp $ --- src/auto/configure.orig Mon Feb 4 19:21:35 2002 +++ src/auto/configure Thu Mar 7 08:52:13 2002 @@ -2236,6 +2236,7 @@ # Look for the header file in a standard set of common directories. # Check X11 before X11Rn because it is often a symlink to the current release. for ac_dir in \ + ${BUILDLINK_X11_DIR}/include \ /usr/X11/include \ /usr/X11R6/include \ /usr/X11R5/include \ @@ -2311,6 +2312,7 @@ # First see if replacing the include by lib works. # Check X11 before X11Rn because it is often a symlink to the current release. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ + ${BUILDLINK_X11_DIR}/lib \ /usr/X11/lib \ /usr/X11R6/lib \ /usr/X11R5/lib \