1# 2# Copyright (c) 2006 João Abecasis 3# 4# Distributed under the Boost Software License, Version 1.0. (See 5# accompanying file LICENSE_1_0.txt or copy at 6# http://www.boost.org/LICENSE_1_0.txt) 7# 8 9## 10## IMPORTANT NOTE: This file MUST NOT be copied over a boost installation 11## 12 13path-constant top : . ; 14 15import modules ; 16import path ; 17 18local boost-root = [ modules.peek : BOOST_ROOT ] ; 19 20if ! $(boost-root) 21{ 22 local boost-search-dirs = [ modules.peek : BOOST_BUILD_PATH ] ; 23 24 for local dir in $(boost-search-dirs) 25 { 26 if [ path.glob $(dir)/../../../ : boost/version.hpp ] 27 { 28 boost-root += $(dir)/../../../ ; 29 } 30 } 31 32 if $(boost-root) 33 { 34 boost-root = [ path.make $(boost-root[1]) ] ; 35 } 36 else 37 { 38 ECHO "Warning: couldn't find BOOST_ROOT in" $(boost-root) ; 39 } 40} 41 42path-constant BOOST_ROOT : $(boost-root) ; 43modules.poke : QUICKBOOK_ROOT : $(top) ; 44 45use-project /boost : $(BOOST_ROOT) ; 46