summaryrefslogtreecommitdiff
path: root/acprep
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-07 08:59:19 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-07 08:59:19 -0500
commit01255bdf6c621156c7a77e6ee9cfa46fb2c6f115 (patch)
tree2ca49094174f8e982aefaebb0ab26e103adf1757 /acprep
parent1bb2261c994cc50ad928422e6245810781cb9ac1 (diff)
downloadfork-ledger-01255bdf6c621156c7a77e6ee9cfa46fb2c6f115.tar.gz
fork-ledger-01255bdf6c621156c7a77e6ee9cfa46fb2c6f115.tar.bz2
fork-ledger-01255bdf6c621156c7a77e6ee9cfa46fb2c6f115.zip
Use static Boost when available
Diffstat (limited to 'acprep')
-rwxr-xr-xacprep8
1 files changed, 8 insertions, 0 deletions
diff --git a/acprep b/acprep
index 6d4a223a..7335e17d 100755
--- a/acprep
+++ b/acprep
@@ -1000,6 +1000,14 @@ class PrepareBuild(CommandLineApp):
self.sys_include_dirs.append('/opt/local/include/boost')
+ elif exists('/usr/local/lib/libboost_regex-xgcc44-sd-1_40.a'):
+ self.envvars['BOOST_HOME'] = '/usr/local'
+ self.envvars['BOOST_SUFFIX'] = '-xgcc44-sd-1_40'
+ self.log.info('Setting BOOST_SUFFIX => %s' %
+ self.envvars['BOOST_SUFFIX'])
+
+ self.sys_include_dirs.append('/usr/local/include/boost-1_40')
+
elif exists('/usr/local/lib/libboost_regex-xgcc44-d-1_40.a'):
self.envvars['BOOST_HOME'] = '/usr/local'
self.envvars['BOOST_SUFFIX'] = '-xgcc44-d-1_40'