From: Daniel A. S. <st...@ic...> - 2001-10-19 19:05:50
|
Jim, At 10:38 -0700 on 19/10/01, Jim Ingham wrote: >For Carbon, Apple distributed "flat headers" along with the >Frameworks. So, in some standard place they put >headers that just routed the standard include over to the framework >style include. So you would have a tcl.h that just includes ><Tcl/tcl.h>. > >Another way to go? > one option is indeed to put special copies of tcl.h and friends into /usr/include (which as you mention would just #include their framework equivalents). then building with e.g. -F ~/Library/Tcl -framework Tcl will just work (/usr/include is included by default no?) However makefiles not using TEA and expecting a standard /usr/include/tcl.h and -ltcl to map to /usr/lib/libtcl.dylib won't be happy anymore. The latter could be fixed with a symbolic link, but what about include files? One solution would be to specify a constant like #define USE_TCL_FRAMEWORK in tclConfig.sh that signals the use of <Tcl/*> style includes for TEA compliant builds, and put modified copies of tcl.h et al. into /usr/include that have a block like #ifdef USE_TCL_FRAMEWORK #include <Tcl/tcl.h> #else ... standard tcl.h ... #endif prepended, which should be easy to do with sed/awk/perl in a PBX shell script phase. then non-TEA makefiles should still work fine. (e.g. one infamous example for this would be TclX, I had a bad enough time already getting it to build with the current setup where SCRIPT_LIBRARY isn't inside /usr like it expects...) Cheers, Daniel -- ** Daniel A. Steffen ** "And now to something completely ** Department of Mathematics ** different" Monty Python ** Macquarie University ** <mailto:st...@ma...> ** NSW 2109 Australia ** <http://www.maths.mq.edu.au/~steffen/> |