Changeset 3900 for trunk/configure.ac


Ignore:
Timestamp:
May 3, 2020, 10:29:25 AM (3 years ago)
Author:
Peter
Message:

closes #944; add configure check whether class is availabale in boost and exclude typedef if not. Lift out test for that typedef to separate test so it can be skipped (without skipping all sister tests) when boost is old.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r3896 r3900  
    414414    AC_MSG_RESULT([no])
    415415  ])
    416 
     416# test if boost::random::non_central_chi_squared_distribution<> is
     417# available in header file
     418# <boost/random/non_central_chi_squared_distribution.hpp>
     419AC_COMPILE_IFELSE([
     420  AC_LANG_PROGRAM(
     421      [@%:@include <boost/random/non_central_chi_squared_distribution.hpp>],
     422      [boost::random::non_central_chi_squared_distribution<> foo])
     423], [
     424  AC_DEFINE([YAT_HAVE_BOOST_RANDOM_NON_CENTRAL_CHI_SQUARED_DISTRIBUTION],
     425            [1],
     426            [Define to 1 if boost::random::non_central_chi_squared_distribution<> is available])
     427])
     428
     429#      AC_DEFINE([YAT_HAVE_BOOST_RANDOM_NON_CENTRAL_CHI_SQUARED_DISTRIBUTION],
     430#               [1],
     431#               [define if boost::random::non_central_chi_squared_distribution<> is available])
    417432
    418433# check for hts and samtools available from http://www.htslib.org
Note: See TracChangeset for help on using the changeset viewer.