As things stand, if you use the --with-tcl configure option and a
sufficient Tcl installation could not be found, it will print a message
and continue without it.  I have already on several occasions explained
why I consider that behaviour is undesirable, and it also seems quite
absurd, considering that the user explicitly asked for Tcl by specifying
the option in the first place.

That seems easy to fix, but what should we do about the Tk part?  
Currently, --with-tcl implies Tk, except that it will be disabled if
tkConfig.sh or X Windows could not be found.  I propose that we instead
make that a failure and advise the user to use the --without-x option to
disable Tk.  (That option already exists, but it is not evaluated.)  That
would imply that Tk = Tcl + X, and consequently X = Tk - Tcl, which would
fail if we ever add another X program that is unrelated to Tcl/Tk.  If you
are concerned about that, maybe a --without-tk option would be better.  
The general assumption here is that the majority of users that want to use
Tcl is also equipped with Tk and X, so that only a few users would have to
specifically disable Tk.

Comments?

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


Thu, 21 Sep 2000 14:57:40 +0200 (CEST)
Peter Eisentraut <peter_e@gmx.net>
Weird Tcl/Tk configuration
Peter Eisentraut <peter_e@gmx.net> writes:
> That seems easy to fix, but what should we do about the Tk part?  
> Currently, --with-tcl implies Tk, except that it will be disabled if
> tkConfig.sh or X Windows could not be found.  I propose that we instead
> make that a failure and advise the user to use the --without-x option to
> disable Tk.  (That option already exists, but it is not evaluated.)  That
> would imply that Tk = Tcl + X, and consequently X = Tk - Tcl, which would
> fail if we ever add another X program that is unrelated to Tcl/Tk.  If you
> are concerned about that, maybe a --without-tk option would be better.  

I think I prefer "--without-tk", since that says directly what you mean.

> The general assumption here is that the majority of users that want to use
> Tcl is also equipped with Tk and X, so that only a few users would have to
> specifically disable Tk.

That seems a safe assumption, but there does need to be some way to
disable the tk support.

			regards, tom lane

Fri, 22 Sep 2000 12:55:01 -0400
Tom Lane <tgl@sss.pgh.pa.us>
Re: Weird Tcl/Tk configuration 