X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 355029FA5E9 for ; Tue, 30 May 2006 22:19:21 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 44499-09 for ; Tue, 30 May 2006 22:19:14 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id C124E9FA5E1 for ; Tue, 30 May 2006 22:19:14 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 912B231990; Wed, 31 May 2006 03:19:12 +0200 (MET DST) From: ljb X-Newsgroups: pgsql.interfaces Subject: Re: Building psql.exe using the free Borland compiler Date: Wed, 31 May 2006 01:19:04 +0000 (UTC) Organization: Hub.Org Networking Services Lines: 45 Message-ID: References: <20060528013345.GA1888@surnet.cl> <200605280236.k4S2aSW22700@candle.pha.pa.us> <20060528033734.GC2540@surnet.cl> X-Complaints-To: usenet@news.hub.org User-Agent: slrn/0.9.8.1 (Linux) To: pgsql-interfaces@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/18 X-Sequence-Number: 6139 alvherre@commandprompt.com wrote: >... > but ISTM ljb is the one who needs to find what works ... Here's my Makefile for testing this: =========================== all: f1 f2 f3 f4 f5 f6 f1: echo \#define SYSCONFDIR "" > f1 f2: echo \#define SYSCONFDIR \"\" > f2 f3: echo "#define SYSCONFDIR \"\"" > f3 f4: echo '\#define SYSCONFDIR ""' > f4 f5: echo '#define SYSCONFDIR ""' > f5 f6: echo #define SYSCONFDIR "" > f6 =========================== I'm using make from "Borland C++ 5.5.1 for Win32" on Windows 2000. Here are the results for the first 4 cases: f1: #define SYSCONFDIR "" f2: #define SYSCONFDIR \"\" f3: "#define SYSCONFDIR \"\"" f4: '#define SYSCONFDIR ""' Cases 'f5' and 'f6' don't produce output files at all. So it seems to me that the patch to bcc32.mak should be reverted (as shown below), but that depends on what the original poster (Mark Morgan Lloyd) says. If he says the patch is needed, we should figure out why we get different results. --- src/interfaces/libpq/bcc32.mak.orig 2006-04-24 00:03:42.000000000 -0400 +++ src/interfaces/libpq/bcc32.mak 2006-05-30 19:40:31.000000000 -0400 @@ -141,7 +141,7 @@ # Have to use \# so # isn't treated as a comment, but MSVC doesn't like this pg_config_paths.h: bcc32.mak - echo \#define SYSCONFDIR \"\" > pg_config_paths.h + echo \#define SYSCONFDIR "" > pg_config_paths.h "$(OUTDIR)" : @if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"