On Jul 23, 2008, at 12:28 PM, Glynn Clements wrote:

William Kyngesburye wrote:

Ideally, I think GRASS needs to detect a framework TclTk Aqua
and use -framework Tcl -framework Tk instead of -ltcl -ltk to link
tcltk, then the symlinks and -L flag would not be necessary.

Presumably this would be handled similarly to OpenGL, which already
has suitable configure checks.

Hmm, it IS related. Though it's a little more complicated. OSX 10.4+ has a true TclTk 8.4 Aqua, but 10.3- only appears to be, but is really X11 (and it's the old v8.3). So we can't make any assumptions about the header locations.

To make it simple for the user, tests for /Library/Frameworks/ Tcl.framework then /System/Library/Frameworks/Tcl.framework[/Versions/ 8.4] would be needed to get the appropriate -I flags. The framework flags are simple because no path is needed - the linker looks first in /Library/Frameworks, then /System/Library/frameworks, so a user 8.5 would override the system's.

Disabling/uninstalling /Library/Frameworks is simple, if a user wanted to build GRASS for the system framework.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?"

- The Ruler of the Universe


_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to