-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
90 lines (78 loc) · 2.43 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
82
83
84
85
86
87
88
89
90
AC_INIT(mdds, 1.2.0, [email protected])
AM_INIT_AUTOMAKE([foreign dist-bzip2 subdir-objects])
AM_MAINTAINER_MODE
VERSION=AC_PACKAGE_VERSION
API_VERSION=1.2
AC_SUBST(VERSION)
AC_SUBST(API_VERSION)
PACKAGE_TARNAME=AC_PACKAGE_TARNAME
AC_SUBST(PACKAGE_TARNAME)
AC_ARG_ENABLE(debug-stdcxx,
[
--enable-debug-stdcxx Enable libstdc++ debug mode during make check.
]
,debug_stdcxx=yes)
OBJDIR=obj
SRCDIR=src
INCDIR=include
MISCDIR=misc
QUICKCHECKDIR=quickcheck
AC_SUBST(OBJDIR)
AC_SUBST(SRCDIR)
AC_SUBST(INCDIR)
AC_SUBST(MISCDIR)
AC_SUBST(QUICKCHECKDIR)
CPPFLAGS="$CPPFLAGS -Wall -O2 -g -pedantic-errors -DMDDS_DEBUG_NODE_BASE -DMDDS_UNIT_TEST -std=c++11"
CPPFLAGS="$CPPFLAGS -I/usr/include -I/usr/local/include"
if test "$debug_stdcxx" = "yes"; then
CPPFLAGS="$CPPFLAGS -D_GLIBCXX_DEBUG"
fi
AC_SUBST(CPPFLAGS)
AC_SUBST(CPPFLAGS_NODEBUG)
AC_PROG_CXX
AC_ARG_ENABLE([memory-tests],
[AS_HELP_STRING([--enable-memory-tests], [Run memory tests.])],
[enable_memory_tests=$enableval],
[enable_memory_tests=no]
)
AS_IF([test "$enable_memory_tests" = yes],
[AC_PATH_PROG([VALGRIND], [valgrind])]
AS_IF([test -z "$VALGRIND"], [AC_MSG_ERROR([valgrind not found])])
)
AM_CONDITIONAL([RUN_MEMORY_TESTS], [test "$enable_memory_tests" = yes])
AC_ARG_ENABLE([docs],
[AS_HELP_STRING([--enable-docs], [Generate docs during build.])],
[enable_docs=$enableval],
[enable_docs=no]
)
AS_IF([test "$enable_docs" = yes],
[
AC_PATH_PROG([DOXYGEN], [doxygen])
AS_IF([test -z "$DOXYGEN"], [AC_MSG_ERROR([doxygen not found])])
AC_PATH_PROG([SPHINX], [sphinx-build])
AS_IF([test -z "$SPHINX"], [AC_MSG_ERROR([sphinx-build not found])])
]
)
AM_CONDITIONAL([BUILD_DOCS], [test "$enable_docs" = yes])
AC_CONFIG_FILES([
Makefile
include/Makefile
include/mdds/Makefile
include/mdds/multi_type_vector/Makefile
example/Makefile
flat_segment_tree_test_mem.mem:src/test.mem.in
misc/mdds-$API_VERSION.pc:misc/mdds.pc.in
multi_type_matrix_test_mem.mem:src/test.mem.in
multi_type_matrix_test_walk_mem.mem:src/test.mem.in
multi_type_vector_test_event_mem.mem:src/test.mem.in
multi_type_vector_test_custom_mem.mem:src/test.mem.in
multi_type_vector_test_default_mem.mem:src/test.mem.in
multi_type_vector_test_collection_mem.mem:src/test.mem.in
point_quad_tree_test_mem.mem:src/test.mem.in
rectangle_set_test_mem.mem:src/test.mem.in
segment_tree_test_mem.mem:src/test.mem.in
sorted_string_map_test_mem.mem:src/test.mem.in
trie_map_test_mem.mem:src/test.mem.in
VERSION
])
AC_OUTPUT