On Fri, Jul 18, 2003, Bill Campbell wrote:

> Is there any reason why a ``with_tcl'' option isn't supported on the
> current postgresql?  I'm looking at pgaccess, a tcl/tk based tool which
> requires this library, and am hacking on the postgresql.spec file to add
> this option (the main trick seems to be getting the CPPFLAGS to include the
> tcl headers).

I cannot remember why, but I've removed TCL support some time ago. I
think it was when pgaccess was moved out of the official distribution
and into its own project. Does the following patch work for you? It at
least builds for me, but I've no clue whether we then get Tcl support.
At least I cannot see any Tcl stuff in the resulting binary RPM AFAIK.

--- postgresql.spec      18 Jul 2003 11:42:37 -0000      1.66
+++ postgresql.spec      19 Jul 2003 07:36:07 -0000
@@ -45,6 +45,7 @@
 #   package options
 %option       with_cxx      no
 %option       with_perl     no
+%option       with_tcl      no
 %option       with_odbc     no
 %option       with_compat   no

@@ -69,6 +70,10 @@
 BuildPreReq:  perl, perl-openpkg
 PreReq:       perl, perl-openpkg
 %endif
+%if "%{with_tcl}" == "yes"
+BuildPreReq:  tcl
+PreReq:       tcl
+%endif
 %if "%{with_odbc}" == "yes"
 BuildPreReq:  unixodbc
 PreReq:       unixodbc
@@ -114,7 +119,11 @@
     #   configure package
     CC="%{l_cc}" \
     CFLAGS="%{l_cflags -O}" \
+%if "%{with_cxx}" == "yes"
     CPPFLAGS="%{l_cppflags} -DOPENSSL_DISABLE_OLD_DES_SUPPORT" \
+%else
+    CPPFLAGS="%{l_cppflags tcl} -DOPENSSL_DISABLE_OLD_DES_SUPPORT" \
+%endif
     LDFLAGS="%{l_ldflags}" \
     TAR="%{l_tar}" \
     ./configure \

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to