[GRASS-dev] Re: [GRASS GIS] #38: configure.in: wxwidgets and
python checks
Ivan Shmakov
ivan at theory.asu.ru
Sun Feb 10 15:24:29 EST 2008
>>>>> Martin Landa <landa.martin at gmail.com> writes:
[...]
> Python version is determined from small python script(s).
[...]
> I didn't change this part of configure script.
> The problem with python-config is that there is *no* version
> switch.
> Usage: /usr/bin/python-config
> [--prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--help]
> So how to determine python version using python-config?
> You can currently run with --with-python=/usr/bin/python2.5 to
> force using version 2.5.
BTW, there're some Python-related Autoconf code in Automake and
in the Autoconf Macro Archive, e. g.:
$ dpkg -S python.m4
autoconf-archive: /usr/share/autoconf-archive/ax_boost_python.m4
autoconf-archive: /usr/share/autoconf-archive/ax_python.m4
autoconf-archive: /usr/share/autoconf-archive/ax_with_python.m4
autoconf-archive: /usr/share/autoconf-archive/az_python.m4
automake: /usr/share/aclocal-1.10/python.m4
$
At the first glance, `az_python.m4' seems to be the most
suitable. Apparently, it doesn't depend on `python-config', but
accesses the same configuration storage using the ways native to
Python.
Is this check suitable for GRASS?
[...]
More information about the grass-dev
mailing list