From 7415752f191e03df6e96f0368fefe7743b260cab Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Sun, 7 Sep 2008 23:10:29 +0200 Subject: [PATCH] scons: change test for NoBug to use pkg-config --- SConstruct | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 9c56cece3..9660003ef 100644 --- a/SConstruct +++ b/SConstruct @@ -183,8 +183,10 @@ def configurePlatform(env): if not conf.CheckLibWithHeader('dl', 'dlfcn.h', 'C'): problems.append('Functions for runtime dynamic loading not available.') - if not conf.CheckLibWithHeader('nobugmt', 'nobug.h', 'C'): + if not conf.CheckPkgConfig('nobugmt', 0.3): problems.append('Did not find NoBug [http://www.pipapo.org/pipawiki/NoBug].') + else: + conf.env.mergeConf('nobugmt') if not conf.CheckLibWithHeader('pthread', 'pthread.h', 'C'): problems.append('Did not find the pthread lib or pthread.h.')