$NetBSD$

--- configure.orig	Thu Apr 25 09:37:03 2002
+++ configure
@@ -7092,7 +7092,7 @@
 #define USE_GL 1
 _ACEOF
 
-    XLOCKLIBS="${XLOCKLIBS} -lMesaGL -lMesaGLU"
+    XLOCKLIBS="${XLOCKLIBS} -lGL -lGLU"
     test "x$mesa_includes" = xNONE && mesa_includes=$ac_mesa_includes
     test "x$mesa_libraries" = xNONE && mesa_libraries=$ac_mesa_libraries
     case "${canonical}" in
@@ -10494,8 +10494,8 @@
 #define HAVE_KRB5 1
 _ACEOF
 
-  XLOCKINC="${XLOCKINC} -I/usr/local/include"
-  XLOCKLIBS="${XLOCKLIBS} -L/usr/local/lib -lkrb5 -lcrypto -lcom_err"
+  XLOCKINC="${XLOCKINC} -I/usr/include/krb5"
+  XLOCKLIBS="${XLOCKLIBS} -lkrb5 -lasn1 -lcrypto -lcom_err -lroken"
 fi
 
 # Check whether --enable-dce_passwd or --disable-dce_passwd was given.
