Skip to content
Tcl Source Code View Ticket
Login

View Ticket

reunite old comment with relevant code in unix/configure.ac

Opena63a35d5ae493cd968f77b16947b1188572cc5c2Created 5 years agoUpdated 5 years ago
Descriptionwiki2022-04-16 18:26:11
A comment in unix/configure.ac seems to have become separated over time from the relevant code:
# Note:  in the following variable, it's important to use the absolute
# path name of the Tcl directory rather than "..":  this is because
# AIX remembers this path and will attempt to use it at run-time to look
# up the Tcl library.

if test "`uname -s`" = "Darwin" ; then …

Here is the comment as it first appeared in unix/configure.in for Tcl 7.5 (I am not certain, but would guess that it is explaining the -L`pwd` usage for TCL_BUILD_LIB_SPEC; I did not locate earlier versions or any discussion more specific than remarks in the changes file from March 1996 about getting configuration working on AIX):

# Note:  in the following variable, it's important to use the absolute
# path name of the Tcl directory rather than "..":  this is because
# AIX remembers this path and will attempt to use it at run-time to look
# up the Tcl library.

if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then TCL_BUILD_LIB_SPEC="-L`pwd` -ltcl${VERSION}" TCL_LIB_SPEC="-L${exec_prefix}/lib -ltcl${VERSION}" else TCL_BUILD_LIB_SPEC="-L`pwd` -ltcl`echo ${VERSION} | tr -d .`" TCL_LIB_SPEC="-L${exec_prefix}/lib -ltcl`echo ${VERSION} | tr -d .`" fi

Is this comment still relevant and should be relocated/rephrased (so as not to get lost again)?

Log in (anonymous is fine) to add a comment.