-
Notifications
You must be signed in to change notification settings - Fork 32
/
configure_rpcrest.ac
66 lines (53 loc) · 1.81 KB
/
configure_rpcrest.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
#
# Autoconf script RPCREST
#
#
# Define variables for the RPCREST version number.
#
m4_define([version_major],[1])
m4_define([version_minor],[0])
m4_define([version_micro],[1])
AC_INIT([rpcrest], [version_major.version_minor.version_micro], [support@eprosima.com], [eProsima RPC over REST], [http://eprosima.com/])
CONFIG_ARGS="$*"
AC_SUBST(CONFIG_ARGS)
#Minimum autoconf version we require.
AC_PREREQ([2.59])
AM_INIT_AUTOMAKE([1.10 no-define foreign subdir-objects])
# Makes version available in config.h
AC_DEFINE(RPC_VERSION_MAJOR, version_major, [rpcrest version major])
AC_DEFINE(RPC_VERSION_MINOR, version_minor, [rpcrest version minor])
AC_DEFINE(RPC_VERSION_MICRO, version_micro, [rpcrest version micro])
# Check stdcxx
AX_CXX_COMPILE_STDCXX_11(,optional)
AS_IF([test $HAVE_CXX11 = 1],
[AC_DEFINE(HAVE_CXX0X, 1, ["Define if g++ supports C++0x features. "])],
[AX_CXX_COMPILE_STDCXX_0X()])
# Check endianess
AC_C_BIGENDIAN(
AC_DEFINE(__BIG_ENDIAN__, 1, [machine is bigendian]),
AC_DEFINE(__BIG_ENDIAN__, 0, [machine is littleendian]),
AC_MSG_ERROR(unknown endianess),
AC_MSG_ERROR(universial endianess not supported)
)
AC_DEFINE(EPROSIMA_RPC_LIB_NAME , rpcrest, [Define the name of the library])
AC_DEFINE(RPC_WITH_FASTRTPS , 0, [Not used in this library])
AC_DEFINE(RPC_WITH_RTIDDS , 0, [Not used in this library])
AX_BOOST_BASE([1.53],
AC_MSG_NOTICE([Found Boost]),
AC_MSG_ERROR([Could not find Boost]))
AX_BOOST_THREAD
AX_BOOST_SYSTEM
AX_BOOST_DATE_TIME
AX_BOOST_CHRONO
# Check for libraries used in the main build process
AC_PROG_CXX
AC_PROG_CPP
# Init libtool
AC_CONFIG_MACRO_DIR([m4])
LT_INIT
AC_CONFIG_HEADERS(include/rpcrest/config.h:include/rpcrest/config.h.in)
AC_CONFIG_FILES([Makefile
include/Makefile
src/Makefile
.bin/rpcrestgen])
AC_OUTPUT