-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfigure.ac
185 lines (156 loc) · 6.67 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
AC_INIT(ROFL-COMMON, m4_esyscmd_s(cat VERSION), rofl-devel@roflibs.org, rofl-common, http://www.roflibs.org)
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects tar-pax])
AC_GNU_SOURCE
AC_PROG_INSTALL
AC_PROG_CC
AC_PROG_CXX
AC_PROG_LD
AM_PROG_CC_C_O
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
PKG_PROG_PKG_CONFIG
AUTOCONF_ENV="SHELL=/bin/sh"
LT_INIT
AC_ENABLE_STATIC
# default flags
CFLAGS="-std=gnu89 -Werror -Wall $CFLAGS"
CXXFLAGS="-std=c++11 -Werror -Wall $CXXFLAGS -Wno-error=array-bounds -Wno-error=maybe-uninitialized"
AC_DEFINE([__STDC_FORMAT_MACROS], [], [Description])
# Perform GCC checkings
m4_include([config/gcc.m4])
# Google's sanitizers
m4_include([config/google_sanitizers.m4])
# Debug
m4_include([config/debug.m4])
# Endianness
m4_include([config/endianness.m4])
# Check for profiling mode
m4_include([config/profiling.m4])
# Experimental
m4_include([config/experimental.m4])
# Checking libs
m4_include([config/versioning.m4])
# Checking OpenSSL
m4_include([config/openssl.m4])
# check for glog
PKG_CHECK_MODULES([GLOG], libglog >= 0.3.3,
[ CPPFLAGS="$CPPFLAGS $GLOG_CFLAGS"
LIBS="$LIBS $GLOG_LIBS $GFLAGS_LIBS" ],
[ AC_MSG_ERROR([minimum version of glog is 0.3.3]) ])
AC_SEARCH_LIBS([pthread_rwlock_wrlock], [pthread], [], [AC_MSG_ERROR([lib pthread not found])])
# Output files
AC_CONFIG_FILES([
Makefile
src/Makefile
src/rofl/Makefile
src/rofl/common/Makefile
src/rofl/common/openflow/Makefile
src/rofl/common/openflow/messages/Makefile
src/rofl/common/openflow/extensions/Makefile
src/rofl/common/openflow/extensions/actions/Makefile
src/rofl/common/openflow/extensions/matches/Makefile
src/rofl/common/openflow/experimental/Makefile
src/rofl/common/openflow/experimental/actions/Makefile
src/rofl/common/openflow/experimental/matches/Makefile
src/rofl/rofl_common.pc
examples/Makefile
examples/ethswctld/Makefile
examples/tcpclient/Makefile
examples/tcpserver/Makefile
examples/datapath/Makefile
examples/controller/Makefile
tools/Makefile
tools/rpmbuild/SPECS/rofl-common.spec
test/Makefile
test/rofl/Makefile
test/rofl/common/Makefile
test/rofl/common/cthread/Makefile
test/rofl/common/caddress/Makefile
test/rofl/common/caddrinfo/Makefile
test/rofl/common/caddrinfos/Makefile
test/rofl/common/cpacket/Makefile
test/rofl/common/csegmsg/Makefile
test/rofl/common/csockaddr/Makefile
test/rofl/common/crofbase/Makefile
test/rofl/common/crofchan/Makefile
test/rofl/common/crofconn/Makefile
test/rofl/common/crofqueue/Makefile
test/rofl/common/crofsock/Makefile
test/rofl/common/openflow/Makefile
test/rofl/common/openflow/cofaction/Makefile
test/rofl/common/openflow/cofactions/Makefile
test/rofl/common/openflow/cofasyncconfig/Makefile
test/rofl/common/openflow/cofbucketcounter/Makefile
test/rofl/common/openflow/cofbucketcounters/Makefile
test/rofl/common/openflow/cofflowmod/Makefile
test/rofl/common/openflow/cofflowstatsarray/Makefile
test/rofl/common/openflow/cofgroupdescstatsarray/Makefile
test/rofl/common/openflow/cofgroupmod/Makefile
test/rofl/common/openflow/cofgroupstatsarray/Makefile
test/rofl/common/openflow/cofhelloelemversionbitmap/Makefile
test/rofl/common/openflow/cofinstruction/Makefile
test/rofl/common/openflow/cofmeterband/Makefile
test/rofl/common/openflow/cofmeterbands/Makefile
test/rofl/common/openflow/cofmeterbandstats/Makefile
test/rofl/common/openflow/cofmeterbandstatsarray/Makefile
test/rofl/common/openflow/cofmeterconfig/Makefile
test/rofl/common/openflow/cofmeterconfigarray/Makefile
test/rofl/common/openflow/cofmeterfeatures/Makefile
test/rofl/common/openflow/cofmeterstats/Makefile
test/rofl/common/openflow/cofmeterstatsarray/Makefile
test/rofl/common/openflow/cofqueueprop/Makefile
test/rofl/common/openflow/cofqueueprops/Makefile
test/rofl/common/openflow/cofqueuestatsarray/Makefile
test/rofl/common/openflow/cofpacketqueue/Makefile
test/rofl/common/openflow/cofpacketqueues/Makefile
test/rofl/common/openflow/cofportstatsarray/Makefile
test/rofl/common/openflow/cofrole/Makefile
test/rofl/common/openflow/coftablefeatureprop/Makefile
test/rofl/common/openflow/coftablefeatureprops/Makefile
test/rofl/common/openflow/coftablefeatures/Makefile
test/rofl/common/openflow/coftablestatsarray/Makefile
test/rofl/common/openflow/coftables/Makefile
test/rofl/common/openflow/coxmatch/Makefile
test/rofl/common/openflow/coxmatches/Makefile
test/rofl/common/openflow/exceptions/Makefile
test/rofl/common/openflow/messages/Makefile
test/rofl/common/openflow/messages/cofmsgaggrstats/Makefile
test/rofl/common/openflow/messages/cofmsgdescstats/Makefile
test/rofl/common/openflow/messages/cofmsgexperimenterstats/Makefile
test/rofl/common/openflow/messages/cofmsgflowstats/Makefile
test/rofl/common/openflow/messages/cofmsggroupdescstats/Makefile
test/rofl/common/openflow/messages/cofmsggroupfeaturesstats/Makefile
test/rofl/common/openflow/messages/cofmsggroupstats/Makefile
test/rofl/common/openflow/messages/cofmsgmeterconfigstats/Makefile
test/rofl/common/openflow/messages/cofmsgmeterfeaturesstats/Makefile
test/rofl/common/openflow/messages/cofmsgmeterstats/Makefile
test/rofl/common/openflow/messages/cofmsgportdescstats/Makefile
test/rofl/common/openflow/messages/cofmsgportstats/Makefile
test/rofl/common/openflow/messages/cofmsgqueuestats/Makefile
test/rofl/common/openflow/messages/cofmsgtablefeaturesstats/Makefile
test/rofl/common/openflow/messages/cofmsgtablestats/Makefile
test/rofl/common/openflow/messages/cofmsgasyncconfig/Makefile
test/rofl/common/openflow/messages/cofmsgbarrier/Makefile
test/rofl/common/openflow/messages/cofmsgconfig/Makefile
test/rofl/common/openflow/messages/cofmsgecho/Makefile
test/rofl/common/openflow/messages/cofmsgerror/Makefile
test/rofl/common/openflow/messages/cofmsgexperimenter/Makefile
test/rofl/common/openflow/messages/cofmsgfeatures/Makefile
test/rofl/common/openflow/messages/cofmsgflowmod/Makefile
test/rofl/common/openflow/messages/cofmsgflowremoved/Makefile
test/rofl/common/openflow/messages/cofmsggroupmod/Makefile
test/rofl/common/openflow/messages/cofmsghello/Makefile
test/rofl/common/openflow/messages/cofmsgmetermod/Makefile
test/rofl/common/openflow/messages/cofmsgpacketin/Makefile
test/rofl/common/openflow/messages/cofmsgpacketout/Makefile
test/rofl/common/openflow/messages/cofmsgportmod/Makefile
test/rofl/common/openflow/messages/cofmsgportstatus/Makefile
test/rofl/common/openflow/messages/cofmsgqueueconfig/Makefile
test/rofl/common/openflow/messages/cofmsgrole/Makefile
test/rofl/common/openflow/messages/cofmsgtablemod/Makefile
src/rofl_common_conf.h])
# Doxygen (here to be the last Makefile)
m4_include([config/doxygen.m4])
AC_OUTPUT