I am trying to implement conditional includes<br>of sources/lib&#39;s depending on the tool set i.e<br>Take the following jamfile snippet<br><br>....<br># common libs<br>lib pthread  ;<br><br># On HPUX we need to add standard libs.  <br>
lib std_v2 ;<br>lib stream ;<br>lib Csup ;<br>lib unwind ;<br>lib m ;<br><br>alias std_libs : pthread :  &lt;toolset&gt;gcc ;<br>alias std_libs : pthread :  &lt;toolset&gt;vacpp ;<br>alias std_libs : pthread std_v2 stream Csup unwind m :   &lt;toolset&gt;acc ;<br>
<br>python-extension ecf_ext : [ glob src/*.cpp ]<br>             /theCore//core<br>             /site-config//boost_system<br>             /site-config//boost_thread<br>             /site-config//boost_serialization<br>             /site-config//boost_filesystem<br>
             /site-config//boost_program_options<br>             /site-config//boost_datetime<br>             std_libs<br>           : &lt;variant&gt;debug:&lt;define&gt;DEBUG<br>           ;<br clear="all"><br>I am using alias std_libs to conditionally add additional libs on HPUX.<br>
<br>My site-config.jam on AIX look like:<br>......<br>project site-config<br>        : requirements &lt;include&gt;$(BOOST_ROOT)<br>        : requirements &lt;threading&gt;multi<br>        ;<br>using vacpp ;<br>using testing ;<br>
<br><br>Originally when I tested this on Linux, it worked a charm. However on<br>AIX and HPUX, I get messages like:<br><br>error: No best alternative for ./std_libs<br>    next alternative: required properties: &lt;threading&gt;multi &lt;toolset&gt;gcc<br>
        not matched<br>    next alternative: required properties: &lt;threading&gt;multi &lt;toolset&gt;vacpp<br>        not matched<br>    next alternative: required properties: &lt;threading&gt;multi &lt;toolset&gt;acc<br>
        not matched<br>...patience...<br><br>I don&#39;t understand why it cant make the correct choice, as it has all<br>the information, i.e for toolset and threading ? <br><br>Is there any better way of achieving conditional source/libs<br>
dependent on toolset, apart from specifying on the command line ?<br><br>Any help on this matter appreciated.<br><br>   Best regards,<br>Ta,<br>    Avi<br><br>

