tdbc::postgres

Check-in [4f2bd4c386]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Changed the configurator so that `make test` will function correctly even when testing against an uninstalled TDBC.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 4f2bd4c386b4075ec42f45cac05f3ced548ab8f9
User & Date: kennykb 2012-11-15 22:39:30.820
Context
2012-12-03
19:47
When environment doesn't permit complete testing, drop out gently. check-in: 16d25624e1 user: dgp tags: trunk
2012-11-15
22:39
Changed the configurator so that `make test` will function correctly even when testing against an uninstalled TDBC. check-in: 4f2bd4c386 user: kennykb tags: trunk
2012-11-14
17:26
REFACTOR REPOSITORY : move tdbcpostgres/ to the main directory check-in: dd7e65bd1f user: 200002852 tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to ChangeLog.








1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18








2012-11-08  Don Porter  <[email protected]>

	* configure.in:
	* README:	Advanced version number to 1.0.0.
	* configure: 	autoconf 2.59

2012-07-26  Jan Nijtmans  <[email protected]>

	* generic/pqStubInit.s:  Make some tables "const"
	* tclconfig/install-sh:  Update to latest TEA
	* tclconfig/tcl.m4:	
	* configure:		     autoconf-2.59

2012-07-13   Kevin B. Kenny  <[email protected]>

	* generic/tdbcpostgres.c: Corrected a problem where PostgreSQL 9.0
	                          and beyond return byte arrays in an
				  incompatible format, yielding silent
>
>
>
>
>
>
>
>










|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
2012-11-15  Kevin B. Kenny  <[email protected]>

	* configure.in: Made configurator changes so that tdbc::postgres
	* Makefile.in:  will `make test` correctly even when running against
	                an uninstalled TDBC.
	* configure:    autoconf 2.68
		*** ADVANCED TO NEW VERSION OF AUTOCONF ***

2012-11-08  Don Porter  <[email protected]>

	* configure.in:
	* README:	Advanced version number to 1.0.0.
	* configure: 	autoconf 2.59

2012-07-26  Jan Nijtmans  <[email protected]>

	* generic/pqStubInit.s:  Make some tables "const"
	* tclconfig/install-sh:  Update to latest TEA
	* tclconfig/tcl.m4:
	* configure:		     autoconf-2.59

2012-07-13   Kevin B. Kenny  <[email protected]>

	* generic/tdbcpostgres.c: Corrected a problem where PostgreSQL 9.0
	                          and beyond return byte arrays in an
				  incompatible format, yielding silent
Changes to Makefile.in.
112
113
114
115
116
117
118




119
120
121
122
123
124
125
STLIB_LD	= @STLIB_LD@
#TCL_DEFS	= @TCL_DEFS@
TCL_BIN_DIR	= @TCL_BIN_DIR@
TCL_SRC_DIR	= @TCL_SRC_DIR@
#TK_BIN_DIR	= @TK_BIN_DIR@
#TK_SRC_DIR	= @TK_SRC_DIR@





# Not used, but retained for reference of what libs Tcl required
#TCL_LIBS	= @TCL_LIBS@

#========================================================================
# TCLLIBPATH seeds the auto_path in Tcl's init.tcl so we can test our
# package without installing.  The other environment variables allow us
# to test against an uninstalled Tcl.  Add special env vars that you







>
>
>
>







112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
STLIB_LD	= @STLIB_LD@
#TCL_DEFS	= @TCL_DEFS@
TCL_BIN_DIR	= @TCL_BIN_DIR@
TCL_SRC_DIR	= @TCL_SRC_DIR@
#TK_BIN_DIR	= @TK_BIN_DIR@
#TK_SRC_DIR	= @TK_SRC_DIR@

TDBC_VERSION	= @TDBC_VERSION@
TDBC_BIN_DIR	= @tdbc_BIN_DIR@
TDBC_LIB_FILE	= @TDBC_LIB_FILE@

# Not used, but retained for reference of what libs Tcl required
#TCL_LIBS	= @TCL_LIBS@

#========================================================================
# TCLLIBPATH seeds the auto_path in Tcl's init.tcl so we can test our
# package without installing.  The other environment variables allow us
# to test against an uninstalled Tcl.  Add special env vars that you
231
232
233
234
235
236
237
238


