AC_MSG_RESULT([$with_tcl])
AC_SUBST([with_tcl])
+# If Tcl is enabled (above) then check for pltcl_unknown_support
+AC_MSG_CHECKING([whether to build with pl/tcl unknown support])
+if test "$with_tcl" = yes; then
+ PGAC_ARG_BOOL(with, pltcl_unknown, no, [ --with-pltcl-unknown build pl/tcl unknown support if Tcl is enabled])
+else
+ with_pltcl_unknown=no
+fi
+AC_MSG_RESULT([$with_pltcl_unknown])
+AC_SUBST([with_pltcl_unknown])
+
# If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
AC_MSG_CHECKING([whether to build with Tk])
if test "$with_tcl" = yes; then
src/GNUmakefile
src/Makefile.global
src/backend/port/Makefile
+ src/pl/tcl/modules/pltcl_listmod
+ src/pl/tcl/modules/pltcl_loadmod
+ src/pl/tcl/modules/pltcl_delmod
],
[
# Update timestamp for config.h (see Makefile.global)
# -*-makefile-*-
-# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.123 2001/03/10 10:38:59 petere Exp $
+# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.124 2001/05/09 19:19:00 momjian Exp $
#------------------------------------------------------------------------------
# All PostgreSQL makefiles include this file and use the variables it sets,
with_perl = @with_perl@
with_python = @with_python@
with_tcl = @with_tcl@
+with_pltcl_unknown = @with_pltcl_unknown@
with_tk = @with_tk@
enable_odbc = @enable_odbc@
MULTIBYTE = @MULTIBYTE@
#
# Makefile for the pltcl shared object
#
-# $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.26 2000/12/15 18:50:35 petere Exp $
+# $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.27 2001/05/09 19:19:00 momjian Exp $
#
#-------------------------------------------------------------------------
# first of all calls to the call handler. See the doc in the modules
# directory about details.
-#override CPPFLAGS+= -DPLTCL_UNKNOWN_SUPPORT
-
+ifeq ($(with_pltcl_unknown), yes)
+override CPPFLAGS+= -DPLTCL_UNKNOWN_SUPPORT
+endif
#
# DLOBJS is the dynamically-loaded object file.
install: all installdirs
$(INSTALL_SHLIB) $(DLOBJS) $(DESTDIR)$(libdir)/$(DLOBJS)
+ifeq ($(with_pltcl_unknown), yes)
+ $(INSTALL_SCRIPT) modules/pltcl_loadmod \
+ $(DESTDIR)$(bindir)/pltcl_loadmod
+ $(INSTALL_SCRIPT) modules/pltcl_delmod \
+ $(DESTDIR)$(bindir)/pltcl_delmod
+ $(INSTALL_SCRIPT) modules/pltcl_listmod \
+ $(DESTDIR)$(bindir)/pltcl_listmod
+ $(INSTALL_DATA) modules/unknown.pltcl \
+ $(DESTDIR)$(datadir)/unknown.pltcl
+endif
installdirs:
$(mkinstalldirs) $(DESTDIR)$(libdir)
$(SHELL) $< '$(TCL_CONFIG_SH)' '$@'
clean distclean maintainer-clean:
- rm -f $(INFILES) pltcl.o Makefile.tcldefs
+ rm -f $(INFILES) pltcl.o Makefile.tcldefs modules/pltcl_listmod modules/pltcl_loadmod modules/pltcl_delmod