-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfigure.ac
82 lines (75 loc) · 2.22 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
AC_INIT([Claims], [0.3], [imdb@ecnu])
AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
AM_PROG_AR
AC_PROG_LIBTOOL
AM_CONDITIONAL(OPT_TCMALLOC, true)
#AM_CONDITIONAL(OPT_DEBUG, true)
CPPFLAGS=" -w -O2 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS "
CXXFLAGS=${CXXFLAGS=" -std=c++11 "}
# enable debug or not --- add by YuKai
AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [enable DEBUG mode(default=yes)]),
[],
[enable_debug=yes])
AS_IF([test "x$enable_debug" = "xyes"],[ CPPFLAGS+=" -g -DTHERON_XS "
AM_CONDITIONAL(OPT_DEBUG, true)
#CXXFLAGS+=" ${THERON_HOME}/Lib/libtherond.a "
],
[test "x$enable_debug" = "xno"], [ CPPFLAGS+=" -DNDEBUG "
AM_CONDITIONAL(OPT_DEBUG, false)
#CXXFLAGS+=" ${THERON_HOME}/Lib/libtheron.a "
]
)
#if OPT_DEBUG; then
# CPPFLAGS-=" -DNDEBUG"
# CPPFLAGS+="-g -DTHERON_XS -DDEBUG"
#else
# CPPFLAGS-="-g -DTHERON_XS -DDEBUG"
# CPPFLAGS+=" -DNDEBUG"
#fi
AC_PROG_CXX
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
Makefile
catalog/Makefile
catalog/Test/Makefile
catalog/stat/Makefile
Client/Makefile
common/Makefile
common/Block/Makefile
common/Expression/Makefile
common/expression/Makefile
common/file_handle/Makefile
common/file_handle/test/Makefile
common/log/Makefile
common/Schema/Makefile
common/Schema/Test/Makefile
common/types/Makefile
common/types/Test/Makefile
common/types/ttmath/Makefile
node_manager/Makefile
Daemon/Makefile
Executor/Makefile
Executor/Test/Makefile
IndexManager/Makefile
IndexManager/Test/Makefile
loader/Makefile
loader/test/Makefile
common/serialization/Makefile
physical_operator/Makefile
logical_operator/Makefile
Resource/Makefile
storage/Makefile
exec_tracker/Makefile
sql_parser/Makefile
sql_parser/ast_node/Makefile
sql_parser/parser/Makefile
sql_parser/Test/Makefile
Test/Makefile
Test/common/Makefile
Test/utility/Makefile
txn_manager/Makefile
utility/Makefile
codegen/Makefile
stmt_handler/Makefile
])
AC_OUTPUT