summaryrefslogtreecommitdiffstats
path: root/unix/Makefile.in
diff options
context:
space:
mode:
authormdejong <mdejong>2005-08-23 18:25:33 (GMT)
committermdejong <mdejong>2005-08-23 18:25:33 (GMT)
commit7c9e8ad4d37025b7a45e2c9cdb46b5a65a5ef4f4 (patch)
treec59af7d24b600d7bcd3d9bbfb76f2d99b309fdab /unix/Makefile.in
parent6c3967704d759e1cf47471002f6e0a8d574f22e5 (diff)
downloadtk-7c9e8ad4d37025b7a45e2c9cdb46b5a65a5ef4f4.zip
tk-7c9e8ad4d37025b7a45e2c9cdb46b5a65a5ef4f4.tar.gz
tk-7c9e8ad4d37025b7a45e2c9cdb46b5a65a5ef4f4.tar.bz2
* unix/Makefile.in: Subst BUILD_TCLSH and TCL_EXE.
* unix/configure: Regen. * unix/configure.in: Update minimum autoconf version to 2.59. Invoke SC_PROG_TCLSH and SC_BUILD_TCLSH. * unix/tcl.m4 (SC_PROG_TCLSH, SC_BUILD_TCLSH): * win/Makefile.in: Subst BUILD_TCLSH and TCL_EXE. * win/configure: Regen. * win/configure.in: Update minimum autoconf version to 2.59. Invoke SC_BUILD_TCLSH. * win/tcl.m4 (SC_PROG_TCLSH, SC_BUILD_TCLSH): Split confused search for tclsh on PATH and build and install locations into two macros. SC_PROG_TCLSH searches just the PATH. SC_BUILD_TCLSH determines the name of the tclsh executable in the Tcl build directory. [Tcl bug 1160114] [Tcl patch 1244153]
Diffstat (limited to 'unix/Makefile.in')
-rw-r--r--unix/Makefile.in35
1 files changed, 20 insertions, 15 deletions
diff --git a/unix/Makefile.in b/unix/Makefile.in
index 18cb549..1348949 100644
--- a/unix/Makefile.in
+++ b/unix/Makefile.in
@@ -5,7 +5,7 @@
# "autoconf" program (constructs like "@foo@" will get replaced in the
# actual Makefile.
#
-# RCS: @(#) $Id: Makefile.in,v 1.106 2005/07/05 20:56:50 dgp Exp $
+# RCS: @(#) $Id: Makefile.in,v 1.107 2005/08/23 18:25:34 mdejong Exp $
# Current Tk version; used in various names.
@@ -187,6 +187,21 @@ NO_DEPRECATED_FLAGS = -DTCL_NO_DEPRECATED
# determine which shell to use for executing commands:
SHELL = /bin/sh
+# BUILD_TCLSH is the fully qualified path name of the tclsh shell
+# in the Tcl build directory. Test that need to be run in the
+# version of tclsh that we are building against should use this
+# path. Targets that need an installed tclsh should not depend
+# on this variable.
+
+BUILD_TCLSH = @BUILD_TCLSH@
+
+# TCL_EXE is the name of a tclsh executable that is available *BEFORE*
+# running make for the first time. Certain build targets (make genstubs)
+# need it to be available on the PATH. This executable should *NOT* be
+# required just to do a normal build although it can be required to run
+# make dist. This variable is set to "" if no tclsh is available.
+TCL_EXE = @TCLSH_PROG@
+
# Tk used to let the configure script choose which program to use
# for installing, but there are just too many different versions of
# "install" around; better to use the install-sh script that comes
@@ -200,13 +215,6 @@ INSTALL_PROGRAM = ${INSTALL}
INSTALL_LIBRARY = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
-# TCL_EXE is the name of a tclsh executable that is available *BEFORE*
-# running make for the first time. Certain build targets (make genstubs)
-# need it to be available on the PATH. This executable should *NOT* be
-# required just to do a normal build although it can be required to run
-# make dist.
-TCL_EXE = tclsh
-
# The symbol below provides support for dynamic loading and shared
# libraries. See configure.in for a description of what it means.
# The value of the symbol is normally set by the configure script.
@@ -1473,13 +1481,10 @@ html-tk:
@EXTRA_BUILD_HTML@
BUILD_HTML = \
- @if test -f $(TCL_BIN_DIR)/tclsh; then \
- @LD_LIBRARY_PATH_VAR@=$(TCL_BIN_DIR):$${@LD_LIBRARY_PATH_VAR@}; export @LD_LIBRARY_PATH_VAR@; \
- TCL_LIBRARY=@TCL_SRC_DIR@/library; export TCL_LIBRARY; \
- TCLSH="$(TCL_BIN_DIR)/tclsh"; else \
- TCLSH="$(TCL_EXE)"; fi ;\
- $${TCLSH} $(TOOL_DIR)/tcltk-man2html.tcl --htmldir=$(HTML_INSTALL_DIR) \
- --srcdir=$(TOP_DIR)/..
+ @if test -f "$(TCL_EXE)"; then \
+ $(TCL_EXE) $(TOOL_DIR)/tcltk-man2html.tcl --htmldir=$(HTML_INSTALL_DIR) \
+ --srcdir=$(TOP_DIR)/.. ; \
+ fi
#
# Targets to build Solaris package of the distribution for the current