Clone
Gustaf Neumann <neumann@wu-wien.ac.at>
committed
on 16 Mar 19
add regression test for testing the behavior of :upvar from toplevel tclsh with and without filters
This test covers implicitly also the beh… Show more
add regression test for testing the behavior of :upvar from toplevel tclsh with and without filters

This test covers implicitly also the behavior of [current callinglevel].

Show less

2.3 + 14 more
configure.ac (+11 -11)
150 150 fi
151 151
152 152 # set the default aol_prefix
153 153 aol_prefix="/usr/local/aolserver"
154 154 # if we have under ${prefix} either modules/tcl/init.tcl (aolserver
155 155 # style) or modules/tcl/init.tcl (naviserver style), then use
156 156 # ${prefix} as aol_prefix (path for the installation of
157 157 # aolserver/naviserver specific tcl files).
158 158 if test -f "${prefix}/modules/tcl/init.tcl" ; then
159 159    aol_prefix="${prefix}"
160 160 else
161 161    if test -f "${prefix}/tcl/init.tcl" ; then
162 162       aol_prefix="${prefix}"
163 163    fi
164 164 fi
165 165 AC_SUBST([aol_prefix])
166 166
167 167 #--------------------------------------------------------------------
168 168 # check for tclCompile.h (needed, when compiled without full source)
169 169 if test -f "$TCL_SRC_DIR/generic/tclCompile.h"; then
170      AC_DEFINE([HAVE_TCL_COMPILE_H], 1, [Do we have tclCompile.h installed?])
  170    AC_DEFINE([HAVE_TCL_COMPILE_H], [1], [Do we have tclCompile.h installed?])
171 171 fi
172 172
173 173 if test "$enable_assertions" = yes; then
174      AC_DEFINE([NSF_WITH_ASSERTIONS], 1, [Are we building with assertions support?])
  174    AC_DEFINE([NSF_WITH_ASSERTIONS], [1], [Are we building with assertions support?])
175 175 fi
176 176
177 177 if test "$enable_profile" = yes; then
178      AC_DEFINE([NSF_PROFILE], 1, [Are we building with profile support?])
  178    AC_DEFINE([NSF_PROFILE], [1], [Are we building with profile support?])
179 179 fi
180 180
181 181 if test "$enable_development" = yes; then
182      AC_DEFINE([NSF_DEVELOPMENT], 1, [Are we building with development support?])
  182    AC_DEFINE([NSF_DEVELOPMENT], [1], [Are we building with development support?])
183 183 fi
184 184
185 185 if test "$enable_memcount" = yes; then
186      AC_DEFINE([NSF_MEM_COUNT], 1, [Are we building with memcount support?])
  186    AC_DEFINE([NSF_MEM_COUNT], [1], [Are we building with memcount support?])
187 187 fi
188 188 if test "$enable_memcount" = trace; then
189      AC_DEFINE([NSF_MEM_TRACE], 1, [Are we building with memcount tracing support?])
  189    AC_DEFINE([NSF_MEM_TRACE], [1], [Are we building with memcount tracing support?])
190 190 fi
191 191
192 192 if test "$enable_assemble" = yes; then
193      AC_DEFINE([NSF_ASSEMBLE], 1, [Are we building with assembly support?])
  193    AC_DEFINE([NSF_ASSEMBLE], [1], [Are we building with assembly support?])
194 194 fi
195 195 if test "$enable_assemble" = call; then
196      AC_DEFINE([NSF_ASSEMBLE_CT], 1, [Are we building with assembly call threading support?])
  196    AC_DEFINE([NSF_ASSEMBLE_CT], [1], [Are we building with assembly call threading support?])
197 197 fi
198 198 if test "$enable_assemble" = call; then
199      AC_DEFINE([NSF_ASSEMBLE_LT], 1, [Are we building with assembly label threading support?])
  199    AC_DEFINE([NSF_ASSEMBLE_LT], [1], [Are we building with assembly label threading support?])
200 200 fi
201 201
202 202 DTRACE_OBJ=
203 203 if test "$with_dtrace" = yes; then
204      AC_DEFINE([NSF_DTRACE], 1, [Are we building with DTrace support?])
  204    AC_DEFINE([NSF_DTRACE], [1], [Are we building with DTrace support?])
205 205    # Under Mac OS X, we need no nsfDTrace.o
206 206    if test "`uname -s`" != "Darwin" ; then
207 207       DTRACE_OBJ=nsfDTrace.o
208 208    fi
209 209 fi
210 210 AC_SUBST([DTRACE_OBJ])
211 211
212 212 #-----------------------------------------------------------------------
213 213 # __CHANGE__
214 214 # Specify the C source files to compile in TEA_ADD_SOURCES,
215 215 # public headers that need to be installed in TEA_ADD_HEADERS,
216 216 # stub library C source files to compile in TEA_ADD_STUB_SOURCES,
217 217 # and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
218 218 # This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
219 219 # and PKG_TCL_SOURCES.
220 220 #-----------------------------------------------------------------------
221 221
222 222 TEA_ADD_SOURCES([nsf.c nsfError.c nsfObjectData.c nsfProfile.c \
223 223         nsfDebug.c nsfUtil.c nsfObj.c nsfPointer.c nsfEnumerationType.c \
224 224         nsfCmdDefinitions.c nsfShadow.c nsfCompile.c aolstub.c nsfStubInit.c])
 
312 312 eval "SHARED_LIB_SUFFIX=${SHARED_LIB_SUFFIX}"
313 313 eval "UNSHARED_LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}"
314 314
315 315 #eval "SHARED_LIB_SUFFIX=${SHARED_LIB_SUFFIX}"
316 316 #eval "UNSHARED_LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}"
317 317
318 318 #--------------------------------------------------------------------
319 319 # Set the default compiler switches based on the --enable-symbols
320 320 # option.
321 321 #--------------------------------------------------------------------
322 322
323 323 TEA_ENABLE_SYMBOLS
324 324
325 325 #--------------------------------------------------------------------
326 326 # Everyone should be linking against the Tcl stub library.  If you
327 327 # can't for some reason, remove this definition.  If you aren't using
328 328 # stubs, you also need to modify the SHLIB_LD_LIBS setting below to
329 329 # link against the non-stubbed Tcl library.
330 330 #--------------------------------------------------------------------
331 331
332   AC_DEFINE([USE_TCL_STUBS], 1, [Use Tcl stubs])
  332 AC_DEFINE([USE_TCL_STUBS], [1], [Use Tcl stubs])
333 333
334 334 #--------------------------------------------------------------------
335 335 # This macro generates a line to use when building a library.  It
336 336 # depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
337 337 # and TEA_LOAD_TCLCONFIG macros above.
338 338 #--------------------------------------------------------------------
339 339
340 340 TEA_MAKE_LIB
341 341
342 342 #--------------------------------------------------------------------
343 343 # Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl
344 344 # file during the install process.  Don't run the TCLSH_PROG through
345 345 # ${CYGPATH} because it's being used directly by make.
346 346 # Require that we use a tclsh shell version 8.2 or later since earlier
347 347 # versions have bugs in the pkg_mkIndex routine.
348 348 #--------------------------------------------------------------------
349 349
350 350 TEA_PROG_TCLSH
351 351
352 352 # make this available, for such as nsfConfig.sh