1# copyright John Maddock 2008 2# Distributed under the Boost Software License, Version 1.0. 3# (See accompanying file LICENSE_1_0.txt or copy at 4# http://www.boost.org/LICENSE_1_0.txt. 5 6import modules ; 7import path ; 8 9local ntl-path = [ modules.peek : NTL_PATH ] ; 10local gmp_path = [ modules.peek : GMP_PATH ] ; 11local e_float_path = [ modules.peek : E_FLOAT_PATH ] ; 12 13lib quadmath ; 14 15obj has_long_double_support : has_long_double_support.cpp ; 16obj has_mpfr_class : has_mpfr_class.cpp : 17 <include>$(gmp_path) <include>$(gmp_path)/mpfr <include>$(gmp_path)/gmpfrxx ; 18obj has_mpreal : has_mpreal.cpp : 19 <include>$(gmp_path) <include>$(gmp_path)/mpfr <include>$(gmp_path)/mpfrc++ ; 20obj has_ntl_rr : has_ntl_rr.cpp : <include>$(ntl-path)/include ; 21obj has_gmpxx : has_gmpxx.cpp : 22 <include>$(gmp_path) <include>$(gmp_path)/mpfr <include>$(gmp_path)/gmpfrxx ; 23obj has_gcc_visibility : has_gcc_visibility.cpp : 24 <toolset>gcc:<cxxflags>-fvisibility=hidden <toolset>gcc:<cxxflags>-Werror ; 25obj has_e_float : has_e_float.cpp : <include>$(e_float_path) ; 26exe has_float128 : has_float128.cpp quadmath ; 27exe has_intel_quad : has_intel_quad.cpp : <cxxflags>-Qoption,cpp,--extended_float_type ; 28obj has_128bit_floatmax_t : has_128bit_floatmax_t.cpp ; 29 30explicit has_long_double_support ; 31explicit has_mpfr_class ; 32explicit has_mpreal ; 33explicit has_ntl_rr ; 34explicit has_gmpxx ; 35explicit has_gcc_visibility ; 36explicit has_e_float ; 37explicit has_float128 ; 38explicit has_intel_quad ; 39explicit has_128bit_floatmax_t ;