This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Add dependency of gdb on tcl/tk libraries
- To: Keith Seitz <keiths at cygnus dot com>
- Subject: Re: [RFA] Add dependency of gdb on tcl/tk libraries
- From: Fernando Nasser <fnasser at redhat dot com>
- Date: Fri, 13 Apr 2001 10:42:28 -0400
- CC: Eli Zaretskii <eliz at is dot elta dot co dot il>, jmoore at redhat dot com, gdb-patches at sources dot redhat dot com
- Organization: Red Hat Canada
- References: <Pine.SOL.3.91.1010413071138.24475H-100000@ryobi.cygnus.com>
How will this work when/if we ever allow the use of the system's
installed Tcl/Tk, instead of the built ones? That is our goal for quite
some time.
Fernando
Keith Seitz wrote:
>
> On Fri, 13 Apr 2001, Eli Zaretskii wrote:
>
> > > 2001-04-12 John R. Moore <jmoore@redhat.com>
> > >
> > > * configure.in: Added dependency of gdb on tcl/tk libraries.
> > > * Makefile.in: Likewise.
> > > * configure: Regenerated with the above using autoconf.
> >
> > Hmm... am I missing something, or does this patch _require_ tcl to be
> > linked in? What about ports that *never* build with tcl, such as
> > DJGPP? What if the Tcl and Tk directories don't exist at configure
> > time?
>
> This patch only really affects configure.in. The machinery for it has
> existed in gdb for over three years. You've been using it all along.
> (Spooky -- almost Erin Brokovich-ish.. Water, anyone?)
>
> The configury change that John is adding (which appears good) is confined
> only to Insight. A quick read of the surrounding code has:
>
> if test "${enable_gdbtk}" = "yes"; then
> [...]
> TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
> [...]
> fi
>
> So, unless you configure with "--enable-gdbtk" or you have the insight
> module present (which enables "--enable-gdbtk" by default), you'll never
> see this.
>
> However, to be safe... John, have you/can you check out the gdb module
> (without Insight) and tried this? Does it cause any additional problems
> (TCL_DEPS, TK_DEPS, etc should all be blank).
>
> I have tested this patch with the insight module, both with
> --enable-gdbtk and without, and it works just fine in both cases.
>
> Keith
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9