1 | #ifndef _theplu_yat_utility_config_public_ |
---|
2 | #define _theplu_yat_utility_config_public_ |
---|
3 | |
---|
4 | // $Id: config_public.h.in 3899 2020-03-31 02:38:56Z peter $ |
---|
5 | |
---|
6 | /* |
---|
7 | Copyright (C) 2008 Jari Häkkinen, Peter Johansson |
---|
8 | Copyright (C) 2009, 2011, 2013, 2014, 2015, 2017, 2018, 2019 Peter Johansson |
---|
9 | |
---|
10 | This file is part of the yat library, http://dev.thep.lu.se/yat |
---|
11 | |
---|
12 | The yat library is free software; you can redistribute it and/or |
---|
13 | modify it under the terms of the GNU General Public License as |
---|
14 | published by the Free Software Foundation; either version 3 of the |
---|
15 | License, or (at your option) any later version. |
---|
16 | |
---|
17 | The yat library is distributed in the hope that it will be useful, |
---|
18 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
19 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
20 | General Public License for more details. |
---|
21 | |
---|
22 | You should have received a copy of the GNU General Public License |
---|
23 | along with yat. If not, see <http://www.gnu.org/licenses/>. |
---|
24 | */ |
---|
25 | |
---|
26 | /// |
---|
27 | /// \file utility/config_public.h |
---|
28 | /// |
---|
29 | |
---|
30 | |
---|
31 | /// Define if deprecated boost headers should be allowed |
---|
32 | #undef YAT_BOOST_ALLOW_DEPRECATED_HEADERS |
---|
33 | |
---|
34 | #ifndef BOOST_ALLOW_DEPRECATED_HEADERS |
---|
35 | #ifdef YAT_BOOST_ALLOW_DEPRECATED_HEADERS |
---|
36 | /// If not defined and YAT_BOOST_ALLOW_DEPRECATED_HEADERS (see above) |
---|
37 | /// is defined, define it to same as YAT_BOOST_ALLOW_DEPRECATED_HEADERS |
---|
38 | #define BOOST_ALLOW_DEPRECATED_HEADERS YAT_BOOST_ALLOW_DEPRECATED_HEADERS |
---|
39 | #endif |
---|
40 | #endif |
---|
41 | |
---|
42 | /// Define to 1 if htslib is available |
---|
43 | #undef YAT_HAVE_HTSLIB |
---|
44 | |
---|
45 | /// Define to 1 if you have the <htslib/hts.h> header file. |
---|
46 | #undef YAT_HAVE_HTSLIB_HTS_H |
---|
47 | |
---|
48 | /// This macro is deprated, left for backward compatibility with yat 0.17 |
---|
49 | #define YAT_HAVE_LIBBAM YAT_HAVE_HTSLIB |
---|
50 | |
---|
51 | /// Define if compiler supports deprecated attribute, as in g++ 4.0 |
---|
52 | #undef YAT_HAVE_GCC_DEPRECATED |
---|
53 | |
---|
54 | /// Define if compiler supports boost concept with constructor |
---|
55 | #undef YAT_HAVE_BOOST_CONCEPT_WITH_CONSTRUCTOR |
---|
56 | |
---|
57 | // User can enable/disable cxx11 features with public macros |
---|
58 | // YAT_WITH_CXX11 and YAT_WITHOUT_CXX11. |
---|
59 | // |
---|
60 | // If user want to disable all cxx11 features, they should #define |
---|
61 | // YAT_WITHOUT_CXX11. |
---|
62 | #ifdef YAT_WITHOUT_CXX11 |
---|
63 | # ifdef YAT_WITH_CXX11 |
---|
64 | # error "cannot set both YAT_WITH_CXX11 and YAT_WITHOUT_CXX11" |
---|
65 | # else |
---|
66 | # /// YAT_WITHOUT_CXX11 defined by user, turn off features |
---|
67 | # define YAT_HAVE_CXX11__ 0 |
---|
68 | # endif |
---|
69 | #else |
---|
70 | # /// turn on features, if YAT_WITHOUT_CXX11 not defined |
---|
71 | # define YAT_HAVE_CXX11__ 1 |
---|
72 | #endif |
---|
73 | |
---|
74 | |
---|
75 | // YAT_HAVE_CXX11__ is defined, unless YAT_WITHOUT_CXX11 is defined |
---|
76 | // (see above) |
---|
77 | #if YAT_HAVE_CXX11__ |
---|
78 | // Defines below are defined depending on tests performed during |
---|
79 | // configure step when building yat. The results can be affected by |
---|
80 | // installer via configure options --enable-cxx11 and --disable-cxx11 |
---|
81 | // (see README). |
---|
82 | // |
---|
83 | /// Define if compiler supports rvalues */ |
---|
84 | #undef YAT_HAVE_RVALUE |
---|
85 | /// Define if compiler supports atomic */ |
---|
86 | #undef YAT_HAVE_ATOMIC |
---|
87 | /// Define if std::log2 exists |
---|
88 | #undef YAT_HAVE_LOG2 |
---|
89 | /// Define if std::throw_if_nested exists |
---|
90 | #undef YAT_HAVE_THROW_IF_NESTED |
---|
91 | #endif |
---|
92 | |
---|
93 | /// Define to 1 if boost::exception_ptr works |
---|
94 | #undef YAT_HAVE_WORKING_BOOST_EXCEPTION_PTR |
---|
95 | |
---|
96 | /// Define to 1 if boost::iterator_facade::operator-> works |
---|
97 | #undef YAT_HAVE_BOOST_ITERATOR_FACADE_PROXY_PTR |
---|
98 | |
---|
99 | /// Version of yat in string format |
---|
100 | #undef YAT_VERSION |
---|
101 | /// First digit in VERSION triplet |
---|
102 | #undef YAT_MAJOR_VERSION |
---|
103 | /// Second digit in VERSION triplet |
---|
104 | #undef YAT_MINOR_VERSION |
---|
105 | /// Third digit in VERSION triplet or zero if VERSION is MAJOR.MINOR |
---|
106 | #undef YAT_PATCH_VERSION |
---|
107 | /// true if dev build (version ends with pre |
---|
108 | #undef YAT_DEV_BUILD |
---|
109 | |
---|
110 | #endif |
---|