summaryrefslogtreecommitdiffstats
path: root/win/aclocal.m4
diff options
context:
space:
mode:
authorwart <wart>1999-12-07 01:03:19 (GMT)
committerwart <wart>1999-12-07 01:03:19 (GMT)
commitfc5ee3e128c6725dc4b68210bfa5b5904e558c25 (patch)
tree1c7472aad9a2cfc7fd10a65eb6d0e842f427d371 /win/aclocal.m4
parent60c81a7684be2edbc5f8f8597580cf7ce7a89667 (diff)
downloadtk-fc5ee3e128c6725dc4b68210bfa5b5904e558c25.zip
tk-fc5ee3e128c6725dc4b68210bfa5b5904e558c25.tar.gz
tk-fc5ee3e128c6725dc4b68210bfa5b5904e558c25.tar.bz2
Added support for building Windows winhelp files.
Diffstat (limited to 'win/aclocal.m4')
-rw-r--r--win/aclocal.m444
1 files changed, 44 insertions, 0 deletions
diff --git a/win/aclocal.m4 b/win/aclocal.m4
index 9fad38c..012107a 100644
--- a/win/aclocal.m4
+++ b/win/aclocal.m4
@@ -442,3 +442,47 @@ AC_DEFUN(SC_WITH_TCL, [
AC_SUBST(TCL_BIN_DIR)
])
+#------------------------------------------------------------------------
+# SC_PROG_TCLSH
+# Locate a tclsh shell in the following directories:
+# ${exec_prefix}/bin
+# ${prefix}/bin
+# ${TCL_BIN_DIR}
+# ${TCL_BIN_DIR}/../bin
+# ${PATH}
+#
+# Arguments
+# none
+#
+# Results
+# Subst's the following values:
+# TCLSH_PROG
+#------------------------------------------------------------------------
+
+AC_DEFUN(SC_PROG_TCLSH, [
+ AC_MSG_CHECKING([for tclsh])
+
+ AC_CACHE_VAL(ac_cv_path_tclsh, [
+ search_path=`echo ${exec_prefix}/bin:${prefix}/bin:${TCL_BIN_DIR}:${TCL_BIN_DIR}/../bin:${PATH} | sed -e 's/:/ /g'`
+ for dir in $search_path ; do
+ for j in `ls -r $dir/tclsh[[8-9]]* 2> /dev/null` \
+ `ls -r $dir/tclsh* 2> /dev/null` ; do
+ if test x"$ac_cv_path_tclsh" = x ; then
+ if test -f "$j" ; then
+ ac_cv_path_tclsh=$j
+ break
+ fi
+ fi
+ done
+ done
+ ])
+
+ if test -f "$ac_cv_path_tclsh" ; then
+ TCLSH_PROG=$ac_cv_path_tclsh
+ AC_MSG_RESULT($TCLSH_PROG)
+ else
+ AC_MSG_ERROR(No tclsh found in PATH: $search_path)
+ fi
+ AC_SUBST(TCLSH_PROG)
+])
+