From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | pgsql-odbc(at)postgresql(dot)org |
Subject: | Unix build |
Date: | 2002-10-07 19:24:27 |
Message-ID: | Pine.LNX.4.44.0210072115050.928-200000@localhost.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-odbc |
I managed to find a Libtool version that works, so here's the
independent build infrastructure for ODBC on Unix.
The patch also removes all the non-multibyte code. This goes together
with the build system change, because there no longer is a way to turn
on multibyte explicitly. You should make the required changes to the
Windows build files.
The following files need to be checked into CVS: configure.ac and
Makefile.am. GNUmakefile can be removed. I recommend that you do not
check in all the files generated by auto* (see below). It can get
pretty messy to keep track of them.
* Prerequisites
Autoconf 2.52 or higher
Automake 1.6.* (Lower versions are rejected, version 1.7 untested.)
Libtool 1.4.2a (CVS from stable branch, maybe 1.4.2 works as well)
PostgreSQL source tree (7.3 branch)
* Bootstrapping
First, copy libtool.m4 into source directory. Be sure to pick the one
from the right Libtool version. Then run
aclocal -I . -I $PGSRC/config
libtoolize --force --copy
autoconf
autoheader
automake --add-missing --copy
You can run 'make maintainer-clean' to remove all the files this generates.
* Building
./configure
make
make install
configure has the same options that the PostgreSQL configure used to
have for ODBC, namely --with-iodbc, --with-unixodbc, and
--with-odbcinst=DIR.
* Version Number
The previous build infrastructure set a shared library version number
of 0.27. I've used this as a package version number, but it does not
correspond to version.h in any way. This needs to be thought out.
* Making a Source Distribution
'make dist' makes a file psqlodbc-0.27.tar.gz. It's even better to
use 'make distcheck', which runs a number of tests to see if the
distribution is internally consistent.
The distribution does not contain any Windows-specific files (*.def,
maybe others). If it is desired to include them, edit Makefile.am.
--
Peter Eisentraut peter_e(at)gmx(dot)net
Attachment | Content-Type | Size |
---|---|---|
odbc-patch | text/plain | 20.1 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Mike Mascari | 2002-10-07 21:18:17 | Re: Lotus Domino Server/Enterprise Connection Services |
Previous Message | Mike Mascari | 2002-10-07 01:37:04 | Lotus Domino Server/Enterprise Connection Services |