summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authormo <mo>2000-07-19 01:47:05 (GMT)
committermo <mo>2000-07-19 01:47:05 (GMT)
commitebc402d4959c79f772561106874e93bb7d00f58e (patch)
tree82ed37c8d60b310cb5ff1c1004d4f91a3834b713 /unix/tcl.m4
parent7b1328b5117d3db6195f211eea6984bb62284cae (diff)
downloadtcl-ebc402d4959c79f772561106874e93bb7d00f58e.zip
tcl-ebc402d4959c79f772561106874e93bb7d00f58e.tar.gz
tcl-ebc402d4959c79f772561106874e93bb7d00f58e.tar.bz2
Doh! revert piece of last commit that did not belong
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m433
1 files changed, 1 insertions, 32 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index e33737a..d00d058 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -223,27 +223,6 @@ AC_DEFUN(SC_LOAD_TCLCONFIG, [
AC_SUBST(TCL_BIN_DIR)
AC_SUBST(TCL_SRC_DIR)
AC_SUBST(TCL_LIB_FILE)
-
-
- # We need to find out if Tcl was compiled with thread
- # support. We can not build an extension with thread
- # support if Tcl is not built with thread support.
-
- AC_MSG_CHECKING([to see if Tcl was compiled with thread support])
-
- if test "$TCL_THREADS" = "1"; then
- # Define the following option so that they will
- # be passed in the CFLAGS variable. We do not
- # need to worry about THREADS_LIBS because that
- # gets added to the LIBS variable.
-
- AC_MSG_RESULT([yes])
- AC_DEFINE(TCL_THREADS)
- AC_DEFINE(_REENTRANT)
- AC_DEFINE(_THREAD_SAFE)
- else
- AC_MSG_RESULT([no])
- fi
])
#------------------------------------------------------------------------
@@ -354,10 +333,7 @@ AC_DEFUN(SC_ENABLE_SHARED, [
#------------------------------------------------------------------------
# SC_ENABLE_THREADS --
#
-# Specify if thread support should be enabled for Tcl. This
-# macro can not be called from an extension's configure.in
-# because it is not possible to build an extension with thread
-# support if Tcl itself is not compiled with thread support.
+# Specify if thread support should be enabled
#
# Arguments:
# none
@@ -382,13 +358,6 @@ AC_DEFUN(SC_ENABLE_THREADS, [
AC_ARG_ENABLE(threads, [ --enable-threads build with threads],
[tcl_ok=$enableval], [tcl_ok=no])
- # Make sure this macro is not getting include in an extensions
- # configure.in by checking for the tcl.h include file.
-
- if test ! -f ${TCL_SRC_DIR}/generic/tcl.h ; then
- AC_MSG_ERROR([The --enable-threads macro can only be used in Tcl's configure.in])
- fi
-
if test "$tcl_ok" = "yes"; then
AC_MSG_RESULT(yes)
TCL_THREADS=1