I have these packages installed (sudo apt-get install): libboost-dev, libboost-system-dev, libboost-thread-dev and libboost-all-dev;
checking for Boost headers version >= 1.35.0... yes
checking for Boost's header version... 1_61
checking for the toolset name used by Boost for mpic++... configure: WARNING: could not figure out which toolset name to use for mpic++
checking boost/program_options.hpp usability... yes
checking boost/program_options.hpp presence... yes
checking for boost/program_options.hpp... yes
checking for the Boost program_options library... yes
checking boost/scoped_ptr.hpp usability... yes
checking boost/scoped_ptr.hpp presence... yes
checking for boost/scoped_ptr.hpp... yes
checking boost/shared_ptr.hpp usability... yes
checking boost/shared_ptr.hpp presence... yes
checking for boost/shared_ptr.hpp... yes
checking boost/math/special_functions.hpp usability... no
checking boost/math/special_functions.hpp presence... yes
configure: WARNING: boost/math/special_functions.hpp: present but cannot be compiled
configure: WARNING: boost/math/special_functions.hpp: check for missing prerequisite headers?
configure: WARNING: boost/math/special_functions.hpp: see the Autoconf documentation
configure: WARNING: boost/math/special_functions.hpp: section "Present But Cannot Be Compiled"
configure: WARNING: boost/math/special_functions.hpp: proceeding with the compiler's result
configure: WARNING: ## ------------------------------------------- ##
configure: WARNING: ## ------------------------------------------- ##
checking for boost/math/special_functions.hpp... no
configure: error: cannot find boost/math/special_functions.hpp