--- tcl.m4.orig	Wed Jan 22 13:53:35 2003
+++ tcl.m4	Wed Jan 22 14:05:33 2003
@@ -1230,7 +1230,7 @@
 	    if test "${TCL_THREADS}" = "1" ; then
 		# The -pthread needs to go in the CFLAGS, not LIBS
 		LIBS=`echo $LIBS | sed s/-pthread//`
-		EXTRA_CFLAGS="-pthread"
+		EXTRA_CFLAGS="-pthread -DHAVE_PTHREAD_ATTR_SETSTACKSIZE -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*6"
 	    	LDFLAGS="$LDFLAGS -pthread"
 	    fi
 	    case $system in
