[geos-devel] Python/Swig/Configure Bug
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Thu Aug 30 17:31:43 EDT 2007
On Thu, 2007-08-30 at 11:23 -0600, Charlie Savage wrote:
> But in the end, --enable-ruby --enable-python should build the bindings
> whether SWIG is installed or not.
>
> Is that more clear?
>
> Charlie
I think so. Here's a patch for you to play with - make sure you have a
relatively recent version of autotools installed and run the autogen.sh
script.
By default, configure will not attempt to build the python or ruby
wrappers unless they are specifically enabled with --enable-python or
--enable-ruby. I have left the Makefiles in swig/python and swig/ruby as
they were so standard make rules should apply - so if geos_wrap.cxx
already exists and the timestamp is later than geos.i then the existing
(checked in) wrappers should be used. Otherwise updating geos.i should
cause the corresponding wrappers to be rebuilt upon the next make,
although I'm having trouble testing this as I only have an old version
of SWIG :(
One more thing - I also tweaked the Ruby macro so that the build fails
if the Ruby executable isn't found. Since the user is explicitly trying
to build with --enable-ruby, it seems silly to push on regardless if the
ruby interpreter isn't found.
HTH,
Mark.
--
ILande - Open Source Consultancy
http://www.ilande.co.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: geos-autoconf.patch
Type: text/x-patch
Size: 3776 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/geos-devel/attachments/20070830/b94d6369/geos-autoconf.bin
More information about the geos-devel
mailing list