$OpenBSD: patch-configure,v 1.9 2010/04/02 20:07:11 sthen Exp $
--- configure.orig	Mon Apr 13 12:09:25 2009
+++ configure	Thu Apr 16 23:11:23 2009
@@ -12259,7 +12259,7 @@ USE_AMALGAMATION=1
 # if not, then we fall back to plain tclsh.
 # TODO: try other versions before falling back?
 #
-for ac_prog in tclsh8.4 tclsh
+for ac_prog in tclsh8.5 tclsh8.4 tclsh
 do
   # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
@@ -12498,8 +12498,8 @@ for ac_lib in '' pthread; do
   if test -z "$ac_lib"; then
     ac_res="none required"
   else
-    ac_res=-l$ac_lib
-    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
+    ac_res=-$ac_lib
+    LIBS="-$ac_lib  $ac_func_search_save_LIBS"
   fi
   rm -f conftest.$ac_objext conftest$ac_exeext
 if { (ac_try="$ac_link"
@@ -12920,7 +12920,7 @@ $as_echo "file not found" >&6; }
 
     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
-    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
+    eval "TCL_STUB_LIB_SPEC=\"-L${TCL_PACKAGE_PATH} ${TCL_STUB_LIB_FLAG}_pic\""
 
 
 
