Changeset 3591 for trunk/configure.ac


Ignore:
Timestamp:
Jan 20, 2017, 3:19:49 AM (6 years ago)
Author:
Peter
Message:

fixes #877

Generalize YAT_CXX_RVALUE into YAT_CXX_TRY_CXX11 and use that to
implement new macro YAT_CXX_ATOMIC. Use this macro in configure.ac and
use std::atomic<> conditoionally in RNG singleton.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r3581 r3591  
    9595# if CXX11 is wanted look for rvalue support
    9696yat_have_rvalue=no
     97yat_have_atomic=no
    9798AS_VAR_IF([with_cxx11], [no], [], [
    9899  YAT_CXX_RVALUE([yat_have_rvalue=yes
    99100                  AC_DEFINE([YAT_HAVE_RVALUE], [1],
    100101                            [Define if compiler support rvalues])])
     102  YAT_CXX_ATOMIC([yat_have_atomic=yes
     103                  AC_DEFINE([YAT_HAVE_ATOMIC], [1],
     104                            [Define if compiler support std::atomic])])
    101105])
    102106
     
    655659  With Bam Support:     $with_htslib
    656660  With Rvalue Support:  $yat_have_rvalue
     661  With atomic Support:  $yat_have_atomic
    657662
    658663Options used to compile and link:
Note: See TracChangeset for help on using the changeset viewer.