1 /* Generated by mkjambase from Jambase */
2 const char *jambase[] = {
3 /* src/engine/Jambase */
4 "if $(NT)\n",
5 "{\n",
6 "SLASH ?= \\\\ ;\n",
7 "}\n",
8 "SLASH ?= / ;\n",
9 "rule find-to-root ( dir : patterns + )\n",
10 "{\n",
11 "local globs = [ GLOB $(dir) : $(patterns) ] ;\n",
12 "while ! $(globs) && $(dir:P) != $(dir)\n",
13 "{\n",
14 "dir = $(dir:P) ;\n",
15 "globs = [ GLOB $(dir) : $(patterns) ] ;\n",
16 "}\n",
17 "return $(globs) ;\n",
18 "}\n",
19 ".boost-build-file = ;\n",
20 ".bootstrap-file = ;\n",
21 "BOOST_BUILD_PATH.user-value = $(BOOST_BUILD_PATH) ;\n",
22 "if ! $(BOOST_BUILD_PATH) && $(UNIX)\n",
23 "{\n",
24 "BOOST_BUILD_PATH = /usr/share/boost-build ;\n",
25 "}\n",
26 "rule _poke ( module-name ? : variables + : value * )\n",
27 "{\n",
28 "module $(<)\n",
29 "{\n",
30 "$(>) = $(3) ;\n",
31 "}\n",
32 "}\n",
33 "rule boost-build ( dir ? )\n",
34 "{\n",
35 "if $(.bootstrap-file)\n",
36 "{\n",
37 "ECHO \"Error: Illegal attempt to re-bootstrap the build system by invoking\" ;\n",
38 "ECHO ;\n",
39 "ECHO \"   'boost-build\" $(dir) \";'\" ;\n",
40 "ECHO ;\n",
41 "EXIT \"Please consult the documentation at 'http://www.boost.org'.\" ;\n",
42 "}\n",
43 "BOOST_BUILD_PATH = $(dir:R=$(.boost-build-file:D)) $(BOOST_BUILD_PATH) ;\n",
44 "_poke .ENVIRON : BOOST_BUILD_PATH : $(BOOST_BUILD_PATH) ;\n",
45 "local bootstrap-file = [ GLOB $(BOOST_BUILD_PATH) : bootstrap.jam ] ;\n",
46 ".bootstrap-file = $(bootstrap-file[1]) ;\n",
47 "if ! $(.bootstrap-file)\n",
48 "{\n",
49 "ECHO \"Unable to load Boost.Build: could not find build system.\" ;\n",
50 "ECHO --------------------------------------------------------- ;\n",
51 "ECHO \"$(.boost-build-file) attempted to load the build system by invoking\" ;\n",
52 "ECHO ;\n",
53 "ECHO \"   'boost-build\" $(dir) \";'\" ;\n",
54 "ECHO ;\n",
55 "ECHO \"but we were unable to find \\\"bootstrap.jam\\\" in the specified directory\" ;\n",
56 "ECHO \"or in BOOST_BUILD_PATH (searching \"$(BOOST_BUILD_PATH:J=\", \")\").\" ;\n",
57 "ECHO ;\n",
58 "EXIT \"Please consult the documentation at 'http://www.boost.org'.\" ;\n",
59 "}\n",
60 "if [ MATCH .*(--debug-configuration).* : $(ARGV) ]\n",
61 "{\n",
62 "ECHO \"notice: loading Boost.Build from\"\n",
63 "[ NORMALIZE_PATH $(.bootstrap-file:D) ] ;\n",
64 "}\n",
65 "include $(.bootstrap-file) ;\n",
66 "}\n",
67 "{\n",
68 "local search-path = $(BOOST_BUILD_PATH) $(BOOST_ROOT) ;\n",
69 "local self = [ SELF_PATH ] ;\n",
70 "local boost-build-relative = ../../share/boost-build ;\n",
71 "local self-based-path = [ NORMALIZE_PATH $(boost-build-relative:R=$(self)) ] ;\n",
72 "local boost-build-files =\n",
73 "[ find-to-root [ PWD ] : boost-build.jam ]\n",
74 "[ GLOB $(self-based-path) : boost-build.jam ]\n",
75 "[ GLOB $(search-path) : boost-build.jam ] ;\n",
76 ".boost-build-file = $(boost-build-files[1]) ;\n",
77 "if ! $(.boost-build-file)\n",
78 "{\n",
79 "ECHO \"Unable to load Boost.Build: could not find \\\"boost-build.jam\\\"\" ;\n",
80 "ECHO --------------------------------------------------------------- ;\n",
81 "if ! [ MATCH .*(bjam).* : $(ARGV[1]:BL) ]\n",
82 "{\n",
83 "ECHO \"BOOST_ROOT must be set, either in the environment, or \" ;\n",
84 "ECHO \"on the command-line with -sBOOST_ROOT=..., to the root\" ;\n",
85 "ECHO \"of the boost installation.\" ;\n",
86 "ECHO ;\n",
87 "}\n",
88 "ECHO \"Attempted search from\" [ PWD ] \"up to the root\" ;\n",
89 "ECHO \"at\" $(self-based-path) ;\n",
90 "ECHO \"and in these directories from BOOST_BUILD_PATH and BOOST_ROOT: \"$(search-path:J=\", \")\".\" ;\n",
91 "EXIT \"Please consult the documentation at 'http://www.boost.org'.\" ;\n",
92 "}\n",
93 "if [ MATCH .*(--debug-configuration).* : $(ARGV) ]\n",
94 "{\n",
95 "ECHO \"notice: found boost-build.jam at\"\n",
96 "[ NORMALIZE_PATH $(.boost-build-file) ] ;\n",
97 "}\n",
98 "include $(.boost-build-file) ;\n",
99 "if ! $(.bootstrap-file)\n",
100 "{\n",
101 "ECHO \"Unable to load Boost.Build\" ;\n",
102 "ECHO -------------------------- ;\n",
103 "ECHO \"\\\"$(.boost-build-file)\\\" was found by searching from\" [ PWD ] \"up to the root\" ;\n",
104 "ECHO \"and in these directories from BOOST_BUILD_PATH and BOOST_ROOT: \"$(search-path:J=\", \")\".\" ;\n",
105 "ECHO ;\n",
106 "ECHO \"However, it failed to call the \\\"boost-build\\\" rule to indicate\" ;\n",
107 "ECHO \"the location of the build system.\" ;\n",
108 "ECHO ;\n",
109 "EXIT \"Please consult the documentation at 'http://www.boost.org'.\" ;\n",
110 "}\n",
111 "}\n",
112 0 };
113