This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: where is ecosconfig?
- From: Bart Veer <bartv at ecoscentric dot com>
- To: ecos at mcmanis dot com
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 1 Apr 2004 14:11:14 +0100 (BST)
- Subject: Re: [ECOS] where is ecosconfig?
- References: <200403301429.30166.cmcmanis@mcmanis.com><43095.62.166.230.82.1080710114.squirrel@www.chez-thomas.org><6.0.0.22.2.20040330223954.02f53d48@66.125.189.29><20040331140346.BE024EC1C0@delenn.bartv.net> <6.0.0.22.2.20040331145414.03ec2408@66.125.189.29>
>>>>> "Chuck" == Chuck McManis <ecos@mcmanis.com> writes:
Chuck> At 06:03 AM 3/31/2004, Bart wrote:
>> Try "--with-tcl=/usr/local --with-tcl-version=8.4". This should cause
>> the autoconf macro to look in /usr/local/lib/tcl8.4 for a file
>> tclConfig.sh, and the remaining information is obtained from that
>> file.
Chuck> Which is almost sufficient, except that the configure
Chuck> script still attempts to use "TCL_INC_DIR" from
Chuck> tclConfig.sh which is not defined (its TCL_INCLUDE_SPEC)
Chuck> and so it simply uses TCL_PREFIX (/usr/local) with
Chuck> "/include" appended.
Some further investigation revealed that TCL_INC_DIR was a
Debian-specific hack. The master Tcl sources now use TCL_INCLUDE_SPEC
for this, and Debian has been updated to use that as well.
So the obvious solution is to change the autoconf macro to look for
TCL_INCLUDE_SPEC rather than TCL_INC_DIR, but a quick glance at
cygwin's tclConfig.sh shows that TCL_INCLUDE_SPEC there is set to an
invalid location /nonexistent/include
Chuck> The following patch (cvs diff configure) applied to
Chuck> host/tools/configtool/standalone/common/configure
Chuck> host/libcdl/configure
Chuck> Gets us through the configure step on FreeBSD if you set
Chuck> the both --with-tcl to /usr/local and --with-tcl-versio=8.x
Chuck> (depending on version installed)
But is likely to break things on other platforms. I think it is
necessary to do an AC_FIND_FILE() for tcl.h in a variety of locations
including ${TCL_INCLUDE_SPEC}, ${TCL_INC_DIR}, ${TCL_PREFIX}/include,
and ${TCL_PREFIX}/include/tcl${with_tcl_version}.
Bart
--
Bart Veer eCos Configuration Architect
http://www.ecoscentric.com/ The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss