-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
119 lines (100 loc) · 3.66 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
AC_PREREQ(2.64)
AC_INIT([cmsg],
[1.0.0])
PACKAGE_DESCRIPTION="CMSG library implementation in C"
AC_SUBST(PACKAGE_DESCRIPTION)
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules subdir-objects])
AC_PROG_CC_STDC
AC_PROG_CXX
AC_PROG_LN_S
AC_PROG_MKDIR_P
AC_USE_SYSTEM_EXTENSIONS
AC_SYS_LARGEFILE
AC_CONFIG_MACRO_DIR([m4])
AM_SILENT_RULES([yes])
LT_INIT
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_FILES([Makefile
cmsg/Makefile
cmsg-proxy/Makefile
protoc-c/Makefile
cmsg/cmsg.pc
cmsg-proxy/cmsgproxyconfig.pc
cmsg-proxy/cmsgproxyhttpstreamingapi.pc
cmsg-proxy/file_upload_protobuf.pc])
PKG_CHECK_MODULES([GLIB],[glib-2.0])
PKG_CHECK_MODULES([OOP],[liboop],[],[cmsg_prereq=no])
PKG_CHECK_MODULES([GMEM_DIAG],[gmem_diag],[],[unittest_prereq=no])
PKG_CHECK_MODULES([NOVAPROVA],[novaprova],[],[unittest_prereq=no])
PKG_CHECK_MODULES([DEBUG_AWPLUS],[debug_awplus],[],[cmsg_prereq=no])
PKG_CHECK_MODULES([UTILITY],[utility],[],[cmsg_prereq=no])
PKG_CHECK_MODULES([HEALTHCHECK],[healthcheck],[],[cmsg_prereq=no])
PKG_CHECK_MODULES([OPENSSL],[openssl],[],[cmsg_prereq=no])
AX_PTHREAD([],[unittest_prereq=no])
AC_ARG_VAR(PROTOC_PATH, [ Path to the protoc compiler])
AC_ARG_VAR(PROTOC_CMSG_PATH, [ Path to the protoc-cmsg compiler])
AC_ARG_VAR(PROTOC_C_PATH, [ Path to the protoc-c compiler])
AC_ARG_VAR(CMSG_PROTO_PATH, [ Path to the CMSG .proto files])
AC_ARG_VAR(GOOGLEAPIS_PROTO_PATH, [ Path to the googleapis .proto files])
BUILD_PROTOC_CMSG=1
AC_ARG_ENABLE(protoc-cmsg, [ --disable-protoc-cmsg Suppress build of protoc-cmsg],
if test "x$enableval" = xno ; then
BUILD_PROTOC_CMSG=0
fi)
AM_CONDITIONAL(BUILD_PROTOC_CMSG, test $BUILD_PROTOC_CMSG = 1)
BUILD_CMSG=1
AC_ARG_ENABLE(cmsg, [ --disable-cmsg Suppress build of the cmsg library],
if test "x$enableval" = xno ; then
BUILD_CMSG=0
fi)
AM_CONDITIONAL(BUILD_CMSG, test $BUILD_CMSG = 1)
BUILD_CMSG_PROXY=1
AC_ARG_ENABLE(cmsg-proxy, [ --disable-cmsg-proxy Suppress build of the cmsg proxy library],
if test "x$enableval" = xno ; then
BUILD_CMSG_PROXY=0
fi)
AM_CONDITIONAL(BUILD_CMSG_PROXY, test $BUILD_CMSG_PROXY = 1)
BUILD_UNITTEST=0
AC_ARG_ENABLE(unittest, [ --enable-unittest Enable build of cmsg-proxy unit tests],
if test "x$enableval" = xyes ; then
BUILD_UNITTEST=1
AC_DEFINE(HAVE_UNITTEST, 1, [enable unittest code])
fi)
AM_CONDITIONAL(BUILD_UNITTEST, test $BUILD_UNITTEST = 1)
# --- Check if counterd is enabled
HAVE_COUNTERD=0
AC_ARG_ENABLE(counterd, [ --enable-counterd Enable counterd],
if test "x$enableval" = xyes ; then
HAVE_COUNTERD=1
AC_DEFINE(HAVE_COUNTERD, 1, [enable counterd code])
fi)
AM_CONDITIONAL(HAVE_COUNTERD, test $HAVE_COUNTERD = 1)
gl_LD_VERSION_SCRIPT
gl_VALGRIND_TESTS
MY_CODE_COVERAGE
AC_C_BIGENDIAN
AC_OUTPUT
AC_MSG_RESULT([
$PACKAGE $VERSION
CC: ${CC}
CFLAGS: ${CFLAGS}
CXX: ${CXX}
CXXFLAGS: ${CXXFLAGS}
LDFLAGS: ${LDFLAGS}
LIBS: ${LIBS}
prefix: ${prefix}
sysconfdir: ${sysconfdir}
libdir: ${libdir}
includedir: ${includedir}
pkgconfigdir: ${pkgconfigdir}
bigendian: ${ac_cv_c_bigendian}
protobuf version: ${PROTOBUF_VERSION}
cmsg options
protoc-cmsg: ${BUILD_PROTOC_CMSG}
protoc-path: ${PROTOC_PATH}
protoc-c-path: ${PROTOC_C_PATH}
protoc-cmsg-path: ${PROTOC_CMSG_PATH}
cmsg: ${BUILD_CMSG}
counterd: ${HAVE_COUNTERD}
])