Changeset 3581 for trunk/configure.ac


Ignore:
Timestamp:
Jan 19, 2017, 2:46:51 AM (6 years ago)
Author:
Peter
Message:

refs #878

Make configure try to turn on compiler switches (such as -std=c++11),
so it supports rvalues. If found, #define YAT_HAVE_RVALUE, which can
be used both in source files and in header files. For header files,
<yat/utility/config_public.h> must be #included.

As detailed in README users can turn off cxx11 support when at
configure time of yat, or at compile time of user's package with
preprocessor definition YAT_WITHOUT_CXX.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r3562 r3581  
    8686m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
    8787AC_PROG_CXX
     88
     89AC_ARG_WITH([cxx11],
     90            [AS_HELP_STRING([--without-cxx11],
     91                            [build with no disable C++11 support])],
     92            [],
     93            [with_cxx11=yes])
     94
     95# if CXX11 is wanted look for rvalue support
     96yat_have_rvalue=no
     97AS_VAR_IF([with_cxx11], [no], [], [
     98  YAT_CXX_RVALUE([yat_have_rvalue=yes
     99                  AC_DEFINE([YAT_HAVE_RVALUE], [1],
     100                            [Define if compiler support rvalues])])
     101])
     102
    88103AC_PROG_SED
    89104AC_PROG_LIBTOOL
     
    639654  Build Documentation:  $doxygen_message
    640655  With Bam Support:     $with_htslib
     656  With Rvalue Support:  $yat_have_rvalue
    641657
    642658Options used to compile and link:
Note: See TracChangeset for help on using the changeset viewer.