diff -u -r thread-cvs/configure.in thread/configure.in
--- thread-cvs/configure.in	2007-11-19 16:47:02.307750000 +0200
+++ thread/configure.in	2007-11-20 09:04:58.630819800 +0200
@@ -19,7 +19,7 @@
 # so you can encode the package version directly into the source files.
 #-----------------------------------------------------------------------
 
-AC_INIT([thread], [2.6.5])
+AC_INIT([thread], [2.6.6])
 
 #--------------------------------------------------------------------
 # Call TEA_INIT as the first TEA_ macro to set up initial vars.
diff -u -r thread-cvs/tests/all.tcl thread/tests/all.tcl
--- thread-cvs/tests/all.tcl	2007-11-19 18:44:08.385875000 +0200
+++ thread/tests/all.tcl	2007-11-19 18:36:02.417125000 +0200
@@ -12,8 +12,8 @@
 package require tcltest
 namespace import -force ::tcltest::*
 
+configure {*}$argv -testdir [file dir [info script]]
 set ::tcltest::testSingleFile false
-set ::tcltest::testsDirectory [file dir [info script]]
 
 # We need to ensure that the testsDirectory is absolute
 ::tcltest::normalizePath ::tcltest::testsDirectory
@@ -38,6 +38,8 @@
 puts stdout "Tests began at [eval $timeCmd]"
 
 
+loadTestedCommands
+
 # These tests need to know which is the main thread
 
 # Require the accurate version for the tests so we don't pick up
diff -u -r thread-cvs/tests/thread.test thread/tests/thread.test
--- thread-cvs/tests/thread.test	2007-11-19 18:44:15.979625000 +0200
+++ thread/tests/thread.test	2007-11-19 18:35:12.745250000 +0200
@@ -22,7 +22,7 @@
 
 tcltest::testConstraint chanTransfer               \
     [expr {   $::tcl_platform(platform) == "unix"  \
-           || $::tcl_PatchLevel > "8.4.10"}]
+           || $::tcl_patchLevel > "8.4.10"}]
 
 set dummy [::tcltest::makeFile dummyForTransfer dummyForTransfer]
 set tcltest::mainThread [thread::id]
diff -u -r thread-cvs/win/vc/makefile.vc thread/win/vc/makefile.vc
--- thread-cvs/win/vc/makefile.vc	2007-11-19 18:44:17.557750000 +0200
+++ thread/win/vc/makefile.vc	2007-11-19 18:36:58.917125000 +0200
@@ -276,9 +276,6 @@
 
 !if $(DEBUG)
 ldebug	= -debug:full -debugtype:cv
-!if $(MSVCRT)
-ldebug = $(ldebug) -nodefaultlib:msvcrt
-!endif
 !else
 ldebug	= -release -opt:ref -opt:icf,3
 !endif
diff -u -r thread-cvs/win/vc/pkg.vc thread/win/vc/pkg.vc
--- thread-cvs/win/vc/pkg.vc	2007-05-09 13:50:42.000000000 +0200
+++ thread/win/vc/pkg.vc	2007-11-20 09:05:12.365282700 +0200
@@ -3,4 +3,4 @@
 
 PACKAGE_MAJOR	= 2
 PACKAGE_MINOR	= 6
-PACKAGE_VERSION	= "2.6.5"
+PACKAGE_VERSION	= "2.6.6"
