Tcl Source Code

Hex Artifact Content
Login

Artifact 2aa2740046afc7f1c51b32a5f0a11a329443273f:

Attachment "patch-tcl-m4-2" to ticket [671624ffff] added by taguchiv6 2003-01-22 12:36:55.
0000: 2d 2d 2d 20 74 63 6c 2e 6d 34 2e 6f 72 69 67 09  --- tcl.m4.orig.
0010: 57 65 64 20 4a 61 6e 20 32 32 20 31 33 3a 35 33  Wed Jan 22 13:53
0020: 3a 33 35 20 32 30 30 33 0a 2b 2b 2b 20 74 63 6c  :35 2003.+++ tcl
0030: 2e 6d 34 09 57 65 64 20 4a 61 6e 20 32 32 20 31  .m4.Wed Jan 22 1
0040: 34 3a 30 35 3a 33 33 20 32 30 30 33 0a 40 40 20  4:05:33 2003.@@ 
0050: 2d 31 32 33 30 2c 37 20 2b 31 32 33 30 2c 37 20  -1230,7 +1230,7 
0060: 40 40 0a 20 09 20 20 20 20 69 66 20 74 65 73 74  @@. .    if test
0070: 20 22 24 7b 54 43 4c 5f 54 48 52 45 41 44 53 7d   "${TCL_THREADS}
0080: 22 20 3d 20 22 31 22 20 3b 20 74 68 65 6e 0a 20  " = "1" ; then. 
0090: 09 09 23 20 54 68 65 20 2d 70 74 68 72 65 61 64  ..# The -pthread
00a0: 20 6e 65 65 64 73 20 74 6f 20 67 6f 20 69 6e 20   needs to go in 
00b0: 74 68 65 20 43 46 4c 41 47 53 2c 20 6e 6f 74 20  the CFLAGS, not 
00c0: 4c 49 42 53 0a 20 09 09 4c 49 42 53 3d 60 65 63  LIBS. ..LIBS=`ec
00d0: 68 6f 20 24 4c 49 42 53 20 7c 20 73 65 64 20 73  ho $LIBS | sed s
00e0: 2f 2d 70 74 68 72 65 61 64 2f 2f 60 0a 2d 09 09  /-pthread//`.-..
00f0: 45 58 54 52 41 5f 43 46 4c 41 47 53 3d 22 2d 70  EXTRA_CFLAGS="-p
0100: 74 68 72 65 61 64 22 0a 2b 09 09 45 58 54 52 41  thread".+..EXTRA
0110: 5f 43 46 4c 41 47 53 3d 22 2d 70 74 68 72 65 61  _CFLAGS="-pthrea
0120: 64 20 2d 44 48 41 56 45 5f 50 54 48 52 45 41 44  d -DHAVE_PTHREAD
0130: 5f 41 54 54 52 5f 53 45 54 53 54 41 43 4b 53 49  _ATTR_SETSTACKSI
0140: 5a 45 20 2d 44 54 43 4c 5f 54 48 52 45 41 44 5f  ZE -DTCL_THREAD_
0150: 53 54 41 43 4b 5f 4d 49 4e 3d 50 54 48 52 45 41  STACK_MIN=PTHREA
0160: 44 5f 53 54 41 43 4b 5f 4d 49 4e 2a 36 22 0a 20  D_STACK_MIN*6". 
0170: 09 20 20 20 20 09 4c 44 46 4c 41 47 53 3d 22 24  .    .LDFLAGS="$
0180: 4c 44 46 4c 41 47 53 20 2d 70 74 68 72 65 61 64  LDFLAGS -pthread
0190: 22 0a 20 09 20 20 20 20 66 69 0a 20 09 20 20 20  ". .    fi. .   
01a0: 20 63 61 73 65 20 24 73 79 73 74 65 6d 20 69 6e   case $system in
01b0: 0a                                               .