2 # Copyright (C) 2005, 2006 Douglas Gregor.
3 # Copyright (C) 2006 The Trustees of Indiana University
4 # Copyright (C) 2010 Bryce Lelbach
5 # Copyright 2018-2019 Rene Rivera
7 # Distributed under the Boost Software License, Version 1.0.
8 # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
10 # boostinspect:notab - Tabs are required for the Makefile.
23 -with-toolset=* |
--with-toolset=* )
24 TOOLSET
=`expr "x$option" : "x-*with-toolset=\(.*\)"`
28 { echo "error: unrecognized option: $option
29 Try \`$0 --help' for more information." >&2
30 { (exit 1); exit 1; }; }
36 if test "x$want_help" = xyes
; then
38 \`./bootstrap.sh' creates minimal Boost.Build, which can install itself.
42 Defaults for the options are specified in brackets.
45 -h, --help display this help and exit
46 --with-toolset=TOOLSET use specific Boost.Build toolset
47 [automatically detected]
50 test -n "$want_help" && exit 0
52 # TBD: Determine where the script is located
55 # Determine the toolset, if not already decided
56 if test "x$TOOLSET" = x
; then
57 guessed_toolset
=`$my_dir/src/engine/build.sh --guess-toolset`
58 case $guessed_toolset in
59 acc | darwin | gcc | como | mipspro | pathscale | pgi | qcc | vacpp | xlcpp | clang
)
60 TOOLSET
=$guessed_toolset
76 # Not supported by Boost.Build
91 if test "x$B2" = x
; then
92 echo "Bootstrapping the build engine with toolset $TOOLSET... "
94 (cd "$my_dir/src/engine" && .
/build.sh
"$TOOLSET") > bootstrap.log
2>&1
97 echo "Failed to bootstrap the build engine"
98 echo "Consult 'bootstrap.log' for more details"
102 B2
="$my_dir/src/engine/b2"
108 Bootstrapping is done. To build and install, run:
110 ./b2 install --prefix=<DIR>