<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1498" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>Hi
Sandro,<BR><BR>configure -with-geos.....works..OK!!<BR><BR>U're right..it is not
worth typing 'which geos'...sorry...<BR><BR>Before building postgis it's better
to update the PATH environment variable<BR>by adding at the beginning of
PATH<BR><BR>C:\PostgreSQL\8.0.2\bin;C:\PostgreSQL\8.0.2\lib;C:\PostgreSQL\8.0.2\lib\post<BR>gresql<BR><BR>Should
replae "C:\PostgreSQL\8.0.2" by the path to your
PostgreSQL's<BR>prefix...<BR><BR>My patch is attached to this mail
(postgis_cvs.patch)...In order to applyng<BR>it (thanks to Gerald for patching
:-))<BR><BR>(I know that U know how to do...:-) )<BR><BR>copy the patch in the
same directory of postgis
directory:<BR><BR>/postgis<BR>/postgis_cvs.patch<BR><BR>patch -p0 <
postgis_cvs.patch<BR><BR><BR><BR>In my last mail I did a little mistake for
Makefile;config.in...sorry<BR><BR></FONT><A
href="mailto:PGCONFIG=@PGCONFIG"><FONT face="Times New Roman"
size=3>PGCONFIG=@PGCONFIG</FONT></A><FONT face="Times New Roman"
size=3>@<BR> </FONT><A href="mailto:PGFEINCLUDES=@PGFEINCLUDES"><FONT
face="Times New Roman" size=3>PGFEINCLUDES=@PGFEINCLUDES</FONT></A><FONT
face="Times New Roman" size=3>@<BR>+ifeq ($(findstring
MINGW,$(MSYSTEM)),MINGW)<BR></FONT><A
href="mailto:+PGBEINCLUDES=@PGBEINCLUDES"><FONT face="Times New Roman"
size=3>+PGBEINCLUDES=@PGBEINCLUDES</FONT></A><FONT face="Times New Roman"
size=3>@ @PGBEINCLUDES@/port
@PGBEINCLUDES@/port/win32<BR>@PGBEINCLUDES@/port/win32/arpa<BR>+PGFELIBS=$(shell
@PGCONFIG@ --libdir)<BR>+else<BR> </FONT><A
href="mailto:PGBEINCLUDES=@PGBEINCLUDES"><FONT face="Times New Roman"
size=3>PGBEINCLUDES=@PGBEINCLUDES</FONT></A><FONT face="Times New Roman"
size=3>@<BR> </FONT><A href="mailto:PGFELIBS=@PGFELIBS"><FONT
face="Times New Roman" size=3>PGFELIBS=@PGFELIBS</FONT></A><FONT
face="Times New Roman" size=3>@<BR><BR>NOTICE: BUILDING POSTGIS
DOCUMENTATION<BR><BR>The last thing to do - for people who wants to compil
postgis on windows -<BR>is to take care of Docbook, iconv.dll and
xsltproc<BR>Else 'make install' wil stop for "make -C doc"<BR><BR>The best link
I know for that is </FONT><A href="http://xmlsoft.org/sources/win32"><FONT
face="Times New Roman" size=3>http://xmlsoft.org/sources/win32</FONT></A><FONT
face="Times New Roman" size=3> They have<BR>to download:<BR><BR>-
iconv-1.9.1.win32.zip ( contains icon.exe and iconv.dll)<BR><BR>- libxml2-2.6
18.win32.zip<BR><BR>- libxslt-1.1.13.win32.zip (contains
xsltproc.exe)<BR><BR>and install it to MinGW repository (C:\MinGW)<BR><BR>For
DocBook XSL files, they have to download from<BR></FONT><A
href="http://sourceforge.net/projects/docbook"><FONT face="Times New Roman"
size=3>http://sourceforge.net/projects/docbook</FONT></A><FONT
face="Times New Roman" size=3> (find docbook-xsl version
1.68.1<BR>or<BR></FONT><A
href="http://prdownloads.sourceforge.net/docbook/docbook-xsl-1.68.1.zip?download"><FONT
face="Times New Roman"
size=3>http://prdownloads.sourceforge.net/docbook/docbook-xsl-1.68.1.zip?download</FONT></A><BR><BR><FONT
face="Times New Roman" size=3>then to create the DOS path
C:\msys\1.0\share\sgml\docbook\xsl-stylesheets<BR>(or GNU/Linux PATH
/usr/share/sgml/docbook/xsl-stylesheets)<BR>and finally copy the contents of
docbook-xsl-1.68.1.zip ( commons, fo, ...)<BR>in this directory
C:\msys\1.0\share\sgml\docbook\xsl-stylesheets<BR><BR>For people who wants to
build postgis.pdf ( postgis.fo -----------><BR>postgis.pdf ), I pupose to use
(FOP from java) or install MikTeX (= laTeX<BR>distribution) for windows that
contains
pdfxmltex.exe<BR><BR><BR>============================================================================<BR>================================<BR><BR>Here
is the contense of the patch:<BR><BR>--- postgis/Makefile.config.in Tue Apr 19
10:41:21 2005<BR>+++ postgis/Makefile.config.in Mon Apr 25 12:43:59 2005<BR>@@
-71,9 +71,13 @@<BR> #<BR> </FONT><A
href="mailto:PGCONFIG=@PGCONFIG"><FONT face="Times New Roman"
size=3>PGCONFIG=@PGCONFIG</FONT></A><FONT face="Times New Roman"
size=3>@<BR> </FONT><A href="mailto:PGFEINCLUDES=@PGFEINCLUDES"><FONT
face="Times New Roman" size=3>PGFEINCLUDES=@PGFEINCLUDES</FONT></A><FONT
face="Times New Roman" size=3>@<BR>+ifeq ($(findstring
MINGW,$(MSYSTEM)),MINGW)<BR></FONT><A
href="mailto:+PGBEINCLUDES=@PGBEINCLUDES"><FONT face="Times New Roman"
size=3>+PGBEINCLUDES=@PGBEINCLUDES</FONT></A><FONT face="Times New Roman"
size=3>@ @PGBEINCLUDES@/port
@PGBEINCLUDES@/port/win32<BR>@PGBEINCLUDES@/port/win32/arpa<BR>+PGFELIBS=$(shell
@PGCONFIG@ --libdir)<BR>+else<BR> </FONT><A
href="mailto:PGBEINCLUDES=@PGBEINCLUDES"><FONT face="Times New Roman"
size=3>PGBEINCLUDES=@PGBEINCLUDES</FONT></A><FONT face="Times New Roman"
size=3>@<BR> </FONT><A href="mailto:PGFELIBS=@PGFELIBS"><FONT
face="Times New Roman" size=3>PGFELIBS=@PGFELIBS</FONT></A><FONT
face="Times New Roman" size=3>@<BR>-<BR>+endif<BR> #<BR> #
Docbook<BR> #<BR>@@ -112,8 +116,13 @@<BR> #<BR> #
DLL<BR> #<BR></FONT><A href="mailto:-DLSUFFIX=@DLSUFFIX"><FONT
face="Times New Roman" size=3>-DLSUFFIX=@DLSUFFIX</FONT></A><FONT
face="Times New Roman" size=3>@<BR></FONT><A
href="mailto:-DLFLAGS=@DLFLAGS"><FONT face="Times New Roman"
size=3>-DLFLAGS=@DLFLAGS</FONT></A><FONT face="Times New Roman"
size=3>@<BR>+ifeq ($(findstring MINGW,$(MSYSTEM)),MINGW)<BR>+ DLSUFFIX=.dll<BR>+
</FONT><A href="mailto:DLFLAGS=@DLFLAGS"><FONT face="Times New Roman"
size=3>DLFLAGS=@DLFLAGS</FONT></A><FONT face="Times New Roman"
size=3>@<BR>+else<BR>+ </FONT><A href="mailto:DLSUFFIX=@DLSUFFIX"><FONT
face="Times New Roman" size=3>DLSUFFIX=@DLSUFFIX</FONT></A><FONT
face="Times New Roman" size=3>@<BR>+ </FONT><A
href="mailto:DLFLAGS=@DLFLAGS"><FONT face="Times New Roman"
size=3>DLFLAGS=@DLFLAGS</FONT></A><FONT face="Times New Roman"
size=3>@<BR>+endif<BR><BR> #---------------------------------------------------------------<BR> #
END OF CONFIGURATION<BR>--- postgis/loader/Makefile Mon Apr 18 14:46:48
2005<BR>+++ postgis/loader/Makefile Mon Apr 25 12:40:44 2005<BR>@@ -32,7 +32,13
@@<BR> $(CC) $(CFLAGS) $(PGFEINCLUDES) -c
$<<BR><BR> pgsql2shp$(EXE): $(OBJS) pgsql2shp.o
PQunescapeBytea.o<BR>+<BR>+ifeq ($(findstring MINGW,$(MSYSTEM)),MINGW)<BR>+
$(CC) $(CFLAGS) $(OBJS) PQunescapeBytea.o pgsql2shp.o
$(LDFLAGS)<BR>$(PGFELIBS)/libpq.a -o $@<BR>+else<BR> $(CC) $(CFLAGS)
$(PGFELIBS) $(OBJS) PQunescapeBytea.o pgsql2shp.o<BR>$(LDFLAGS) -o
$@<BR>+endif<BR>+<BR><BR> shp2pgsql$(EXE): $(OBJS) shp2pgsql.o<BR>
$(CC) $(CFLAGS) $(OBJS) shp2pgsql.o $(LDFLAGS) -o $@<BR>---
postgis/lwgeom/Makefile Wed Apr 20 15:17:37 2005<BR>+++ postgis/lwgeom/Makefile
Mon Apr 25 12:09:17 2005<BR>@@ -13,21 +13,32 @@<BR> # Shared library
parameters.<BR> #<BR> NAME=lwgeom<BR>+ifeq ($(findstring
MINGW,$(MSYSTEM)),MINGW)<BR>+SHLIB
=<BR>lib$(NAME).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)$(DLSUFFIX)<BR>+SHLIB_MAJOR
=
lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)<BR>+SHLIB_BARE
= lib$(NAME)$(DLSUFFIX)<BR>+SHLIB_LINK
=<BR>+else<BR> SHLIB
=<BR>lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)<BR> SHLIB_MAJOR
=
lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)<BR> SHLIB_BARE
= lib$(NAME)$(DLSUFFIX)<BR>-SHLIB_LINK = $(DLFLAGS)<BR>+SHLIB_LINK =
$(DLFLAGS)<BR>+endif<BR><BR> MODULE_FILENAME =
$(LPATH)/$(SHLIB)<BR><BR> #---------------------------------------------------------------<BR> #
Postgis version and build
date<BR> #---------------------------------------------------------------<BR>-<BR>-POSTGIS_VERSION
= $(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)<BR>USE_GEOS=$(USE_GEOS)
USE_PROJ=$(USE_PROJ) USE_STATS=$(USE_STATS)<BR>-POSTGIS_LIB_VERSION
=<BR>$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).$(SO_MICRO_VERSION)<BR>-POSTGIS_BUILD_DATE
:= $(shell date -u "+%Y-%m-%d %H:%M:%S")<BR>-<BR>+ifeq ($(findstring
MINGW,$(MSYSTEM)),MINGW)<BR>+ POSTGIS_VERSION =
$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)<BR>USE_GEOS=$(USE_GEOS)
USE_PROJ=$(USE_PROJ) USE_STATS=$(USE_STATS)<BR>+ POSTGIS_LIB_VERSION
=<BR>$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).$(SO_MICRO_VERSION)<BR>+
POSTGIS_BUILD_DATE := $(shell date -u "+%Y-%m-%d %H:%M:%S")<BR>+else<BR>+
POSTGIS_VERSION =
$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)<BR>USE_GEOS=$(USE_GEOS)
USE_PROJ=$(USE_PROJ) USE_STATS=$(USE_STATS)<BR>+ POSTGIS_LIB_VERSION
=<BR>$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).$(SO_MICRO_VERSION)<BR>+
POSTGIS_BUILD_DATE := $(shell date -u "+%Y-%m-%d
%H:%M:%S")<BR>+endif<BR><BR> #---------------------------------------------------------------<BR><BR>@@
-87,8 +98,17 @@<BR><BR> all: $(GEOS_RULES) $(SHLIB)
../lwpostgis.sql<BR><BR>+#------------ It's for Win32
-----------------------------------<BR> $(SHLIB): $(OBJS)<BR>+<BR>+ifeq
($(findstring MINGW,$(MSYSTEM)),MINGW)<BR>+ dlltool --export-all
--output-def lwgeom.def $(OBJS)<BR>+ dllwrap -o $@ --dllname $@ --def
lwgeom.def $(OBJS)<BR>$(SHLIB_LINK) -L$(shell pg_config --libdir)
-lpostgres<BR>+ dlltool --dllname $@ --def lwgeom.def --output-lib
liblwgeom.a<BR>+else<BR> $(CC) $(SHLIB_LINK) -o $(SHLIB)
$(OBJS)<BR>+endif<BR>+<BR><BR> wktparse.tab.c: wktparse.y<BR> $(YACC)
-vd -p lwg_parse_yy
wktparse.y<BR><BR>---------------------------------------------------------------<BR>TECHER
Jean David<BR>01MAP<BR>e-mail: </FONT><A href="mailto:david@01map.net"><FONT
face="Times New Roman" size=3>david@01map.net</FONT></A><BR><FONT
face="Times New Roman" size=3>Tél: 04 67 45 60 27<BR>Entreprise: </FONT><A
href="http://www.01map.net"><FONT face="Times New Roman"
size=3>http://www.01map.net</FONT></A><BR><FONT face="Times New Roman"
size=3>Perso: </FONT><A href="http://techer.pascal.free.fr/postgis/"><FONT
face="Times New Roman"
size=3>http://techer.pascal.free.fr/postgis/</FONT></A><BR><FONT
face="Times New Roman"
size=3>---------------------------------------------------------------<BR>-----
Original Message -----<BR>From: <</FONT><A
href="mailto:strk@refractions.net"><FONT face="Times New Roman"
size=3>strk@refractions.net</FONT></A><FONT face="Times New Roman"
size=3>><BR>To: "Jean David TECHER" <</FONT><A
href="mailto:davidtecher@yahoo.fr"><FONT face="Times New Roman"
size=3>davidtecher@yahoo.fr</FONT></A><FONT face="Times New Roman"
size=3>><BR>Cc: "PostGIS Users Discussion" <</FONT><A
href="mailto:postgis-users@postgis.refractions.net"><FONT face="Times New Roman"
size=3>postgis-users@postgis.refractions.net</FONT></A><FONT
face="Times New Roman" size=3>><BR>Sent: Monday, April 25, 2005 1:44
AM<BR>Subject: Re: [postgis-users] Building PostGIS from Sunday
CVS..without<BR>PostgreSQL Sources...OK ! ! !<BR><BR><BR>> On Sun, Apr 24,
2005 at 07:39:38PM +0200, Jean David TECHER wrote:<BR>> > Hi Sandro and
PostGIS'ers,<BR>> ><BR>> > Last Sunday, I decided to compil PostGIS
from CVS (form sunday in the<BR>afternoon)...<BR>> ><BR>> > Since
the goal is to build PostGIS WITHOUT PostgreSQL sources but from<BR>the
binairies installed on the computer<BR>> > the tests on Windows for me is
OK...Successfull...I did it for PG 8.0.2,<BR>Geos 2.1.1 and Proj
4.4.9<BR>><BR>> Good news!<BR>> Weird I didn't change anything since
your worried mails ;)<BR>><BR>> > The only changes -I had to do - were
to make few changes on:<BR>> ><BR>> > -1/
postgis/Makefile.config.in<BR>> ><BR>> > -
2/postgis/lwgeom/Makefile<BR>> ><BR>> > -
3/postgis/loader/Makefile<BR>> ><BR>> > For each file, I
used<BR>> ><BR>> > ifeq ($(findstring
MINGW,$(MSYSTEM)),MINGW)<BR>> >
XXXXXXXXX<BR>> > else<BR>> >
XXXXXXXXXX<BR>> > endif<BR>><BR>> I'd put the XXXXXX all in
Makefile.config.in.<BR>><BR>> > The changes in files are at the end of
this files (sorry, I didn't at<BR>enough times to make patch... :-[
....)<BR>> > Since i'm not at job on Monday but Tuesday, I will do a
resume doc next<BR>Tuesday<BR>> ><BR>> > NOTICE: For creating
postgis doc, I need to have<BR>docbook-xslt-stylesheets, xlstproc and icon.dll
installed on<BR>Windows..Nevermind<BR>> > Just 3 downloading to
do.<BR>> ><BR>> > cvs
-d:pserver:cvs@postgis.refractions.net:/home/cvs/postgis login<BR>> > cvs
-d:pserver:cvs@postgis.refractions.net:/home/cvs/postgis co postgis<BR>> >
cd postgis<BR>> > autoconf<BR>> > configure --enable-autotconf
--with-geos=`which geos-config`<BR>><BR>> If geos-config is in your PATH,
which is what you expect using which,<BR>there should be<BR>> no need to be
explicit. A simple --with-geos should work.<BR>><BR>> > make<BR>>
> make install<BR>> > cd regress<BR>> > make<BR>> ><BR>>
> Regression Tests, Loading some data with the laoder (...) work
fine...<BR>><BR>> Thanks! See you on Tuesday with patches then :)<BR>>
--strk;<BR>><BR>> ><BR>> ><BR>>
><BR>////////////////////////////////////////////////////////////////////////////<BR>////////////////////////////////////////////////////////////////////////////<BR>////////////////////////////////////////////////////////////////////////////<BR>/////////////<BR>>
><BR>========================================[postgis/Makefile.config.in
]=======<BR>=======================================================<BR>> >
#---------------------------------------------------------------<BR>> > #
Configuration Directives<BR>> >
#---------------------------------------------------------------<BR>>
><BR>> > #<BR>> > # We recommend that you install the Proj4 and
GEOS libraries<BR>> > # referenced below to get the most use out of your
PostGIS<BR>> > # database.<BR>> ><BR>> > #<BR>> > # Set
USE_PROJ to 1 for Proj4 reprojection support (recommended)<BR>> >
#<BR>> > # Reprojection allows you to transform coordinate systems<BR>>
> # in the database with the Transform() function.<BR>> > #<BR>>
> # Download from: </FONT><A href="http://www.remotesensing.org/proj"><FONT
face="Times New Roman"
size=3>http://www.remotesensing.org/proj</FONT></A><BR><FONT
face="Times New Roman" size=3>> > #<BR>> > </FONT><A
href="mailto:USE_PROJ=@USE_PROJ"><FONT face="Times New Roman"
size=3>USE_PROJ=@USE_PROJ</FONT></A><FONT face="Times New Roman"
size=3>@<BR>> > </FONT><A href="mailto:PROJ_DIR=@PROJ_DIR"><FONT
face="Times New Roman" size=3>PROJ_DIR=@PROJ_DIR</FONT></A><FONT
face="Times New Roman" size=3>@<BR>> ><BR>> > #<BR>> > # Set
USE_GEOS to 1 for GEOS spatial predicate and operator<BR>> > # support
(recommended).<BR>> > # GEOS installation directory defaults to
/usr/local,<BR>> > # set GEOS_DIR environment variable to change
it.<BR>> > #<BR>> > # GEOS allows you to do exact topological tests,
such as<BR>> > # Intersects() and Touches(), as well as geometry
operations,<BR>> > # such as Buffer(), GeomUnion() and
Difference().<BR>> > #<BR>> > # Download from: </FONT><A
href="http://geos.refractions.net"><FONT face="Times New Roman"
size=3>http://geos.refractions.net</FONT></A><BR><FONT face="Times New Roman"
size=3>> > #<BR>> > </FONT><A href="mailto:USE_GEOS=@USE_GEOS"><FONT
face="Times New Roman" size=3>USE_GEOS=@USE_GEOS</FONT></A><FONT
face="Times New Roman" size=3>@<BR>> > </FONT><A
href="mailto:GEOS_DIR=@GEOS_DIR"><FONT face="Times New Roman"
size=3>GEOS_DIR=@GEOS_DIR</FONT></A><FONT face="Times New Roman"
size=3>@<BR>> ><BR>> > #<BR>> > # Set USE_JTS to 1 if you have
libjts installed.<BR>> > #<BR>> > USE_JTS=0<BR>> > </FONT><A
href="mailto:JTS_INCLUDES=@JTS_INCLUDES"><FONT face="Times New Roman"
size=3>JTS_INCLUDES=@JTS_INCLUDES</FONT></A><FONT face="Times New Roman"
size=3>@<BR>> > </FONT><A href="mailto:JTS_LIBDIR=@JTS_LIBDIR"><FONT
face="Times New Roman" size=3>JTS_LIBDIR=@JTS_LIBDIR</FONT></A><FONT
face="Times New Roman" size=3>@<BR>> ><BR>> > #<BR>> > # Set
USE_STATS to 1 for new GiST statistics collection support<BR>> > # Note
that this support requires additional columns in<BR>> > #
GEOMETRY_COLUMNS, so see the list archives for info or<BR>> > # install a
fresh database using postgis.sql.<BR>> > # This option is useless for
builds against PGSQL>=80 (stats<BR>> > # are always gathered in that
case, and you don't need additional<BR>> > # columns in
geometry_columns).<BR>> > #<BR>> > USE_STATS=1<BR>> ><BR>>
> #<BR>> > # Set AUTOCACHE_BBOX to 0 if you want finer control
over<BR>> > # bounding box computation and caching for your
geometries.<BR>> > # If you do, bbox computattion strategies are listed
in<BR>> > # the file lwgeom/BBOXCACHE_BEHAVIOURS, but don't expect<BR>>
> # them to be easy nor consistent.<BR>> > #<BR>> >
AUTOCACHE_BBOX=1<BR>> ><BR>> > #<BR>> > # Set USE_ICONV to 1
if you want the loader (shp2pgsql)<BR>> > # to support UTF-8
output.<BR>> > #<BR>> > USE_ICONV=0<BR>> ><BR>> >
#<BR>> > # PGSQL<BR>> > #<BR>> > </FONT><A
href="mailto:PGCONFIG=@PGCONFIG"><FONT face="Times New Roman"
size=3>PGCONFIG=@PGCONFIG</FONT></A><FONT face="Times New Roman"
size=3>@<BR>> > </FONT><A href="mailto:PGFEINCLUDES=@PGFEINCLUDES"><FONT
face="Times New Roman" size=3>PGFEINCLUDES=@PGFEINCLUDES</FONT></A><FONT
face="Times New Roman" size=3>@<BR>> > ifeq ($(findstring
MINGW,$(MSYSTEM)),MINGW)<BR>> > </FONT><A
href="mailto:PGBEINCLUDES=@PGBEINCLUDES"><FONT face="Times New Roman"
size=3>PGBEINCLUDES=@PGBEINCLUDES</FONT></A><FONT face="Times New Roman"
size=3>@ @PGBEINCLUDES@/port<BR>@PGBEINCLUDES@/port/win32
@PGBEINCLUDES@/port/win32/arpa<BR>> > else<BR>> > </FONT><A
href="mailto:PGFELIBS=@PGFELIBS"><FONT face="Times New Roman"
size=3>PGFELIBS=@PGFELIBS</FONT></A><FONT face="Times New Roman"
size=3>@<BR>> > endif<BR>> > #<BR>> > # Docbook<BR>> >
#<BR>> > </FONT><A href="mailto:XSLBASE=@XSLBASE"><FONT
face="Times New Roman" size=3>XSLBASE=@XSLBASE</FONT></A><FONT
face="Times New Roman" size=3>@<BR>> ><BR>> > #<BR>> > #
Compilers<BR>> > #<BR>> > </FONT><A href="mailto:CC=@CC"><FONT
face="Times New Roman" size=3>CC=@CC</FONT></A><FONT face="Times New Roman"
size=3>@<BR>> > </FONT><A href="mailto:CXX=@CXX"><FONT
face="Times New Roman" size=3>CXX=@CXX</FONT></A><FONT face="Times New Roman"
size=3>@<BR>> ><BR>> > #<BR>> > # Other programs<BR>> >
#<BR>> > </FONT><A href="mailto:FLEX=@FLEX"><FONT face="Times New Roman"
size=3>FLEX=@FLEX</FONT></A><FONT face="Times New Roman" size=3>@<BR>> >
</FONT><A href="mailto:YACC=@YACC"><FONT face="Times New Roman"
size=3>YACC=@YACC</FONT></A><FONT face="Times New Roman" size=3>@<BR>> >
</FONT><A href="mailto:INSTALL=@INSTALL"><FONT face="Times New Roman"
size=3>INSTALL=@INSTALL</FONT></A><FONT face="Times New Roman" size=3>@
-c<BR>> > INSTALL_DATA=$(INSTALL) -m 644<BR>> >
INSTALL_BIN=$(INSTALL) -m 755<BR>> > INSTALL_LIB=$(INSTALL) -m 755<BR>>
><BR>> > #<BR>> > # PATHS<BR>> > #<BR>> > </FONT><A
href="mailto:prefix=@prefix"><FONT face="Times New Roman"
size=3>prefix=@prefix</FONT></A><FONT face="Times New Roman" size=3>@<BR>>
> </FONT><A href="mailto:exec_prefix=@exec_prefix"><FONT
face="Times New Roman" size=3>exec_prefix=@exec_prefix</FONT></A><FONT
face="Times New Roman" size=3>@<BR>> > </FONT><A
href="mailto:bindir=@bindir"><FONT face="Times New Roman"
size=3>bindir=@bindir</FONT></A><FONT face="Times New Roman" size=3>@<BR>>
> </FONT><A href="mailto:datadir=@datadir"><FONT face="Times New Roman"
size=3>datadir=@datadir</FONT></A><FONT face="Times New Roman" size=3>@<BR>>
> </FONT><A href="mailto:mandir=@mandir"><FONT face="Times New Roman"
size=3>mandir=@mandir</FONT></A><FONT face="Times New Roman" size=3>@<BR>>
> </FONT><A href="mailto:docdir=@docdir"><FONT face="Times New Roman"
size=3>docdir=@docdir</FONT></A><FONT face="Times New Roman" size=3>@<BR>>
> </FONT><A href="mailto:libdir=@libdir"><FONT face="Times New Roman"
size=3>libdir=@libdir</FONT></A><FONT face="Times New Roman" size=3>@<BR>>
> </FONT><A href="mailto:libexecdir=@libexecdir"><FONT face="Times New Roman"
size=3>libexecdir=@libexecdir</FONT></A><FONT face="Times New Roman"
size=3>@<BR>> > </FONT><A
href="mailto:MODULE_INSTALLDIR=@MODULE_INSTALLDIR"><FONT face="Times New Roman"
size=3>MODULE_INSTALLDIR=@MODULE_INSTALLDIR</FONT></A><FONT
face="Times New Roman" size=3>@<BR>> > </FONT><A
href="mailto:LPATH=@LPATH"><FONT face="Times New Roman"
size=3>LPATH=@LPATH</FONT></A><FONT face="Times New Roman" size=3>@<BR>>
><BR>> > #<BR>> > # DLL<BR>> > #<BR>> > ifeq
($(findstring MINGW,$(MSYSTEM)),MINGW)<BR>> > DLSUFFIX=.dll<BR>>
> </FONT><A href="mailto:DLFLAGS=@DLFLAGS"><FONT face="Times New Roman"
size=3>DLFLAGS=@DLFLAGS</FONT></A><FONT face="Times New Roman" size=3>@<BR>>
> else<BR>> > </FONT><A href="mailto:DLSUFFIX=@DLSUFFIX"><FONT
face="Times New Roman" size=3>DLSUFFIX=@DLSUFFIX</FONT></A><FONT
face="Times New Roman" size=3>@<BR>> > </FONT><A
href="mailto:DLFLAGS=@DLFLAGS"><FONT face="Times New Roman"
size=3>DLFLAGS=@DLFLAGS</FONT></A><FONT face="Times New Roman" size=3>@<BR>>
> endif<BR>> ><BR>> >
#---------------------------------------------------------------<BR>> > #
END OF CONFIGURATION<BR>> >
#---------------------------------------------------------------<BR>>
><BR>> > # Use JTS instead of GEOS if available<BR>> > ifeq
($(USE_JTS),1)<BR>> > USE_GEOS=0<BR>> > endif<BR>>
><BR>> >
#---------------------------------------------------------------<BR>> > #
Test the version string and set the USE_VERSION macro<BR>> > #
appropriately.<BR>> > #<BR>> > VERSION=$(shell $(PGCONFIG)
--version)<BR>> > ifneq ($(findstring 7.1,$(VERSION)),)<BR>> >
USE_VERSION=71<BR>> > else<BR>> > ifneq ($(findstring
7.2,$(VERSION)),)<BR>> > USE_VERSION=72<BR>> >
else<BR>> > ifneq ($(findstring 7.3,$(VERSION)),)<BR>>
> USE_VERSION=73<BR>> > else<BR>>
> ifneq ($(findstring 7.4,$(VERSION)),)<BR>>
> USE_VERSION=74<BR>> >
else<BR>> > USE_VERSION=80<BR>>
> endif<BR>> > endif<BR>> >
endif<BR>> > endif<BR>> ><BR>> ><BR>>
><BR>============================================================================<BR>==============================================<BR>>
> ========================================[<BR>postgis/lwgeom/Makefile
]===================================================<BR>===========<BR>> >
# Configuration Directives<BR>> > include ../Makefile.config<BR>> >
include ../Version.config<BR>> ><BR>> >
#---------------------------------------------------------------<BR>> > #
Default missing CXX variable to c++<BR>> > #<BR>> > ifeq
($(CXX),)<BR>> > CXX = c++<BR>> > endif<BR>> ><BR>>
> #---------------------------------------------------------------<BR>>
> # Shared library parameters.<BR>> > #<BR>> >
NAME=lwgeom<BR>> > ifeq ($(findstring MINGW,$(MSYSTEM)),MINGW)<BR>>
> SHLIB
=<BR>lib$(NAME).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)$(DLSUFFIX)<BR>> >
SHLIB_MAJOR =
lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)<BR>> >
SHLIB_BARE = lib$(NAME)$(DLSUFFIX)<BR>> >
SHLIB_LINK =<BR>> > else<BR>> >
SHLIB
=<BR>lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)<BR>> >
SHLIB_MAJOR =
lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)<BR>> >
SHLIB_BARE = lib$(NAME)$(DLSUFFIX)<BR>> >
SHLIB_LINK = $(DLFLAGS)<BR>> > endif<BR>> ><BR>> >
MODULE_FILENAME = $(LPATH)/$(SHLIB)<BR>> ><BR>> >
#---------------------------------------------------------------<BR>> > #
Postgis version and build date<BR>> >
#---------------------------------------------------------------<BR>> >
ifeq ($(findstring MINGW,$(MSYSTEM)),MINGW)<BR>> > POSTGIS_VERSION =
$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)<BR>USE_GEOS=$(USE_GEOS)
USE_PROJ=$(USE_PROJ) USE_STATS=$(USE_STATS)<BR>> >
POSTGIS_LIB_VERSION
=<BR>$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).$(SO_MICRO_VERSION)<BR>>
> POSTGIS_BUILD_DATE := $(shell date -u "+%Y-%m-%d %H:%M:%S")<BR>>
> else<BR>> > POSTGIS_VERSION =
$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)<BR>USE_GEOS=$(USE_GEOS)
USE_PROJ=$(USE_PROJ) USE_STATS=$(USE_STATS)<BR>> >
POSTGIS_LIB_VERSION
=<BR>$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).$(SO_MICRO_VERSION)<BR>>
> POSTGIS_BUILD_DATE := $(shell date -u "+%Y-%m-%d %H:%M:%S")<BR>>
> endif<BR>> ><BR>> >
#---------------------------------------------------------------<BR>>
><BR>> > override CFLAGS += -g -O2 -fexceptions<BR>> > override
CFLAGS += -fPIC<BR>> > #override CFLAGS<BR>+= -I$(srcdir) -DFRONTEND
-DSYSCONFDIR='"$(sysconfdir)"'<BR>> > override CFLAGS +=
-DUSE_VERSION=$(USE_VERSION)<BR>> > override CFLAGS +=
-DPOSTGIS_LIB_VERSION='"$(POSTGIS_LIB_VERSION)"'<BR>> > override CFLAGS +=
-DPOSTGIS_SCRIPTS_VERSION='"$(SCRIPTS_VERSION)"'<BR>> > override CFLAGS +=
-DPOSTGIS_BUILD_DATE='"$(POSTGIS_BUILD_DATE)"'<BR>> ><BR>> >
JTS_OBJ=lwgeom_nojts.o<BR>> > ifeq ($(USE_GEOS),1)<BR>> >
override CFLAGS += -I$(GEOS_DIR)/include -DUSE_GEOS<BR>> >
GEOS_RULES=detect_geos_version<BR>> >
GEOS_WRAPPER=lwgeom_geos_wrapper.o<BR>> >
JTS_OBJ=lwgeom_geos.o<BR>> > SHLIB_LINK += -lstdc++
-L$(GEOS_DIR)/lib -lgeos<BR>> > endif<BR>> ><BR>> > ifeq
($(USE_JTS),1)<BR>> > override CFLAGS += -I$(JTS_INCLUDES)
-DUSE_JTS<BR>> > JTS_WRAPPER=lwgeom_jts_wrapper.o<BR>> >
JTS_OBJ=lwgeom_jts.o<BR>> > SHLIB_LINK += -lgcj -ljts -lstdc++
-L$(JTS_LIBDIR)<BR>> > endif<BR>> ><BR>> > ifeq
($(USE_PROJ),1)<BR>> > override CFLAGS += -I$(PROJ_DIR)/include
-DUSE_PROJ<BR>> > SHLIB_LINK += -L$(PROJ_DIR)/lib -lproj<BR>>
> endif<BR>> ><BR>> > override CFLAGS += $(PGBEINCLUDES)
-DAUTOCACHE_BBOX=$(AUTOCACHE_BBOX)<BR>> ><BR>> > override CXXFLAGS
:= $(CFLAGS)<BR>> > # memory debug for gcc 2.91, 2.95, 3.0 and 3.1<BR>>
> # for gcc >= 3.2.2 set GLIBCPP_FORCE_NEW at runtime instead<BR>> >
#override CXXFLAGS += -D__USE_MALLOC<BR>> ><BR>> >
#---------------------------------------------------------------<BR>> > #
Add index selectivity to C flags<BR>> > #<BR>> > ifeq
($(USE_STATS),1)<BR>> > override CFLAGS += -DUSE_STATS<BR>> >
endif<BR>> ><BR>> > SA_OBJS=measures.o box2d.o ptarray.o
lwgeom_api.o lwgeom.o lwpoint.o<BR>lwline.o lwpoly.o lwmpoint.o lwmline.o
lwmpoly.o lwcollection.o<BR>$(GEOS_WRAPPER) $(JTS_WRAPPER) wktunparse.o
lwgparse.o wktparse.tab.o<BR>lex.yy.o vsprintf.o<BR>> ><BR>> >
OBJS=$(SA_OBJS) liblwgeom.o lwgeom_pg.o lwgeom_debug.o
lwgeom_spheroid.o<BR>lwgeom_ogc.o lwgeom_functions_analytic.o $(JTS_OBJ)
lwgeom_inout.o<BR>lwgeom_estimate.o lwgeom_functions_basic.o lwgeom_gist.o
lwgeom_btree.o<BR>lwgeom_transform.o stringBuffer.o lwgeom_box.o
lwgeom_box3d.o<BR>lwgeom_box2dfloat4.o lwgeom_chip.o lwgeom_svg.o
lwgeom_gml.o<BR>lwgeom_triggers.o lwgeom_dump.o<BR>> ><BR>> >
#OTHERS=y.output lex.yy.c wktparse.tab.c wktparse.tab.h lwpostgis.sql<BR>>
> OTHERS=y.output lwpostgis.sql ../lwpostgis.sql
postgis_geos_version.h<BR>> ><BR>> ><BR>> >
#---------------------------------------------------------------<BR>> > #
Makefile targets<BR>> ><BR>> > all: $(GEOS_RULES) $(SHLIB)
../lwpostgis.sql<BR>> ><BR>> > #------------ It's for Win32
-----------------------------------<BR>> > $(SHLIB): $(OBJS)<BR>>
><BR>> > ifeq ($(findstring MINGW,$(MSYSTEM)),MINGW)<BR>> >
dlltool --export-all --output-def lwgeom.def $(OBJS)<BR>> >
dllwrap -o $@ --dllname $@ --def lwgeom.def $(OBJS)<BR>$(SHLIB_LINK)
-L$(shell pg_config --libdir) -lpostgres<BR>> > dlltool --dllname
$@ --def lwgeom.def --output-lib liblwgeom.a<BR>> > else<BR>>
> $(CC) $(SHLIB_LINK) -o $(SHLIB) $(OBJS)<BR>> > endif<BR>>
><BR>> ><BR>> > wktparse.tab.c: wktparse.y<BR>> >
$(YACC) -vd -p lwg_parse_yy wktparse.y<BR>> > mv -f y.tab.c
wktparse.tab.c<BR>> > mv -f y.tab.h wktparse.tab.h<BR>>
><BR>> ><BR>> > lex.yy.c: wktparse.lex wktparse.tab.c<BR>>
> $(FLEX) -Plwg_parse_yy -i -f -o'lex.yy.c' wktparse.lex<BR>>
><BR>> > lwgeom_jts_wrapper.o: lwgeom_jts_wrapper.cpp<BR>>
><BR>> > lwgeom_geos_wrapper.o: lwgeom_geos_wrapper.cpp<BR>>
><BR>> > lwgeom_geos.o: lwgeom_geos.c profile.h<BR>> ><BR>>
> lwgeom_jts.o: lwgeom_jts.c profile.h<BR>> ><BR>> >
lwgeom_nojts.o: lwgeom_nojts.c<BR>> ><BR>> >
lwgeom_functions_basic.o: lwgeom_functions_basic.c profile.h<BR>>
><BR>> > # Shared library stuff<BR>> ><BR>> >
../lwpostgis.sql: lwpostgis.sql<BR>> > cp lwpostgis.sql ..<BR>>
><BR>> > lwpostgis.sql: lwpostgis.sql.in<BR>> > cpp -P
-traditional-cpp -DUSE_VERSION=$(USE_VERSION) $< | sed
-e<BR>'s:@MODULE_FILENAME@:$(MODULE_FILENAME):g;s:@POSTGIS_VERSION@:$(POSTGIS_VERS<BR>ION):g;s:@POSTGIS_SCRIPTS_VERSION@:$(SCRIPTS_VERSION):g;s/@POSTGIS_BUILD_DAT<BR></FONT><A><FONT
face="Times New Roman" size=3>E@/$(POSTGIS_BUILD_DATE)/g'</FONT></A><FONT
face="Times New Roman" size=3> | grep -v '^#' > $@<BR>> ><BR>> >
install: all install-lwgeom-lib install-lwgeom-scripts<BR>> ><BR>> >
install-lwgeom-scripts:<BR>> > @mkdir -p $(datadir)<BR>>
> $(INSTALL_DATA) lwpostgis.sql $(datadir)/lwpostgis.sql<BR>>
> $(INSTALL_DATA) ../spatial_ref_sys.sql
$(datadir)/spatial_ref_sys.sql<BR>> ><BR>> > #- This has been copied
from postgresql and adapted<BR>> > install-lwgeom-lib: $(SHLIB)<BR>>
> @mkdir -p $(MODULE_INSTALLDIR)<BR>> > $(INSTALL_LIB)
$< $(MODULE_INSTALLDIR)/$(SHLIB)<BR>> ><BR>> > ifneq
($(PORTNAME), win)<BR>> > ifneq ($(SHLIB), $(SHLIB_MAJOR))<BR>>
> cd $(MODULE_INSTALLDIR) && \<BR>> > rm -f
$(SHLIB_MAHOR) && \<BR>> > ln -sf $(SHLIB)
$(SHLIB_MAJOR)<BR>> > endif<BR>> > ifneq ($(SHLIB),
lib$(NAME)$(DLSUFFIX))<BR>> > cd $(MODULE_INSTALLDIR) &&
\<BR>> > rm -f $(SHLIB_BARE) && \<BR>> > ln -sf
$(SHLIB) $(SHLIB_BARE)<BR>> > endif<BR>> > endif # not win<BR>>
><BR>> > uninstall-lib:<BR>> > rm -f
$(MODULE_INSTALLDIR)/$(SHLIB)<BR>> > rm -f
$(MODULE_INSTALLDIR)/$(SHLIB_MAJOR)<BR>> > rm -f
$(MODULE_INSTALLDIR)/$(SHLIB_BARE)<BR>> ><BR>> >
#----------------------------------------------------------<BR>> ><BR>>
> detect_geos_version:<BR>> > sh ../geos_version.sh $(GEOS_DIR)
> postgis_geos_version.h<BR>> ><BR>> >
uninstall-lwgeom-scripts:<BR>> > rm -f
$(datadir)/postgis/lwpostgis.sql<BR>> > rm -f
$(datadir)/postgis/spatial_ref_sys.sql<BR>> ><BR>> > uninstall:
uninstall-lib uninstall-lwgeom-scripts<BR>> ><BR>> >
clean-lib:<BR>> > rm -f $(SHLIB) $(SHLIB_MAJOR)
$(SHLIB_BARE)<BR>> ><BR>> > clean distclean: clean-lib<BR>>
> rm -f *.o *.so *.a test $(OTHERS)<BR>> ><BR>> >
maintainer-clean: clean<BR>> > rm -f lex.yy.c wktparse.tab.c
wktparse.tab.h<BR>> ><BR>> > liblwgeom_sa.o: liblwgeom.c<BR>>
> $(CC) -DSTANDALONE -o $@ -c $<<BR>> ><BR>> >
liblwgeom_sa.so: $(SA_OBJS) liblwgeom_sa.o<BR>> > $(CC) -shared -o
$@ $^<BR>> ><BR>> > liblwgeom_sa.a: $(SA_OBJS)
liblwgeom_sa.o<BR>> > $(AR) -rc $@ $^<BR>> ><BR>>
><BR>> > test: liblwgeom_sa.so liblwgeom_sa.a test.c<BR>> >
$(CC) -Wall -lm -g -o test test.c liblwgeom_sa.a<BR>> ><BR>> >
tsort:<BR>> > lorder $(SA_OBJS) | tsort<BR>> ><BR>>
><BR>============================================================================<BR>==============================================<BR>>
> ========================================[ postgis/loader/Makefile
]<BR>===============================================================<BR>>
> include ../Makefile.config<BR>> ><BR>> > #<BR>> > #
PostGIS Loader Makefile<BR>> > #<BR>> > SHELL = /bin/sh<BR>>
><BR>> > subdir = contrib/postgis/loader<BR>> > EXE =<BR>>
><BR>> > UNAME = $(shell uname)<BR>> > ifeq ($(findstring
CYGWIN,$(UNAME)),CYGWIN)<BR>> > EXE = .exe<BR>> >
endif<BR>> > ifeq ($(findstring MINGW,$(UNAME)),MINGW)<BR>> >
EXE = .exe<BR>> > endif<BR>> ><BR>> > OBJS = shpopen.o
dbfopen.o getopt.o<BR>> ><BR>> >
#---------------------------------------------------------------<BR>>
><BR>> > ifeq ($(USE_ICONV),1)<BR>> > override CFLAGS +=
-DUSE_ICONV<BR>> > endif<BR>> ><BR>> > override CFLAGS := -g
-Wall -I.. $(CFLAGS) -DUSE_VERSION=$(USE_VERSION)<BR>> ><BR>> > all:
shp2pgsql$(EXE) pgsql2shp$(EXE)<BR>> ><BR>> > pgsql2shp.o:
pgsql2shp.c<BR>> > $(CC) $(CFLAGS) $(PGFEINCLUDES) -c $<<BR>>
><BR>> > pgsql2shp$(EXE): $(OBJS) pgsql2shp.o PQunescapeBytea.o<BR>>
><BR>> > ifeq ($(findstring MINGW,$(MSYSTEM)),MINGW)<BR>> >
$(CC) $(CFLAGS) $(OBJS) PQunescapeBytea.o pgsql2shp.o $(LDFLAGS)<BR>$(shell
pg_config --libdir)/libpq.a -o $@<BR>> > else<BR>> > $(CC)
$(CFLAGS) $(PGFELIBS) $(OBJS) PQunescapeBytea.o pgsql2shp.o<BR>$(LDFLAGS) -o
$@<BR>> > endif<BR>> ><BR>> ><BR>> > shp2pgsql$(EXE):
$(OBJS) shp2pgsql.o<BR>> > $(CC) $(CFLAGS) $(OBJS) shp2pgsql.o
$(LDFLAGS) -o $@<BR>> ><BR>> > install: all<BR>> >
@mkdir -p $(bindir)<BR>> > $(INSTALL_BIN) pgsql2shp$(EXE)
$(bindir)/pgsql2shp$(EXE)<BR>> > $(INSTALL_BIN) shp2pgsql$(EXE)
$(bindir)/shp2pgsql$(EXE)<BR>> ><BR>> > uninstall:<BR>>
> rm -f $(bindir)/pgsql2shp$(EXE)<BR>> > rm -f
$(bindir)/shp2pgsql$(EXE)<BR>> ><BR>> > clean:<BR>> > rm
-f $(OBJS) shp2pgsql.o pgsql2shp.o shp2pgsql$(EXE) pgsql2shp$(EXE)<BR>>
><BR>> ><BR>>
><BR>============================================================================<BR>==============================================------------------------------<BR>---------------------------------<BR>>
> TECHER Jean David<BR>> > 01MAP<BR>> > e-mail: </FONT><A
href="mailto:david@01map.net"><FONT face="Times New Roman"
size=3>david@01map.net</FONT></A><BR><FONT face="Times New Roman" size=3>>
> Tél: 04 67 45 60 27<BR>> > Entreprise: </FONT><A
href="http://www.01map.net"><FONT face="Times New Roman"
size=3>http://www.01map.net</FONT></A><BR><FONT face="Times New Roman"
size=3>> > Perso: </FONT><A
href="http://techer.pascal.free.fr/postgis/"><FONT face="Times New Roman"
size=3>http://techer.pascal.free.fr/postgis/</FONT></A><BR><FONT
face="Times New Roman" size=3>> >
---------------------------------------------------------------<BR>> >
_______________________________________________<BR>> > postgis-users
mailing list<BR>> > </FONT><A
href="mailto:postgis-users@postgis.refractions.net"><FONT face="Times New Roman"
size=3>postgis-users@postgis.refractions.net</FONT></A><BR><FONT
face="Times New Roman" size=3>> > </FONT><A
href="http://postgis.refractions.net/mailman/listinfo/postgis-users"><FONT
face="Times New Roman"
size=3>http://postgis.refractions.net/mailman/listinfo/postgis-users</FONT></A><BR><FONT
face="Times New Roman" size=3>></FONT><BR></FONT></DIV>
<DIV><FONT face=Arial
size=2>---------------------------------------------------------------<BR>TECHER
Jean David<BR>01MAP<BR>e-mail: <A
href="mailto:david@01map.net">david@01map.net</A><BR>Tél: 04 67 45 60
27<BR>Entreprise: <A
href="http://www.01map.net">http://www.01map.net</A><BR>Perso: <A
href="http://techer.pascal.free.fr/postgis/">http://techer.pascal.free.fr/postgis/</A><BR>---------------------------------------------------------------</FONT></DIV></BODY></HTML>