Обсуждение: TCL/TK configure problems
could soemeone explain to me how the tcl/tk configure stuff is suposedto worl? I built 6.4.2 on my HP-UX machine a week or so agao, and had to do some_really_ strange things to get it working. ToniteI tried to build onFreeBSD (sort of a reference paltform, no?), and still had the folowinterror, during configure: checking for tkConfig.sh... no configure: warning: TK support disabled; Tk configuration script missing I used teh --with-tcl and --with tk configure flags, so what's going onhere? -- Stan Brown stanb@netcom.com 843-745-3154 Westvaco Charleston SC. -- Windows 98: n.useless extension to a minor patch release for 32-bit extensions anda graphical shell for a 16-bit patch toan 8-bit operating systemoriginally coded for a 4-bit microprocessor, written by a 2-bit company that can't stand for 1bit of competition. - (c) 1999 Stan Brown. Redistribution via the Microsoft Network is prohibited.
"Stan Brown" <stanb@awod.com> writes: | checking for tkConfig.sh... no | configure: warning: TK support disabled; Tk configuration script missing | | I used teh --with-tcl and --with tk configure flags, so what's going on | here? The configure script wrongly thinks, tcl and tk are to be found at the same loaction. On SuSE Linux I've to use the following *ugly* hack: --- pgsql/src/configure.in~ Fri Oct 30 03:146 1998 +++ pgsql/src/configure.in Fri Oct 30 14:52:34 1998 @@ -790,7 +790,7 @@ AC_MSG_CHECKING(for tkConfig.sh) TK_CONFIG_SH= # library_dirs are set in the check for TCL - for dir in $library_dirs + for dir in /usr/X11R6/lib do if test -d "$dir" -a -r "$dir/tkConfig.sh" then -- Karl Eichwalder
> "Stan Brown" <stanb@awod.com> writes: > > | checking for tkConfig.sh... no > | configure: warning: TK support disabled; Tk configuration script missing > | > | I used teh --with-tcl and --with tk configure flags, so what's going on > | here? > > The configure script wrongly thinks, tcl and tk are to be found at the > same loaction. On SuSE Linux I've to use the following *ugly* hack: Or you could add configure --with-libs=DIR. -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026
Karl Eichwalder <ke@suse.de> writes: > "Stan Brown" <stanb@awod.com> writes: > | I used teh --with-tcl and --with tk configure flags, so what's going on > | here? > The configure script wrongly thinks, tcl and tk are to be found at the > same loaction. Well, it doesn't exactly insist that the config files be in the same directory. What it does do is assume that they will both be found in the "auto_path" search path that's configured into 'tclsh'. Maybe it'd be a better idea to look for a 'wish' and ask it its auto_path when looking for the Tk configure info. That's not gonna be easy, however, since 'wish' won't fire up unless it can connect to an X display. I don't think we want to have a configure script that fails (or delivers different results) depending on whether you are running it inside an X session or not. I'm also worried that we risk selecting incompatible versions of Tcl and Tk, which would be bad news indeed. In any reasonable installation Tcl and Tk will have similar auto_path settings; you'd have to go out of your way during configure/build to make them different. If we don't find the Tk configure file on the Tcl auto_path, I'd take that as a strong sign that we've not found the Tcl that goes with Tk. (As a person with several different Tcl/Tk versions installed on my system, I take this concern pretty seriously...) I'm inclined to leave the code alone and tell people with weird Tcl/Tk layouts that they have to provide --with-tclconfig='search path'. The code and docs do need improved to make it clear that more than one directory can be listed in --with-tclconfig. regards, tom lane
Tom Lane <tgl@sss.pgh.pa.us> writes: | The code and docs do need improved to make it clear that more than one | directory can be listed in --with-tclconfig. That's okay with me. Thanks for your explanation. -- Karl Eichwalder