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
|
AC_INIT(mdds, 0.5.4, kohei.yoshida@gmail.com)
VERSION=AC_PACKAGE_VERSION
AC_SUBST(VERSION)
PACKAGE_TARNAME=AC_PACKAGE_TARNAME
AC_SUBST(PACKAGE_TARNAME)
AC_ARG_WITH(hash-container,
[
--with-hash-container specify the type of hash containers to use in test
programs. Supported types are: boost, c++0x, or
stlport. c++0x is used if unspecified.
With c++0x, we assume that unordered_map and
unordered_set are available under the std namespace,
whereas with boost they are assumed to be defined in
the boost namespace. When stlport is specified, we
assume that hash_map and hash_set are available
under the std namespace.
Example: --with-hash-container=boost],
,with_hash_container=c++0x)
AC_MSG_CHECKING([hash container type])
AC_MSG_RESULT([$with_hash_container])
OBJDIR=./obj
SRCDIR=./src
INCDIR=./include
QUICKCHECKDIR=./quickcheck
AC_SUBST(OBJDIR)
AC_SUBST(SRCDIR)
AC_SUBST(INCDIR)
AC_SUBST(QUICKCHECKDIR)
CPPFLAGS="-DDEBUG_NODE_BASE -DUNIT_TEST -Wall -Os -g -pedantic-errors"
if test $with_hash_container = stlport; then
CPPFLAGS="$CPPFLAGS -DMDDS_HASH_CONTAINER_STLPORT"
elif test $with_hash_container = boost; then
CPPFLAGS="$CPPFLAGS -DMDDS_HASH_CONTAINER_BOOST"
else
CPPFLAGS="$CPPFLAGS -std=c++0x"
fi
AC_SUBST(CPPFLAGS)
AC_OUTPUT(Makefile)
AC_OUTPUT(example/Makefile)
AC_OUTPUT(misc/mdds.spec)
AC_OUTPUT(VERSION)
|