-
Notifications
You must be signed in to change notification settings - Fork 73
/
configure.ac
83 lines (78 loc) · 1.85 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
AC_INIT(executors, [0.1.0])
AC_CONFIG_SRCDIR(include/experimental/type_traits)
AM_MAINTAINER_MODE
AM_INIT_AUTOMAKE([tar-ustar])
AC_CANONICAL_HOST
AM_PROG_CC_C_O
AC_PROG_CXX
AC_LANG(C++)
AC_PROG_RANLIB
AC_ARG_WITH(boost,
AC_HELP_STRING([--with-boost=DIR],[location of boost distribution]),
[
if test "${withval}" = no; then
CPPFLAGS="$CPPFLAGS -DEXECUTORS_NO_BOOST=1"
else
CPPFLAGS="$CPPFLAGS -I${withval}"
LIBS="$LIBS -L${withval}/stage/lib -lboost_coroutine -lboost_context -lboost_thread -lboost_system"
fi
],
[
CPPFLAGS="$CPPFLAGS -DEXECUTORS_NO_BOOST=1"
])
WINDOWS=no
case $host in
*-*-linux*)
CXXFLAGS="$CXXFLAGS -pthread"
LDFLAGS="$LDFLAGS -pthread"
;;
*-*-solaris*)
if test "$GXX" = yes; then
CXXFLAGS="$CXXFLAGS -D_PTHREADS"
else
# We'll assume Sun's CC.
CXXFLAGS="$CXXFLAGS -mt"
fi
LIBS="$LIBS -lpthread"
;;
*-*-mingw32*)
CXXFLAGS="$CXXFLAGS -mthreads"
LDFLAGS="$LDFLAGS -mthreads"
;;
*-pc-cygwin*)
;;
*-apple-darwin*)
;;
*-*-freebsd*)
CXXFLAGS="$CXXFLAGS -pthread"
LDFLAGS="$LDFLAGS -pthread"
;;
*-*-netbsd*)
CXXFLAGS="$CXXFLAGS -pthread"
LDFLAGS="$LDFLAGS -pthread"
;;
esac
if test "$GXX" = yes; then
CPPFLAGS="-std=c++1y -Wno-unused-local-typedefs $CPPFLAGS"
fi
AC_OUTPUT([
Makefile
include/Makefile
src/Makefile
src/examples/Makefile
src/examples/channel/Makefile
src/examples/executor/Makefile
src/examples/timer/Makefile
src/examples/trading/Makefile
src/tests/Makefile
src/tests/execution_context/Makefile
src/tests/executor/Makefile
src/tests/loop_scheduler/Makefile
src/tests/memory/Makefile
src/tests/no_executor/Makefile
src/tests/performance/Makefile
src/tests/strand/Makefile
src/tests/system_executor/Makefile
src/tests/thread_pool/Makefile
src/tests/timer/Makefile
src/tests/traits/Makefile])