summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-27 08:39:05 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-27 08:39:05 -0400
commit3c30f74931bbe94484da82481eb9d3b788347907 (patch)
tree997cd00167f58eb443cd047c7f886f726fe6411f
parent027c255a4fa8dd8ab9cf433e6f9491ce7e5658aa (diff)
downloadfork-ledger-3c30f74931bbe94484da82481eb9d3b788347907.tar.gz
fork-ledger-3c30f74931bbe94484da82481eb9d3b788347907.tar.bz2
fork-ledger-3c30f74931bbe94484da82481eb9d3b788347907.zip
Look for Boost in custom places for standard build
-rwxr-xr-xacprep17
1 files changed, 16 insertions, 1 deletions
diff --git a/acprep b/acprep
index ef264254..fd7f5249 100755
--- a/acprep
+++ b/acprep
@@ -926,7 +926,22 @@ class PrepareBuild(CommandLineApp):
#########################################################################
def setup_flavor_default(self):
- pass
+ if exists('/usr/local/lib/libboost_regex-xgcc44-s-1_40.a'):
+ self.envvars['BOOST_HOME'] = '/usr/local'
+ self.envvars['BOOST_SUFFIX'] = '-xgcc44-s-1_40'
+ self.log.debug('Setting BOOST_SUFFIX => %s' %
+ self.envvars['BOOST_SUFFIX'])
+
+ self.sys_include_dirs.append('/usr/local/include/boost-1_40')
+
+ elif exists('/opt/local/lib/libboost_regex.a'):
+ self.envvars['BOOST_HOME'] = '/opt/local'
+ self.envvars['BOOST_SUFFIX'] = ''
+
+ self.log.debug('Setting BOOST_SUFFIX => %s' %
+ self.envvars['BOOST_SUFFIX'])
+
+ self.sys_include_dirs.append('/opt/local/include/boost')
def setup_flavor_debug(self):
self.configure_args.append('--enable-debug')