summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authormdejong <mdejong>2003-04-03 22:12:49 (GMT)
committermdejong <mdejong>2003-04-03 22:12:49 (GMT)
commit51e78b95916a045956c21b2dbf15f62094af102f (patch)
treeb5f1f8058b62429151e77d91392159735f7276cf /unix/tcl.m4
parent98270c527f79d108bd22e4a8fab70496ff169902 (diff)
downloadtcl-51e78b95916a045956c21b2dbf15f62094af102f.zip
tcl-51e78b95916a045956c21b2dbf15f62094af102f.tar.gz
tcl-51e78b95916a045956c21b2dbf15f62094af102f.tar.bz2
* unix/Makefile.in: Don't subst MATH_LIBS,
LIBS, and DL_LIBS separately. Instead, just subst TCL_LIBS since it includes the others. * unix/configure: Regen. * unix/tcl.m4 (SC_CONFIG_CFLAGS, SC_TCL_LINK_LIBS): Set and subst TCL_LIBS in SC_CONFIG_CFLAGS instead of SC_TCL_LINK_LIBS. Don't subst MATH_LIBS since it is now covered by TCL_LIBS. * unix/tclConfig.sh.in: Use TCL_LIBS instead of DL_LIBS, LIBS, and MATH_LIBS. * unix/dltest/Makefile.in: Ditto.
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m426
1 files changed, 11 insertions, 15 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 10f9a06..448562a 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -705,6 +705,9 @@ AC_DEFUN(SC_CONFIG_MANPAGES, [
# The name of the built export / import file which
# should be used to link to the Tcl shared library.
# Empty if Tcl is unshared.
+# TCL_LIBS -
+# Libs to use when linking Tcl shell or some other
+# shell that includes Tcl libs.
# CFLAGS_DEBUG -
# Flags used when running the compiler in debug mode
# CFLAGS_OPTIMIZE -
@@ -1739,7 +1742,13 @@ dnl esac
INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))'
fi
+ # Define TCL_LIBS now that we know what DL_LIBS is.
+ TCL_LIBS="${DL_LIBS} ${LIBS} ${MATH_LIBS}"
+ AC_SUBST(TCL_LIBS)
+ # FIXME: This subst was left in only because the TCL_DL_LIBS
+ # entry in tclConfig.sh uses it. It is not clear why someone
+ # would use TCL_DL_LIBS instead of TCL_LIBS.
AC_SUBST(DL_LIBS)
AC_SUBST(DL_OBJS)
@@ -2274,19 +2283,13 @@ AC_DEFUN(SC_BUGGY_STRTOD, [
# -lnsl) are dealt with here.
#
# Arguments:
-# Requires the following vars to be set in the Makefile:
-# DL_LIBS
-# LIBS
-# MATH_LIBS
+# None.
#
# Results:
#
-# Subst's the following var:
-# TCL_LIBS
-# MATH_LIBS
-#
# Might append to the following vars:
# LIBS
+# MATH_LIBS
#
# Might define the following vars:
# HAVE_NET_ERRNO_H
@@ -2343,13 +2346,6 @@ AC_DEFUN(SC_TCL_LINK_LIBS, [
fi
AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(nsl, gethostbyname,
[LIBS="$LIBS -lnsl"])])
-
- # Don't perform the eval of the libraries here because DL_LIBS
- # won't be set until we call SC_CONFIG_CFLAGS
-
- TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}'
- AC_SUBST(TCL_LIBS)
- AC_SUBST(MATH_LIBS)
])
#--------------------------------------------------------------------