-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathconfigure.ac
66 lines (54 loc) · 1.76 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
AC_INIT([ThorsSerialize], [0.1], [[email protected]])
AC_PREREQ([2.65])
AC_CONFIG_MACRO_DIR([build/autotools/m4])
AC_CONFIG_AUX_DIR([build/autotools/build])
AX_THOR_FUNC_INIT_BUILD([ThorsSerializer], [], [20])
AX_THOR_ENABLE_CONAN
AX_THOR_CHECK_USE_MAGIC_ENUM
AX_THOR_CHECK_USE_YAML
AX_THOR_CHECK_USE_SNAPPY
AX_THOR_CHECK_USE_CRYPTO
AX_THOR_CHECK_USE_ZLIB
AX_THOR_DISABLE_TEST_REQUIREING_LOCK_FILES
AX_THOR_DISABLE_TEST_REQUIREING_MONGO_QUERY
AX_THOR_SERVICE_AVAILABLE_MONGO
AX_THOR_FUNC_TEST_COMP([
#include <utility>
int main() {
std::index_sequence<1,2,3,4> seq;
}])
AX_THOR_FUNC_TEST_COMP_ACTION([[
#include <charconv>
int main() {
char buffer[100];
double value = 12.345;
auto result = std::to_chars(buffer, buffer+100, value, std::chars_format::fixed, 6);
}]],
[
AC_MSG_NOTICE([[Supports std::to_chars(begin, end, double)]])
],
[
AC_MSG_NOTICE([Setting NO_STD_SUPPORT_TO_CHAR_DOUBLE])
AC_DEFINE([NO_STD_SUPPORT_TO_CHAR_DOUBLE], [1], [Check for older build tools and use simpler code with old tools])
]
)
AX_THOR_FUNC_TEST_COMP_ACTION([[
#include <charconv>
int main() {
char buffer[] = "12.345";
double value;
auto result = std::from_chars(buffer, buffer+100, value);
}]],
[
AC_MSG_NOTICE([[Supports std::from_chars(begin, end, double)]])
],
[
AC_MSG_NOTICE([Setting NO_STD_SUPPORT_FROM_CHAR_DOUBLE])
AC_DEFINE([NO_STD_SUPPORT_FROM_CHAR_DOUBLE], [1], [Check for older build tools and use simpler code with old tools])
]
)
LT_INIT
subconfigure="${subconfigure} --with-thorserialize-root=$(pwd)/build "
AX_THOR_FEATURE_HEADER_ONLY_VARIANT([THORS_SERIALIZER])
AX_THOR_FUNC_TERM_BUILD([SERIALIZER], [src/Serialize/SerializeConfig.h:config.h.in])
AC_OUTPUT