summaryrefslogtreecommitdiff
path: root/lang/tcl/patches/patch-unix_tclConfig.sh.in
blob: e9e8effc7d2007f8bb06c7d9a34cc23671584fc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-unix_tclConfig.sh.in,v 1.2 2014/10/31 21:11:18 adam Exp $

--- unix/tclConfig.sh.in.orig	2014-08-26 15:23:08.000000000 +0000
+++ unix/tclConfig.sh.in
@@ -9,6 +9,8 @@
 #
 # The information in this file is specific to a single platform.
 
+if [ -z "${_TCL_NOTHREAD}" ]; then
+
 # Tcl's version number.
 TCL_VERSION='@TCL_VERSION@'
 TCL_MAJOR_VERSION='@TCL_MAJOR_VERSION@'
@@ -167,3 +169,9 @@ TCL_STUB_LIB_PATH='@TCL_STUB_LIB_PATH@'
 
 # Flag, 1: we built Tcl with threads enabled, 0 we didn't
 TCL_THREADS=@TCL_THREADS@
+
+else
+
+. @prefix@/lib/tclConfig-nothread.sh
+
+fi