configure.ac 1.04 KB
Newer Older
legoc's avatar
legoc committed
1
2
3
4
5
6
# -----------------------------------------------------------------------------
#
# Autoconf
#
# -----------------------------------------------------------------------------

7
AC_INIT(cameo-api-cpp, 0.1.2)
8
LIBRARY_VERSION=0:1:2
legoc's avatar
legoc committed
9

legoc's avatar
legoc committed
10
11
12
13
14
15
16
17
18
19
20
21
22
23
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_SRCDIR(src/cameo/Application.cpp)

AM_INIT_AUTOMAKE([subdir-objects])

AC_PROG_CXX
AC_LANG(C++)

AM_DISABLE_STATIC

AC_PROG_LIBTOOL

AC_CONFIG_MACRO_DIR([m4])

legoc's avatar
legoc committed
24
AC_SUBST(LIBRARY_VERSION)
legoc's avatar
legoc committed
25
26
27
28
29

# temporarily disabled
#AX_CXX_COMPILE_STDCXX_11
AX_PTHREAD(,[AC_MSG_ERROR([Posix threads required])])
AX_BOOST_BASE([1.41],, [AC_MSG_ERROR([Boost 1.41 required])])
legoc's avatar
legoc committed
30
AX_BOOST_DATE_TIME
legoc's avatar
legoc committed
31
AX_BOOST_THREAD
32
AX_BOOST_SYSTEM
legoc's avatar
legoc committed
33
AC_ZMQ
legoc's avatar
legoc committed
34
AC_PROTOBUF_LITE
legoc's avatar
legoc committed
35
36
37
38
39
40
41
42
43

CAMEO_CXXFLAGS="$BOOST_CPPFLAGS \
	$ZMQ_CFLAGS \
	$PROTOBUF_CFLAGS"
	
CAMEO_LDFLAGS="$BOOST_LDFLAGS \
	$ZMQ_LDFLAGS \
	$PROTOBUF_LDFLAGS"
 
legoc's avatar
legoc committed
44
45
CAMEO_LIBS="$BOOST_DATE_TIME_LIB \
	$BOOST_THREAD_LIB \
46
	$BOOST_SYSTEM_LIB \
legoc's avatar
legoc committed
47
48
49
50
51
52
53
54
55
56
57
58
59
	$ZMQ_LIB \
	$PROTOBUF_LIB"

AC_SUBST(CAMEO_CXXFLAGS)
AC_SUBST(CAMEO_LDFLAGS)
AC_SUBST(CAMEO_LIBS)

top_srcdir=.

AC_OUTPUT([
Makefile
src/Makefile
])