@@ -1468,7 +1468,7 @@ Optional Features:
14681468 --enable-perlinterp=OPTS Include Perl interpreter. default=no OPTS=no/yes/dynamic
14691469 --enable-pythoninterp=OPTS Include Python interpreter. default=no OPTS=no/yes/dynamic
14701470 --enable-python3interp=OPTS Include Python3 interpreter. default=no OPTS=no/yes/dynamic
1471- --enable-tclinterp Include Tcl interpreter.
1471+ --enable-tclinterp=OPTS Include Tcl interpreter. default=no OPTS=no/yes/dynamic
14721472 --enable-rubyinterp=OPTS Include Ruby interpreter. default=no OPTS=no/yes/dynamic
14731473 --enable-cscope Include cscope interface.
14741474 --enable-workshop Include Sun Visual Workshop support.
66166616{ $as_echo " $as_me :${as_lineno-$LINENO } : result: $enable_tclinterp " >&5
66176617$as_echo " $enable_tclinterp " >&6 ; }
66186618
6619- if test " $enable_tclinterp " = " yes" ; then
6619+ if test " $enable_tclinterp " = " yes" -o " $enable_tclinterp " = " dynamic " ; then
66206620
66216621 { $as_echo " $as_me :${as_lineno-$LINENO } : checking --with-tclsh argument" >&5
66226622$as_echo_n " checking --with-tclsh argument... " >&6 ; }
@@ -6852,6 +6852,7 @@ $as_echo_n "checking Tcl version... " >&6; }
68526852 { $as_echo " $as_me :${as_lineno-$LINENO } : result: $tclver - OK" >&5
68536853$as_echo " $tclver - OK" >&6 ; };
68546854 tclloc=` echo ' set l [info library];set i [string last lib $l];incr i -2;puts [string range $l 0 $i]' | $vi_cv_path_tcl -`
6855+ tcldll=` echo ' puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -`
68556856
68566857 { $as_echo " $as_me :${as_lineno-$LINENO } : checking for location of Tcl include" >&5
68576858$as_echo_n " checking for location of Tcl include... " >&6 ; }
@@ -6888,7 +6889,11 @@ $as_echo_n "checking for location of tclConfig.sh script... " >&6; }
68886889 { $as_echo " $as_me :${as_lineno-$LINENO } : result: $try /tclConfig.sh" >&5
68896890$as_echo " $try /tclConfig.sh" >&6 ; }
68906891 . " $try /tclConfig.sh"
6891- TCL_LIBS=` eval echo " $TCL_LIB_SPEC $TCL_LIBS " `
6892+ if test " $enable_tclinterp " = " dynamic" ; then
6893+ TCL_LIBS=` eval echo " $TCL_STUB_LIB_SPEC $TCL_LIBS " `
6894+ else
6895+ TCL_LIBS=` eval echo " $TCL_LIB_SPEC $TCL_LIBS " `
6896+ fi
68926897 TCL_DEFS=` echo $TCL_DEFS | sed -e ' s/\\\\ /\\\\X/g' | tr ' ' ' \012' | sed -e ' /^[^-]/d' -e ' /^-[^D]/d' -e ' /-D[^_]/d' -e ' s/-D_/ -D_/' | tr ' \012' ' ' | sed -e ' s/\\\\X/\\\\ /g' `
68936898 break
68946899 fi
@@ -6937,6 +6942,13 @@ $as_echo "<not found>" >&6; }
69376942$as_echo " too old; need Tcl version 8.0 or later" >&6 ; }
69386943 fi
69396944 fi
6945+ if test " $enable_tclinterp " = " dynamic" ; then
6946+ if test " X$TCL_SRC " ! = " X" -a " X$tcldll " ! = " X" ; then
6947+ $as_echo " #define DYNAMIC_TCL 1" >> confdefs.h
6948+
6949+ TCL_CFLAGS=" -DDYNAMIC_TCL_DLL=\\\" $tcldll \\\" -DDYNAMIC_TCL_VER=\\\" $tclver \\\" $TCL_CFLAGS "
6950+ fi
6951+ fi
69406952 if test " $fail_if_missing " = " yes" -a -z " $TCL_SRC " ; then
69416953 as_fn_error $? " could not configure Tcl" " $LINENO " 5
69426954 fi
0 commit comments