Tim,
On 2004 Jul 21 , at 20.02, Tim Jenness wrote:
>>> 2. itcl should be included in the search (with corresponding
>>> variables)
>>> I assume an ITCL_LIBS should be set but there won't be a need
>>> for ITCL_CFLAGS since they should be shared. The question is
>>> whether
>>> the optional status of iTCL is a problem or whether
>>> STAR_PATH_ITCLTK
>>> needs to be created which uses required itcl, tcl and tk all to
>>> be
>>> in the same place. Should there be a STAR_PATH_TCL which doesn't
>>> worry
>>> about TK (but which starts looking in the default Starlink
>>> location).
>>
>> It still sets TCL_CFLAGS and TCL_LIBS with the required flags. I
>> haven't created separate TCL, TK and ITCL variables, because (a) it
>> starts to get confusing, and (b) extra flags wouldn't hurt, so there's
>> no need to avoid including some flags, so no utility in having
>> separate
>> variables. Anyone disagree?
>
> Does it get confusing that TK_LIBS would be used for linking tk apps?
Well, a bit, since there would be TCL_CFLAGS and TCL_LIBS, but a
TK_LIBS without a corresponding TK_CFLAGS, unless it were either empty
or contained just the flag for the required X includes, and I'm not
sure what there would be for itcl. Come to think of it, perhaps a null
TK_CFLAGS wouldn't be a problem. Perhaps that's best. OK, I'll do
that.
>> Having said that, I don't know what I'm supposed to be testing for in
>> itcl. There isn't an itclConfig.sh, nor any lib directory which has
>> to
>> be added to a -L flag, and so the itcl test doesn't actually do
>> anything. Any clues?
>>
>
> There is an itkConfig.sh which specifies libitk. I assume this means
> itcl
> is a Tk extension rather than just a tcl extension. (ie an itcl app
> must
> always be linked against libtk).
I've just found an itkConfig.sh in the itcl build tree, which is
configured (from .in) but not installed, and after grepping around the
rest of my system for *Config.sh, I've found an itclConfig.sh.in which
isn't even configured, much less installed. Is something terribly
broken with the itcl distribution we have?
> I sense oddles of pent up frustration.
Programming in oodles of portable-sh has lost its minimalist charm.
Norman
--
----------------------------------------------------------------------
Norman Gray : Physics & Astronomy, Glasgow University, UK
http://www.astro.gla.ac.uk/users/norman/ : www.starlink.ac.uk
|