[GRASS-dev] Re: [GRASS GIS] #38: configure.in: wxwidgets and python checks

GRASS GIS trac at osgeo.org
Fri Feb 8 10:26:22 EST 2008


#38: configure.in: wxwidgets and python checks
----------------------+-----------------------------------------------------
  Reporter:  martinl  |       Owner:  grass-dev at lists.osgeo.org
      Type:  task     |      Status:  new                      
  Priority:  minor    |   Milestone:  6.4.0                    
 Component:  default  |     Version:  svn-trunk                
Resolution:           |    Keywords:                           
----------------------+-----------------------------------------------------
Comment (by martinl):

 From ML by Glynn Clements:

 You should probably use python-config to get this information.

 I would suggest that --with-wxwidgets and --with-python take optional
 arguments specifying the path to the wx-config and python-config
 utilities respectively, in case they aren't in the path. --with-gdal
 already behaves like this.

 Also, is there any need to have vdigit/Makefile generated from
 Makefile.in. Can the configuration settings not go into
 Platform.make[.in]? vdigit/Makefile already includes Platform.make via
 Lib.make.

 > The patch checks for Python.h and include directory, it should work on
 > Mac/Windows too.

 The configure checks might work, but the hard-coded linking switches
 and ".so" won't work. I suggest trying to mimic a normal library build
 as closely as possible.

 -----

 Based on Glynn's notes I updated the patch (see configure_wx-1.diff)

 Instead of --with-python=path/py-config is used --with-python=path/python.
 Configure also checks for python-config.

 {{{
   --with-python[=path/python] enable Python support (python with path,
 e.g. '--with-python=/usr/bin/python2.5', default: no)
   --with-wxwidgets[=path/wx-config] enable wxWidgets support (wx-config
 with path, e.g. '--with-wxwidgets=/usr/local/bin/wx-config', default: no)
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/38#comment:2>
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/


More information about the grass-dev mailing list