239
240
241
242
243
244
245
#	    rm -f $(DESTDIR)$(mandir)/mann/`basename $$i`; \
#	    $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/mann ; \
#	done

test: binaries libraries
	$(TCLSH) `@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS) \
		-load "package ifneeded tdbc::postgres $(PACKAGE_VERSION) \
			[list source `@CYGPATH@ $(srcdir)/library/tdbcpostgres.tcl`]\;[list load `@CYGPATH@ $(PKG_LIB_FILE)` $(PACKAGE_NAME)]"



shell: binaries libraries
	@$(TCLSH) $(SCRIPT)

gdb:
	$(TCLSH_ENV) $(PKG_ENV) gdb $(TCLSH_PROG) $(SCRIPT)








|
>
>







235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
#	    rm -f $(DESTDIR)$(mandir)/mann/`basename $$i`; \
#	    $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/mann ; \
#	done

test: binaries libraries
	$(TCLSH) `@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS) \
		-load "package ifneeded tdbc::postgres $(PACKAGE_VERSION) \
			[list source `@CYGPATH@ $(srcdir)/library/tdbcpostgres.tcl`]\;[list load `@CYGPATH@ $(PKG_LIB_FILE)` $(PACKAGE_NAME)];\
		package ifneeded tdbc ${TDBC_VERSION} \
			[list source `@CYGPATH@ $(TDBC_BIN_DIR)/tdbc.tcl`]\;[list load `@CYGPATH@ $(TDBC_BIN_DIR)/$(TDBC_LIB_FILE)` tdbc]"

shell: binaries libraries
	@$(TCLSH) $(SCRIPT)

gdb:
	$(TCLSH_ENV) $(PKG_ENV) gdb $(TCLSH_PROG) $(SCRIPT)

Changes to configure.

more than 10,000 changes

Changes to configure.in.
1
2
3
4
5
6
7
8
n#!/bin/bash -norc
dnl	This file is an input file used by the GNU "autoconf" program to
dnl	generate the file "configure", which is run during Tcl installation
dnl	to configure the system for the local environment.
#
# RCS: @(#) $Id: configure.in,v 1.47 2007/02/09 19:06:47 hobbs Exp $

#-----------------------------------------------------------------------
|







1
2
3
4
5
6
7
8
#!/bin/bash -norc
dnl	This file is an input file used by the GNU "autoconf" program to
dnl	generate the file "configure", which is run during Tcl installation
dnl	to configure the system for the local environment.
#
# RCS: @(#) $Id: configure.in,v 1.47 2007/02/09 19:06:47 hobbs Exp $

#-----------------------------------------------------------------------
60
61
62
63
64
65
66



67
68
69
70
71
72
73
AC_MSG_WARN([Looking for "${tdbc_BIN_DIR}/Makefile"])
if test -f "${tdbc_BIN_DIR}/Makefile" ; then
    AC_MSG_WARN([Found Makefile - using build include spec and lib specs for tdbc])
    tdbc_INCLUDE_SPEC=${tdbc_BUILD_INCLUDE_SPEC}
    tdbc_LIBRARY_PATH=${tdbc_BUILD_LIBRARY_PATH}
fi
AC_SUBST(tdbc_LIBRARY_PATH)




#-----------------------------------------------------------------------
# Handle the --prefix=... option by defaulting to what Tcl gave.
# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
#-----------------------------------------------------------------------

TEA_PREFIX







>
>
>







60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
AC_MSG_WARN([Looking for "${tdbc_BIN_DIR}/Makefile"])
if test -f "${tdbc_BIN_DIR}/Makefile" ; then
    AC_MSG_WARN([Found Makefile - using build include spec and lib specs for tdbc])
    tdbc_INCLUDE_SPEC=${tdbc_BUILD_INCLUDE_SPEC}
    tdbc_LIBRARY_PATH=${tdbc_BUILD_LIBRARY_PATH}
fi
AC_SUBST(tdbc_LIBRARY_PATH)
AC_SUBST(TDBC_VERSION)
AC_SUBST(tdbc_BIN_DIR)
AC_SUBST(TDBC_LIB_FILE)

#-----------------------------------------------------------------------
# Handle the --prefix=... option by defaulting to what Tcl gave.
# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
#-----------------------------------------------------------------------

TEA_PREFIX