2 # Copyright (c) 2006 João Abecasis
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)
10 ## IMPORTANT NOTE: This file MUST NOT be copied over a boost installation
13 path-constant top : . ;
18 local boost-root = [ modules.peek : BOOST_ROOT ] ;
22 local boost-search-dirs = [ modules.peek : BOOST_BUILD_PATH ] ;
24 for local dir in $(boost-search-dirs)
26 if [ path.glob $(dir)/../../../ : boost/version.hpp ]
28 boost-root += $(dir)/../../../ ;
34 boost-root = [ path.make $(boost-root[1]) ] ;
38 ECHO "Warning: couldn't find BOOST_ROOT in" $(boost-root) ;
42 path-constant BOOST_ROOT : $(boost-root) ;