diff --git a/build/Jamfile.v2 b/build/Jamfile.v2 index 7be77f1f..e01a27b7 100644 --- a/build/Jamfile.v2 +++ b/build/Jamfile.v2 @@ -7,6 +7,20 @@ import modules ; import python ; +if ! [ python.configured ] && ! ( --without-python in [ modules.peek : ARGV ] ) +{ + # Attempt default configuration of python + import toolset : using ; + using python ; + + if ! [ python.configured ] + { + ECHO "WARNING: No python installation configured and autoconfiguration" ; + ECHO " failed. See http://www.boost.org/libs/python/doc/building.html" ; + ECHO " for configuration instructions or pass --without-python to" ; + ECHO " suppress this message and silently skip all Boost.Python targets" ; + } +} project boost/python : source-location ../src @@ -25,7 +39,6 @@ lib boost_python str.cpp slice.cpp - aix_init_module.cpp converter/from_python.cpp converter/registry.cpp converter/type_id.cpp @@ -69,12 +82,13 @@ lib boost_python # as it's not possible anyway, and to cause dependents to # fail to build [ unless [ python.configured ] : no ] - + + on:BOOST_DEBUG_PYTHON : # default build shared : # usage requirements - static:BOOST_PYTHON_STATIC_LIB - shared:BOOST_PYTHON_DYNAMIC_LIB + static:BOOST_PYTHON_STATIC_LIB + on:BOOST_DEBUG_PYTHON ; boost-install boost_python ; diff --git a/doc/building.html b/doc/building.html index 94f39955..ad42d02b 100644 --- a/doc/building.html +++ b/doc/building.html @@ -9,60 +9,63 @@
-

Boost.Python Build and Test HOWTO

+

Boost.Python Build and Test HOWTO

-