From: Jon Willeke <willeke@users.sourceforge.net>
To: pgsql-odbc@postgresql.org
Subject: Re: Unicode support on Linux?
Date: Fri, 30 Jan 2004 15:42:37 -0500
Message-ID: <5.1.0.14.2.20040130153732.01f553b0@mail.verizon.net> (raw)
In-Reply-To: <5.1.0.14.2.20040130121007.01f467b0@wheresmymailserver.com>
I'm using libtool 1.4.3, autoconf 2.57, and automake 1.7.6 on SuSE
Linux. I was able to build from CVS after modifying configure.ac (patch
attached).
At 1/30/2004, Jon Willeke wrote:
>I got the full source from CVS, but I'm not sure how to build it. Other
>packages I've built from CVS include an autogen.sh script that generates a
>configure script.
Attachments:psqlodbc-07.03.0205-ac.patch (text/plain, 2.9K) download
Index: configure.ac
===================================================================
RCS file: /usr/local/cvsroot/psqlodbc/psqlodbc/configure.ac,v
retrieving revision 1.10
diff -p -u -r1.10 configure.ac
--- configure.ac 6 Jan 2004 09:58:19 -0000 1.10+++ configure.ac 30 Jan 2004 20:26:25 -0000@@ -1,7 +1,7 @@
# Process this file with autoconf to produce a configure script.
-AC_INIT(psqlodbc, 07.03.0205, [pgsql-odbc@postgresql.org])+AC_INIT(psqlodbc.c)
AC_PREREQ(2.52)
-AM_INIT_AUTOMAKE+AM_INIT_AUTOMAKE(psqlodbc, 07.03.0205)
AC_CONFIG_SRCDIR([bind.c])
AM_CONFIG_HEADER([config.h])
AM_MAINTAINER_MODE
@@ -10,12 +10,12 @@ AM_MAINTAINER_MODE
AC_DEFINE(DRIVER_CURSOR_IMPLEMENT, 1,
[Define to 1 to build with driver cursors option)])
-PGAC_ARG_BOOL(with, unixodbc, no,+AC_ARG_WITH(unixodbc,
[ --with-unixodbc build ODBC driver for unixODBC],
[AC_DEFINE(WITH_UNIXODBC, 1,
[Define to 1 to build with unixODBC support (--with-unixodbc)])])
-PGAC_ARG_BOOL(with, iodbc, no,+AC_ARG_WITH(iodbc,
[ --with-iodbc build ODBC driver for iODBC],
[AC_DEFINE(WITH_IODBC, 1,
[Define to 1 to build with iODBC support (--with-iodbc)])])
@@ -28,20 +28,20 @@ fi
# Default odbc version number (--with-odbcver), default 0x0300
#
AC_MSG_CHECKING([for ODBC version number])
-PGAC_ARG_REQ(with, odbcver, [ --with-odbcver=VERSION change default ODBC version number+AC_ARG_WITH(odbcver, [ --with-odbcver=VERSION change default ODBC version number
[0x0300]],
[AC_DEFINE_UNQUOTED(ODBCVER, ${withval},
[Define to ODBC version (--with-odbcver)])])
AC_MSG_RESULT([$with_odbcver])
-AM_CONDITIONAL(with_unixodbc, [test $with_unixodbc = yes])-AM_CONDITIONAL(with_iodbc, [test $with_iodbc = yes])+AM_CONDITIONAL(with_unixodbc, [test x"$with_unixodbc-no" = xno])+AM_CONDITIONAL(with_iodbc, [test x"$with_iodbc-no" != xno])
AC_CHECK_FUNCS(strtoul strtoll)
AC_CHECK_LIB(socket, socket)
# to implement the thread-safe driver
-PGAC_ARG_BOOL(enable, pthreads, no,+AC_ARG_ENABLE(pthreads,
[ --enable-pthreads build pthread implementation if possible],
[AC_DEFINE(POSIX_MULTITHREAD_SUPPORT, 1,
[Define to 1 to build with pthreads support (--enable-pthreads)])
@@ -71,7 +71,7 @@ PGAC_ARG_BOOL(enable, pthreads, no,
# Allow for overriding the default location of the odbcinst.ini
# file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
-PGAC_ARG_REQ(with, odbcinst,+AC_ARG_WITH(odbcinst,
[ --with-odbcinst=DIR default directory for odbcinst.ini [sysconfdir]],
[odbcinst_ini_dir=$withval],
[odbcinst_ini_dir="\${sysconfdir}"])
@@ -87,7 +87,7 @@ AC_PROG_LIBTOOL
AC_CHECK_HEADERS([locale.h])
AC_CHECK_HEADERS([sys/un.h])
AC_CHECK_TYPES(uint8)
-PGAC_VAR_INT_TIMEZONE+AC_STRUCT_TIMEZONE
AC_C_CONST
AC_TYPE_SIZE_T
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: willeke@users.sourceforge.net
Subject: Re: Unicode support on Linux?
In-Reply-To: <5.1.0.14.2.20040130153732.01f553b0@mail.verizon.net>
References: <5.1.0.14.2.20040130121007.01f467b0@wheresmymailserver.com> <5.1.0.14.2.20040130153732.01f553b0@mail.verizon.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox