Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7920ae3b240158aba5753529742e56cb774c214d
Ticket: 1805763fffffffffffffffffffffffffffffffff
TclOO: 'make install' does not work on OS X
User & Date: das on 2007-10-02 05:35:15
Changes

  1. icomment:
    Logged In: YES 
    user_id=90580
    Originator: NO
    
    Andreas,
    
    no, TEA_PRIVATE_TCL_HEADERS has in fact nothing to do with the use of TCL_BUILD_LIB_SPEC et al, it only uses TCL_SRC_DIR from tclConfig.sh.
    
    TEA_LOAD_TCLCONFIG is what determines use of TCL_BUILD_*, depending on the presence of Makefile alongside tclConfig.sh, there is no connection to private header use by an extension.
    
    On OS X, since 2005-06-23, TEA_PRIVATE_TCL_HEADERS will use Headers and PrivateHeaders in Tcl.framework if present, so that building with private headers can be used even if the directory TCL_SRC_DIR does not exist (FR 947735), as in the case of an ActiveTcl install, c.f TEA_PRIVATE_TCL_HEADERS in tclconfig/tcl.m4:
    
        if test "`uname -s`" = "Darwin"; then
            # If Tcl was built as a framework, attempt to use
            # the framework's Headers and PrivateHeaders directories
            case ${TCL_DEFS} in
        *TCL_FRAMEWORK*)
            if test -d "${TCL_BIN_DIR}/Headers" -a -d "${TCL_BIN_DIR}/PrivateHeaders"; then
            TCL_INCLUDES="-I\"${TCL_BIN_DIR}/Headers\" -I\"${TCL_BIN_DIR}/PrivateHeaders\" ${TCL_INCLUDES}"; else
            TCL_INCLUDES="${TCL_INCLUDES} ${TCL_INCLUDE_SPEC} `echo "${TCL_INCLUDE_SPEC}" | sed -e 's/Headers/PrivateHeaders/'`"; fi
            ;;
    esac
        else
    
    
    Donal,
    
    IMO, you don't need to do anything, Gerald's install problem is due to a bug in ActiveTcl's tclConfig.sh.
    You could mention in your README that configuring with --libdir=/Library/Tcl on OS X works around this bug and allows building&installing tclOO against ActiveTcl on that platform.
    
    
    
  2. login: "das"
  3. mimetype: "text/plain"
  4. title changed to: "TclOO: 'make install' does not work on OS X"
  5. username: "das"