Thread: Just a couple minor nits...

Just a couple minor nits...

From
Tom I Helbekkmo
Date:
Running "configure --help" says that a "--with-x" option is available,
but makes no mention of "--with-perl" or "--with-tcl".  If someone has
time to fix this, they should probably at the same time make a small
change to the "--with-tcl" handling: I use TK 4.2 and TCL 7.6, and
they seem to work just fine.  The configure script, however, demands
to find version 8.0 of both packages.  This is probably just a matter
of adding "tk42" and "tcl76" to the lists of possible library names to
be looked for.

Amazing fact: I already use TK and TCL with other applications, and it
seems that PostgreSQL actually works with the same versions of these
libraries as one of those.  Specifically, PostgreSQL 6.3 and Scotty
2.1.7 can both use TK 4.2 and TCL 7.6.  Up until now, I though it was
a fundamental truth, and an element of how the universe works, that
every single different TK and/or TCL application must use different,
unique to that one single application versions of these libraries.
Now, I have proof positive that there exist two different applications
that in their current versions can share a TK/TCL installation!  Wow!

Of course, if I'm mistaken, and there is stuff in the PostgreSQL 6.3
distribution that needs TK/TCL 8.0 to work right, everything is back
to normal, and I'll have to install yet another version of them...

-tih (who dislikes TCL almost as much as he dislikes Perl)
--
Popularity is the hallmark of mediocrity.  --Niles Crane, "Frasier"

Re: [HACKERS] Just a couple minor nits...

From
The Hermit Hacker
Date:
On Sat, 28 Feb 1998, Tom I Helbekkmo wrote:

> Running "configure --help" says that a "--with-x" option is available,
> but makes no mention of "--with-perl" or "--with-tcl".

This goes out to everyone...try out configure now...I've just converted
over all the -enable/-with options so that they use AC_ARG_{ENABLE,WITH},
which are proper m4 macros, and which provide for the -help options...my
first pass through, I futzed up something that broke configure, but this
time through, it appears to be clean...

> If someone has time to fix this, they should probably at the same time
> make a small change to the "--with-tcl" handling: I use TK 4.2 and TCL
> 7.6, and they seem to work just fine.  The configure script, however,
> demands to find version 8.0 of both packages.  This is probably just a
> matter of adding "tk42" and "tcl76" to the lists of possible library
> names to be looked for.
>

    Take a look around line 611 in configure.in and let me know what
you'd like to have added or changed...

Marc G. Fournier
Systems Administrator @ hub.org
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org


Re: [HACKERS] Just a couple minor nits...

From
Bruce Momjian
Date:
>
> Running "configure --help" says that a "--with-x" option is available,
> but makes no mention of "--with-perl" or "--with-tcl".  If someone has
> time to fix this, they should probably at the same time make a small
> change to the "--with-tcl" handling: I use TK 4.2 and TCL 7.6, and

Someone submitted a patch to do this.  I thought it was applied.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

Re: [HACKERS] Just a couple minor nits...

From
Tom I Helbekkmo
Date:
On Sat, Feb 28, 1998 at 04:07:08PM -0400, The Hermit Hacker wrote:

> This goes out to everyone...try out configure now...I've just converted
> over all the -enable/-with options so that they use AC_ARG_{ENABLE,WITH},
> which are proper m4 macros, and which provide for the -help options...my
> first pass through, I futzed up something that broke configure, but this
> time through, it appears to be clean...

Doesn't work at all here.  I've got the March 1 snapshot, and when I
say "--with-tcl --with-perl", it reports (immediately) that those
options are turned on...

    checking setting USE_TCL... enabled
    checking setting USE_PERL... enabled

...but that's the last I hear of it.  It seems that the USE_TCL and
USE_PERL variables are not set properly, because no attempt is made to
find the header files and libraries later on.

As for my observation that the previous releases, tcl7.6 and tk4.2,
also seem to work just fine:

>     Take a look around line 611 in configure.in and let me know what
> you'd like to have added or changed...

I was thinking something along the lines of:

*** configure.in.orig    Sun Mar  1 09:00:33 1998
--- configure.in    Sun Mar  1 14:30:04 1998
***************
*** 564,570 ****
  then
  TCL_INCDIR=no
  AC_CHECK_HEADER(tcl.h, TCL_INCDIR=)
! for f in /usr/include /usr/include/tcl8.0 /usr/local/include /usr/local/include/tcl8.0; do
  if test "$TCL_INCDIR" = "no"; then
  AC_CHECK_HEADER($f/tcl.h, TCL_INCDIR=$f)
  fi
--- 564,570 ----
  then
  TCL_INCDIR=no
  AC_CHECK_HEADER(tcl.h, TCL_INCDIR=)
! for f in /usr/include /usr/include/tcl8.0 /usr/include/tcl7.6 /usr/local/include /usr/local/include/tcl8.0
/usr/local/include/tcl7.6;do 
  if test "$TCL_INCDIR" = "no"; then
  AC_CHECK_HEADER($f/tcl.h, TCL_INCDIR=$f)
  fi
***************
*** 580,586 ****
  if test "$USE_TCL" = "true"
  then
  TCL_LIB=
! for f in tcl8.0 tcl80; do
  if test -z "$TCL_LIB"; then
  AC_CHECK_LIB($f, main, TCL_LIB=$f)
  fi
--- 580,586 ----
  if test "$USE_TCL" = "true"
  then
  TCL_LIB=
! for f in tcl8.0 tcl80 tcl7.6 tcl76; do
  if test -z "$TCL_LIB"; then
  AC_CHECK_LIB($f, main, TCL_LIB=$f)
  fi
***************
*** 610,616 ****

  TK_INCDIR=no
  AC_CHECK_HEADER(tk.h, TK_INCDIR=)
! for f in /usr/include /usr/include/tk8.0 /usr/local/include /usr/local/include/tk8.0; do
  if test "$TK_INCDIR" = "no"; then
  AC_CHECK_HEADER($f/tk.h, TK_INCDIR=$f)
  fi
--- 610,616 ----

  TK_INCDIR=no
  AC_CHECK_HEADER(tk.h, TK_INCDIR=)
! for f in /usr/include /usr/include/tk8.0 /usr/include/tk4.2 /usr/local/include /usr/local/include/tk8.0
/usr/local/include/tk4.2;do 
  if test "$TK_INCDIR" = "no"; then
  AC_CHECK_HEADER($f/tk.h, TK_INCDIR=$f)
  fi
***************
*** 631,637 ****
  if test "$USE_TCL" = "true"
  then
  TK_LIB=
! for f in tk8.0 tk80; do
  if test -z "$TK_LIB"; then
  AC_CHECK_LIB($f, main, TK_LIB=$f)
  fi
--- 631,637 ----
  if test "$USE_TCL" = "true"
  then
  TK_LIB=
! for f in tk8.0 tk80 tk4.2 tk42; do
  if test -z "$TK_LIB"; then
  AC_CHECK_LIB($f, main, TK_LIB=$f)
  fi

-tih
--
Popularity is the hallmark of mediocrity.  --Niles Crane, "Frasier"