Skip to content

Commit 558e06b

Browse files
author
apn
committed
Call native tclsh from Makefile and some cleanup
1 parent 25cec57 commit 558e06b

File tree

3 files changed

+4
-31
lines changed

3 files changed

+4
-31
lines changed

Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ ${THREAD_ZIP_FILE}: ${ZIP_INSTALL_OBJS}
228228
@cp -a $(srcdir)/lib/* ${THREAD_VFS_PATH};
229229
@find ${THREAD_VFS_ROOT} -type d -empty -delete
230230
@echo "creating ${THREAD_ZIP_FILE} from ${THREAD_VFS_PATH}"
231-
@echo "zipfs mkzip ${THREAD_ZIP_FILE} ${THREAD_VFS_PATH} ${THREAD_VFS_PATH}" | $(TCLSH)
231+
@echo "zipfs mkzip ${THREAD_ZIP_FILE} ${THREAD_VFS_PATH} ${THREAD_VFS_PATH}" | $(TCLSH_NATIVE)
232232

233233

234234
#========================================================================

aclocal.m4

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -134,33 +134,6 @@ AC_DEFUN(TCLTHREAD_WITH_LMDB, [
134134
fi
135135
])
136136

137-
AC_DEFUN([XCHECK_NATIVE_TCLSH9], [
138-
AC_MSG_CHECKING([for tclsh9])
139-
AC_CHECK_PROGS([TCLSH_NATIVE], [tclsh9.0 tclsh90 tclsh], [no])
140-
if test "$TCLSH_NATIVE" = "no"; then
141-
AC_MSG_ERROR([A native tclsh9 is required to build this program])
142-
else
143-
# Check the version in case found program is tclsh
144-
TCLSH_NATIVE_VERSION=$(echo 'puts $tcl_version' | $TCLSH_NATIVE )
145-
case "$TCLSH_NATIVE_VERSION" in
146-
9.*)
147-
AC_MSG_RESULT([native Tcl 9 detected: $TCLSH_NATIVE_VERSION])
148-
;;
149-
*)
150-
AC_MSG_NOTICE([$TCLSH_NATIVE] version is $TCLSH_NATIVE_VERSION)
151-
if test -n "$TCLSH_PROG" -a "$ac_cv_cross" != "yes"; then
152-
AC_MSG_NOTICE([setting TCLSH_NATIVE to TCLSH_PROG ($TCLSH_PROG)])
153-
TCLSH_NATIVE="$TCLSH_PROG"
154-
else
155-
AC_MSG_ERROR([A native tclsh9 is required, but version $TCLSH_NATIVE_VERSION was found])
156-
exit 1
157-
fi
158-
;;
159-
esac
160-
fi
161-
162-
])
163-
164137
# FIND_TCLSH9_NATIVE
165138
# Locates a Tcl 9 tclsh and set TCLSH_NATIVE to its path if found.
166139
# Unsets TCLSH_NATIVE if not found.
@@ -171,7 +144,7 @@ AC_DEFUN([FIND_TCLSH9_NATIVE], [
171144
AS_UNSET([ac_cv_path_TCLSH_NATIVE])
172145
AC_PATH_PROG([TCLSH_NATIVE], [$f], [no])
173146
if test "$TCLSH_NATIVE" != "no"; then
174-
AC_MSG_CHECKING([tclsh for Tcl 9])
147+
AC_MSG_CHECKING([$TCLSH_NATIVE is Tcl 9])
175148
CHECK_TCLSH_VERSION([found], [$TCLSH_NATIVE], [9])
176149
AC_MSG_RESULT([$found])
177150
if test "$found" = "yes"; then

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9518,8 +9518,8 @@ fi
95189518

95199519

95209520
if test "$TCLSH_NATIVE" != "no"; then
9521-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking tclsh for Tcl 9" >&5
9522-
printf %s "checking tclsh for Tcl 9... " >&6; }
9521+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $TCLSH_NATIVE is Tcl 9" >&5
9522+
printf %s "checking $TCLSH_NATIVE is Tcl 9... " >&6; }
95239523

95249524
found=`echo "puts [package vsatisfies \\$tcl_version 9]" | $TCLSH_NATIVE`
95259525
if test "x$found" = "x1"; then

0 commit comments

Comments
 (0)