2005-04-17 Jan Nieuwenhuizen <janneke@gnu.org>
* SConstruct: Require pkg-config.
+ (test_program): Bugfix for double digit version compares, use
+ integer (not string-) compare.
* stepmake/aclocal.m4 (STEPMAKE_PANGO_FT2): Define HAVE_PANGO16 too.
def configure (target, source, env):
- vre = re.compile ('^.*[^-.0-9]([0-9][0-9]*\.[0-9][.0-9]*).*$', re.DOTALL)
+ vre = re.compile ('^.*[^-.0-9]([0-9][0-9]*\.[0-9][.0-9]*).*$',
+ re.DOTALL)
def get_version (program):
command = '(pkg-config --modversion %(program)s || %(program)s --version || %(program)s -V) 2>&1' % vars ()
pipe = os.popen (command)
return 0
sys.stdout.write (string.join (actual, '.'))
sys.stdout.write ('\n')
- if actual < string.split (minimal, '.'):
+ if map (string.atoi, actual) \
+ < map (string.atoi, string.split (minimal, '.')):
lst.append ((description, package, minimal, program,
string.join (actual, '.')))
return 0