#!/bin/bash #first install boost-jam which is needed to generate boost with a #differnt compiler than the default one if (not_there Boostjam $SIMPATH/basics/boost-jam); then cd $SIMPATH/basics untar boost-jam $BOOSTJAMVERSION.tgz ln -s $BOOSTJAMVERSION boost-jam cd $SIMPATH/basics/boost-jam if [ "$compiler" = "intel" ]; then . ./build.sh intel-linux elif [ "$arch" = "macosx64" ]; then . ./build.sh darwin elif [ "$arch" = "macosx" ]; then . ./build.sh darwin elif [ "$arch" = "solarisCC5" ]; then . ./build.sh sun else . ./build.sh gcc fi mkdir bin if [ "$arch" = "linux" -o "$arch" = "linuxicc" ]; then cp bin.linuxx86/bjam bin elif [ "$arch" = "linuxx8664gcc" -o "$arch" = "linuxx8664icc" ]; then cp bin.linuxx86_64/bjam bin elif [ "$arch" = "macosx64" ]; then #check for Mac OSX 10.6 if [ `sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 2` = 5 ]; then cp -rf bin.macosxx86/bjam bin else cp -rf bin.macosxx86_64/bjam bin fi elif [ "$arch" = "macosx" ]; then cp -rf bin.macosxx86/bjam bin elif [ "$arch" = "solarisgcc" ]; then cp -rf bin.solarisx86/bjam bin elif [ "$arch" = "solarisCC5" ]; then cp -rf bin.solaris/bjam bin else echo "This is not tested up to noe FU 11.06.08" echo "Stop here to look for libraries" exit fi check_success Boostjam $SIMPATH/basics/boost-jam/bin/bjam check=$? fi cd $SIMPATH if [ "$check" = "1" ]; then if (not_there Boost $SIMPATH/basics/boost/lib/libboost_unit_test_framework.so); then cd $SIMPATH/basics untar boost $BOOSTVERSION.tar.bz2 ln -s $BOOSTVERSION boost cd $SIMPATH/basics/boost if [ "$compiler" = "intel" ]; then $SIMPATH/basics/boost-jam/bin/bjam --build-dir=$PWD/tmp --toolset=intel \ --without-serialization --without-signals --without-thread \ --without-math --without-wave --without-regex --without-filesystem\ --without-iostreams --without-python --without-date_time --without-graph \ --without-program_options \ --without-system --without-mpi \ --prefix=$PWD --layout=system install elif [ "$arch" = "macosx64" ]; then $SIMPATH/basics/boost-jam/bin/bjam architecture=x86 \ address-model=64 --build-dir=$PWD/tmp --toolset=darwin \ --without-serialization --without-signals --without-thread \ --without-math --without-wave --without-regex --without-filesystem\ --without-iostreams --without-python --without-date_time --without-graph \ --without-program_options \ --without-system --without-mpi \ --prefix=$PWD --layout=system install elif [ "$arch" = "macosx" ]; then $SIMPATH/basics/boost-jam/bin/bjam --build-dir=$PWD/tmp --toolset=darwin \ --without-serialization --without-signals --without-thread \ --without-math --without-wave --without-regex --without-filesystem\ --without-iostreams --without-python --without-date_time --without-graph \ --without-program_options \ --without-system --without-mpi \ --prefix=$PWD --layout=system install elif [ "$arch" = "solarisCC5" ]; then cp ../user-config-CC5.jam tools/build/v2/user-config.jam $SIMPATH/basics/boost-jam/bin/bjam --build-dir=$PWD/tmp --toolset=sun \ --without-serialization --without-signals --without-thread \ --without-math --without-wave --without-regex --without-filesystem\ --without-iostreams --without-python --without-date_time --without-graph \ --without-program_options \ --without-system --without-mpi \ --prefix=$PWD --layout=system -d2 install else $SIMPATH/basics/boost-jam/bin/bjam --build-dir=$PWD/tmp --toolset=gcc \ --without-serialization --without-signals --without-thread \ --without-math --without-wave --without-regex --without-filesystem\ --without-iostreams --without-python --without-date_time --without-graph \ --without-program_options \ --without-system --without-mpi \ --prefix=$PWD --layout=system install fi if [ "$platform" = "macosx" ]; then cd $SIMPATH/basics/boost/lib create_links dylib so fi check_all_libraries $SIMPATH/basics/boost/lib check_success Boost $SIMPATH/basics/boost/lib/libboost_unit_test_framework.so check=$? fi fi cd $SIMPATH return 1