Tk Source Code

View Ticket
Login
Ticket UUID: 777203
Title: define TK_INCLUDE_SPEC
Type: Bug Version: None
Submitter: dgp Created on: 2003-07-24 21:13:40
Subsystem: 84. Unix Build Assigned To: das
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2007-09-11 12:18:02
Resolution: Fixed Closed By: das
    Closed on: 2007-09-11 05:18:02
Description:
In Tcl's tclConfig.sh.in file we find:

# String to pass to the compiler so that an extension can
# find installed Tcl headers.
TCL_INCLUDE_SPEC='@TCL_INCLUDE_SPEC@'

This definition is helpful for extensions of Tcl
to be able to find tcl.h and other headers.

It would be similarly helpful to define an
analogous TK_INCLUDE_SPEC in the
tkConfig.sh.in file, so that extensions of
Tk can also reliably find tk.h and other headers.

The need is most pressing on Mac OS X where
the custom is apparently not to install these
headers in $TK_PREFIX/include but instead
to place them in a "Framework" area.  But it
would be a handy thing to define on all
platforms.
User Comments: das added on 2007-09-11 12:18:02:
Logged In: YES 
user_id=90580
Originator: NO

backport committed to core-8-4-branch

dgp added on 2007-09-06 05:11:45:
Logged In: YES 
user_id=80530
Originator: YES

status?

jenglish added on 2007-08-08 09:16:34:
Logged In: YES 
user_id=68433
Originator: NO

This should be backported to 8.4 as well (this just came up on the Debian tcl mailing list).

das added on 2003-09-25 12:40:41:
Logged In: YES 
user_id=90580

committed to HEAD

das added on 2003-08-25 14:43:03:

File Added - 59696: tk_include_spec.diff

das added on 2003-08-25 14:43:02:
Logged In: YES 
user_id=90580

I agree that this is just as necessary for Tk as for Tcl, indeed 
this RFE is really just a parallel to tcl bug 421835:
http://sourceforge.net/tracker/
index.php?func=detail&aid=421835&group_id=10894&atid=11089
4

the cvs log re. TCL_INCLUDE_SPEC says

   Thu Nov  8 03:07:21 2001 UTC by mdejong 

   Define TCL_INCLUDE_SPEC in tclConfig.sh. It should be
   included by extensions that need to find Tcl include
   headers in the install location. The user can override
   the include install dir with --includedir so we need
   to record this information for extensions. [Tcl bug 421835] 

The attached very simple patch implements this by imitating 
what's done in tcl.

Jeff could you review/approve for checkin?

Attachments: