blob: d4c7a7576d335d9394b4490c749eb4ac3b23ccd9 [file] [log] [blame]
Ed Warnicke19668e82018-07-18 07:53:08 -05001AC_INIT([vpp], [18.10], [vpp-dev@fd.io])
Damjan Marion7cd468a2016-12-19 23:05:39 +01002LT_INIT
3AC_CONFIG_AUX_DIR([.])
4AM_INIT_AUTOMAKE([subdir-objects])
5AM_SILENT_RULES([yes])
Damjan Marionc0c919c2018-05-30 09:55:05 +02006AC_CONFIG_FILES([ \
7 Makefile \
8 plugins/Makefile \
9 vpp-api/python/Makefile \
10 vpp-api/java/Makefile \
11 vpp-api/vapi/Makefile \
12 vlib/config.h \
Neale Ranns3451d982018-07-23 05:05:48 -040013 vppinfra/config.h \
Damjan Marionc0c919c2018-05-30 09:55:05 +020014])
Damjan Marioncb034b92016-12-28 18:38:59 +010015AC_CONFIG_MACRO_DIR([m4])
Damjan Marion7cd468a2016-12-19 23:05:39 +010016
17AC_PROG_CC
Neale Ranns812ed392017-10-16 04:20:13 -070018AC_PROG_CPP
Damjan Marion7cd468a2016-12-19 23:05:39 +010019AM_PROG_AS
20AM_PROG_LIBTOOL
Tomofumi Hayashidc90d422017-01-25 13:53:26 +090021AM_PATH_PYTHON
Damjan Marion7cd468a2016-12-19 23:05:39 +010022
Damjan Marion0be5ec32016-12-28 17:51:56 +010023AM_CONDITIONAL([CROSSCOMPILE], [test "$cross_compiling" == "yes"])
24
Damjan Marion7cd468a2016-12-19 23:05:39 +010025###############################################################################
26# Macros
27###############################################################################
28
29AC_DEFUN([ENABLE_ARG],
30[
31 AC_ARG_ENABLE($1,
32 AC_HELP_STRING(patsubst([--enable-$1],[_],[-]), $2),
33 [enable_$1=yes n_enable_$1=1],
34 [enable_$1=no n_enable_$1=0])
35 AM_CONDITIONAL(m4_toupper(ENABLE_$1), test "$enable_$1" = "yes")
36 m4_append([list_of_enabled], [$1], [, ])
37])
38
39AC_DEFUN([DISABLE_ARG],
40[
41 AC_ARG_ENABLE($1,
42 AC_HELP_STRING(patsubst([--disable-$1],[_],[-]), $2),
43 [enable_$1=no n_enable_$1=0],
44 [enable_$1=yes n_enable_$1=1])
45 AM_CONDITIONAL(m4_toupper(ENABLE_$1), test "$enable_$1" = "yes")
46 m4_append([list_of_enabled], [$1], [, ])
47])
48
49AC_DEFUN([WITH_ARG],
50[
51 AC_ARG_WITH($1,
52 AC_HELP_STRING(patsubst([--with-$1],[_],[-]), $2),
53 [with_$1=yes n_with_$1=1],
54 [with_$1=no n_with_$1=0])
55 AM_CONDITIONAL(m4_toupper(WITH_$1), test "$with_$1" = "yes")
56 m4_append([list_of_with], [$1], [, ])
57])
58
59AC_DEFUN([WITHOUT_ARG],
60[
61 AC_ARG_WITH($1,
62 AC_HELP_STRING(patsubst([--without-$1],[_],[-]), $2),
63 [with_$1=no n_with_$1=0],
64 [with_$1=yes n_with_$1=1])
65 AM_CONDITIONAL(m4_toupper(WITH_$1), test "$with_$1" = "yes")
66 m4_append([list_of_with], [$1], [, ])
67])
68
69AC_DEFUN([PLUGIN_ENABLED],
70[
71 AC_ARG_ENABLE($1_plugin,
72 AC_HELP_STRING([--disable-$1-plugin], [Do not build $1 plugin]),
73 [enable_$1_plugin=no],
74 [enable_$1_plugin=yes ])
75 AM_CONDITIONAL(m4_toupper(ENABLE_$1_PLUGIN), test "$enable_$1_plugin" = "yes")
76 m4_append([list_of_plugins], [$1], [, ])
77])
78
79AC_DEFUN([PLUGIN_DISABLED],
80[
81 AC_ARG_ENABLE($1_plugin,
82 AC_HELP_STRING([--enable-$1-plugin], [Build $1 plugin]),
83 [enable_$1_plugin=yes ],
84 [enable_$1_plugin=no])
Pablo Camarilloa084d622017-03-03 20:47:55 +010085 AM_CONDITIONAL(m4_toupper(ENABLE_$1_PLUGIN), test "$enable_$1_plugin" = "yes")
Damjan Marion7cd468a2016-12-19 23:05:39 +010086 m4_append([list_of_plugins], [$1], [, ])
87])
88
89AC_DEFUN([PRINT_VAL], [ AC_MSG_RESULT(AC_HELP_STRING($1,$2)) ])
90
Sergio Gonzalez Monroy3b12cdc2017-06-06 15:29:16 +010091AC_DEFUN([DPDK_IS_PMD_ENABLED],
92[
93 AC_MSG_CHECKING([for $1 in rte_config.h])
94 AC_COMPILE_IFELSE(
95 [AC_LANG_PROGRAM(
96 [[#include <rte_config.h>]],
97 [[return RTE_$1;]],
98 )],
99 [with_$2=yes]
100 [AC_MSG_RESULT([yes])],
101 [with_$2=no]
102 [AC_MSG_RESULT([no])]
103 )
104 AM_CONDITIONAL(m4_toupper(WITH_$2), test "$with_$2" = "yes")
105 m4_append_uniq([list_of_with], [$2], [, ])
106])
107
Damjan Marion04f3db32017-11-10 21:55:45 +0100108# Check if compiler supports specific flag
109AC_DEFUN([CC_CHECK_FLAG],
110[
111 AC_MSG_CHECKING([if $CC supports $1])
112 AC_LANG_PUSH([C])
113 ac_saved_cflags="$CFLAGS"
114 CFLAGS="-Werror $1"
115 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
Damjan Marionbf024e62017-11-14 15:21:19 +0100116 [cc_flag_check=yes],
117 [cc_flag_check=no]
Damjan Marion04f3db32017-11-10 21:55:45 +0100118)
Damjan Marioneecb26d2017-11-15 13:57:20 +0100119 AC_MSG_RESULT([$cc_flag_check])
Damjan Marion04f3db32017-11-10 21:55:45 +0100120 CFLAGS="$ac_saved_cflags"
121 AC_LANG_POP([C])
122])
123
Dave Barach473f4612018-05-29 17:06:45 -0400124# This function deduces the BUILD HOST cache-line size by
125# inspecting /sys and/or /proc depending on the kernel / arch in use
126as_fn_log2_cache_line_size_p()
127{
128 sysfs_cache_path="/sys/devices/system/cpu/cpu0/cache/index0/coherency_line_size"
129 m4_define([read_cache_line_size_from_sysfs], [`head -n 1 $1`])
130 m4_define([read_midr_implementer],
131 [`awk '/implementer/ {print $[]4;exit}' /proc/cpuinfo`])
132 m4_define([read_midr_cpuid],
133 [`awk '/part/ {print $[]4;exit}' /proc/cpuinfo`])
134
135 #Check if sysfs path exists,to ignore warning, else do manual mapping
136 AC_CHECK_FILE($sysfs_cache_path,
137 [
138 cache_line_size=read_cache_line_size_from_sysfs($sysfs_cache_path);
139 if test $cache_line_size = "32" ; then
140 log2_cache_line_size="5";
141 elif test $cache_line_size = "64" ; then
142 log2_cache_line_size="6";
143 elif test $cache_line_size = "128" ; then
144 log2_cache_line_size="7";
145 fi
146 AC_MSG_NOTICE([cache_line_size/log2_cache_line_size deduced as $cache_line_size/$log2_cache_line_size])
147 ],
148 [
149 #Define Implementer Ids here
150 implementer_id_cavium=0x43
151
152 #Define CPU Ids here
153 cpu_id_cavium_thunderx_cn88xx=0x0a1
154 cpu_id_cavium_thunderx2_cn99xx=0x0af
155
156 implementer=read_midr_implementer()
157 cpuid=read_midr_cpuid()
158
159 AC_MSG_CHECKING([for implementerid/cpuid to set log2_cache_line_size])
160
161 # Switch case to map log2_cache_line_size for implementer/cpuid combination.
162 # Default case of Switch sets log2_cache_line_size to 6
163 AS_CASE($implementer,
164 #Switch Case for Cavium SoC's
165 [$implementer_id_cavium],
166 [AS_CASE($cpuid,
167 #Only ThunderX2 is 64B. Remaining chips are 128B
168 [$cpu_id_cavium_thunderx2_cn99xx],
169 [AC_MSG_RESULT([Cavium/ThunderX2]);log2_cache_line_size=6],
170 [$cpu_id_cavium_thunderx_cn88xx],
171 [AC_MSG_RESULT([Cavium/ThunderX]);log2_cache_line_size=7],
172 [log2_cache_line_size=7;AC_MSG_RESULT([Cavium/OCTEONTx($cpuid)])]
173 )],
174 #Add implementer specific case here:
175
176 #Default case: 64B for all SoC's
177 [log2_cache_line_size=6;AC_MSG_RESULT([$implementer/$cpuid])]
178 )
179 AC_MSG_NOTICE([log2_cache_line_size deduced as $log2_cache_line_size])
180 ]
181 )
182 echo $log2_cache_line_size
183}
184
Damjan Marion7cd468a2016-12-19 23:05:39 +0100185###############################################################################
186# configure arguments
187###############################################################################
188
189# --enable-X
190ENABLE_ARG(tests, [Enable unit tests])
191ENABLE_ARG(dpdk_shared, [Enable unit tests])
192ENABLE_ARG(perftool, [Enable perftool])
193ENABLE_ARG(g2, [Enable g2])
Dave Barach6a5adc32018-07-04 10:56:23 -0400194ENABLE_ARG(dlmalloc, [Enable dlmalloc])
Damjan Marion7cd468a2016-12-19 23:05:39 +0100195
196# --disable-X
197DISABLE_ARG(vlib, [Disable vlib and dependant libs and binaries])
198DISABLE_ARG(svm, [Disable svm and dependant libs and binaries])
Damjan Marioncb034b92016-12-28 18:38:59 +0100199DISABLE_ARG(papi, [Disable Python API bindings])
200DISABLE_ARG(japi, [Disable Java API bindings])
Damjan Marion7cd468a2016-12-19 23:05:39 +0100201
202# --with-X
Damjan Marion7cd468a2016-12-19 23:05:39 +0100203
204# --without-X
Damjan Mariona9a951f2017-01-16 22:06:10 +0100205WITHOUT_ARG(libssl, [Disable libssl])
Damjan Marion7cd468a2016-12-19 23:05:39 +0100206WITHOUT_ARG(apicli, [Disable binary api CLI])
Florin Coras371ca502018-02-21 12:07:41 -0800207WITHOUT_ARG(mbedtls, [Disable mbedtls])
Sachin Saxenaee6ddce2018-05-10 16:22:09 +0530208WITHOUT_ARG(libnuma, [for non numa architectures])
Damjan Marion7cd468a2016-12-19 23:05:39 +0100209
Dave Barach473f4612018-05-29 17:06:45 -0400210AC_ARG_WITH(log2-cache-line-bytes,
211 AC_HELP_STRING([--with-log2-cache-line-bytes],[Set the cache line size, --with-log2-cache-line-bytes=5|6|7|auto]),
212 [case $with_log2_cache_line_bytes in
213 5 | 6 | 7);;
214 auto) with_log2_cache_line_bytes=`as_fn_log2_cache_line_size_p`;;
215 *) with_log2_cache_line_bytes="CONFIG_ERROR";;
216 esac],
217 [with_log2_cache_line_bytes=`as_fn_log2_cache_line_size_p`])
218
Damjan Marion7cd468a2016-12-19 23:05:39 +0100219AC_ARG_WITH(unix,
220 AC_HELP_STRING([--with-unix],[Compile unix version of clib]),
221 [],
222 [case $host_os in
223 darwin* | linux*) with_unix=yes;;
224 *) with_unix=no;;
225 esac])
226
227AM_CONDITIONAL(WITH_UNIX, test "$with_unix" = "yes")
228
229AC_ARG_WITH(pre-data,
230 AC_HELP_STRING([--with-pre-data],[Set buffer rewrite space]),
231 [case $with_pre_data in
232 128) ;;
233 256) ;;
234 *) with_pre_data="pre-data-not-set" ;;
235 esac], [with_pre_data=128])
236
Dave Barach6a5adc32018-07-04 10:56:23 -0400237AM_CONDITIONAL(ENABLE_DLMALLOC, test "$enable_dlmalloc" = "yes")
238
Damjan Marion7cd468a2016-12-19 23:05:39 +0100239###############################################################################
Damjan Marionba3c7732017-11-10 20:26:50 +0100240# Target CPU flags
241###############################################################################
242
Damjan Marion04f3db32017-11-10 21:55:45 +0100243# Check if compiler supports march=core-avx2
244CC_CHECK_FLAG("-march=core-avx2")
245AS_IF([test "$cc_flag_check" = yes],
246 [march_core_avx2=yes],
247 [march_core_avx2=no])
248AM_CONDITIONAL([CC_SUPPORTS_AVX2], [test "$march_core_avx2" = "yes"])
249
250# Check if compiler supports march=skylake-avx512
251CC_CHECK_FLAG("-march=skylake-avx512")
252AS_IF([test "$cc_flag_check" = yes],
253 [march_skylake_avx512=yes],
254 [march_skylake_avx512=no])
255AM_CONDITIONAL([CC_SUPPORTS_AVX512], [test "$march_skylake_avx512" = "yes"])
256
Sachin Saxena432bf672018-05-04 15:08:29 +0530257AS_CASE([$host_cpu],
Damjan Marionba3c7732017-11-10 20:26:50 +0100258 [x86_64], [CPU_FLAGS="-march=corei7 -mtune=corei7-avx"],
259 [aarch64], [CPU_FLAGS="-march=armv8-a+crc"],
260 [CPU_FLAGS=""],
261)
262AC_SUBST([CPU_FLAGS])
263
Damjan Marion04f3db32017-11-10 21:55:45 +0100264AC_SUBST([CPU_AVX2_FLAGS],"-march=core-avx2 -mtune=core-avx2")
265AC_SUBST([CPU_AVX512_FLAGS],"-march=skylake-avx512 -mtune=skylake-avx512")
266
Sachin Saxena432bf672018-05-04 15:08:29 +0530267AM_CONDITIONAL([CPU_X86_64], [test "$host_cpu" = "x86_64"])
268AM_CONDITIONAL([CPU_AARCH64], [test "$host_cpu" = "aarch64"])
Damjan Marion04f3db32017-11-10 21:55:45 +0100269
Damjan Marionba3c7732017-11-10 20:26:50 +0100270###############################################################################
Damjan Marion74a6dab2018-03-26 13:36:46 +0200271# misc compiler flags
272###############################################################################
273
274CC_CHECK_FLAG("-Wno-address-of-packed-member")
275AS_IF([test "$cc_flag_check" = yes],
276 [CFLAGS="${CFLAGS} -Wno-address-of-packed-member"], [])
277
278###############################################################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100279# Substitutions and defines
280###############################################################################
281
282AC_SUBST(PRE_DATA_SIZE, [$with_pre_data])
Dave Barach473f4612018-05-29 17:06:45 -0400283AC_SUBST(LOG2_CACHE_LINE_BYTES, [$with_log2_cache_line_bytes])
Damjan Marion7cd468a2016-12-19 23:05:39 +0100284AC_SUBST(APICLI, [-DVPP_API_TEST_BUILTIN=${n_with_apicli}])
Damjan Marion5f21e1b2018-08-01 14:38:36 +0200285AC_SUBST(DLMALLOC, [${n_enable_dlmalloc}])
Damjan Marion7cd468a2016-12-19 23:05:39 +0100286
Damjan Marion7cd468a2016-12-19 23:05:39 +0100287AC_DEFINE_UNQUOTED(DPDK_SHARED_LIB, [${n_enable_dpdk_shared}])
Damjan Mariona9a951f2017-01-16 22:06:10 +0100288AC_DEFINE_UNQUOTED(WITH_LIBSSL, [${n_with_libssl}])
Florin Coras371ca502018-02-21 12:07:41 -0800289AC_DEFINE_UNQUOTED(WITH_MBEDTLS, [${n_with_mbedtls}])
Sachin Saxenaee6ddce2018-05-10 16:22:09 +0530290AC_DEFINE_UNQUOTED(WITH_LIBNUMA, [${n_with_libnuma}])
Damjan Marion7cd468a2016-12-19 23:05:39 +0100291
Damjan Marioncb034b92016-12-28 18:38:59 +0100292
293# Silence following noise:
294# ar: `u' modifier ignored since `D' is the default (see `U')
295AR_FLAGS=cr
296AC_SUBST(AR_FLAGS)
297
298###############################################################################
299# Plugins
300###############################################################################
301
302# Please keep alphabetical order
Andrew Yourtchenko669d07d2017-11-17 14:38:18 +0100303PLUGIN_ENABLED(abf)
Damjan Marioncb034b92016-12-28 18:38:59 +0100304PLUGIN_ENABLED(acl)
Damjan Marionb4ff07a2018-02-07 22:35:06 +0100305PLUGIN_ENABLED(avf)
Dave Barachaaacfbc2018-03-10 14:57:00 -0500306PLUGIN_ENABLED(cdp)
Damjan Marion374e2c52017-03-09 20:38:15 +0100307PLUGIN_ENABLED(dpdk)
Ole Troan5c749732017-03-13 13:39:52 +0100308PLUGIN_ENABLED(flowprobe)
Neale Ranns7758bf62018-02-14 06:34:20 -0800309PLUGIN_ENABLED(gbp)
Hongjun Nief486b12017-04-12 19:21:16 +0800310PLUGIN_ENABLED(gtpu)
Jakub Grajciar7b867a82017-12-08 16:28:42 +0100311PLUGIN_ENABLED(igmp)
Damjan Marioncb034b92016-12-28 18:38:59 +0100312PLUGIN_ENABLED(ila)
313PLUGIN_ENABLED(ioam)
Damjan Marion374e2c52017-03-09 20:38:15 +0100314PLUGIN_ENABLED(ixge)
Neale Ranns7758bf62018-02-14 06:34:20 -0800315PLUGIN_ENABLED(l2e)
Steven9cd2d7a2017-12-20 12:43:01 -0800316PLUGIN_ENABLED(lacp)
Damjan Marioncb034b92016-12-28 18:38:59 +0100317PLUGIN_ENABLED(lb)
Dave Barach7055e262018-06-18 13:16:39 -0400318PLUGIN_ENABLED(mactime)
Damjan Marion92cdd722017-12-26 13:40:13 +0000319PLUGIN_ENABLED(marvell)
Damjan Marioneaabe072017-03-22 10:18:13 +0100320PLUGIN_ENABLED(memif)
Hongjun Ni62f9cdd2017-07-04 20:11:57 +0800321PLUGIN_ENABLED(pppoe)
Neale Ranns7758bf62018-02-14 06:34:20 -0800322PLUGIN_ENABLED(nat)
Ole Troan381e9a92018-06-22 11:32:12 +0200323PLUGIN_ENABLED(map)
Francois Cladb4d43d72018-01-17 12:18:41 +0100324PLUGIN_ENABLED(srv6ad)
Francois Clad39d91fe2018-01-17 16:08:41 +0100325PLUGIN_ENABLED(srv6am)
Francois Cladba7992a2018-01-16 17:52:24 +0100326PLUGIN_ENABLED(srv6as)
Pierre Pfister0906c5c2017-09-27 16:17:31 +0200327PLUGIN_ENABLED(stn)
Florin Corasd77eee62018-03-07 08:49:27 -0800328PLUGIN_ENABLED(tlsmbedtls)
Florin Coras58d36f02018-03-09 13:05:53 -0800329PLUGIN_ENABLED(tlsopenssl)
Dave Barach8b5dc4f2018-07-23 18:00:54 -0400330PLUGIN_ENABLED(unittest)
Damjan Marioncb034b92016-12-28 18:38:59 +0100331
Damjan Marion7cd468a2016-12-19 23:05:39 +0100332###############################################################################
333# Dependency checks
334###############################################################################
Marco Varlese3f6ede32018-03-06 08:09:04 +0100335AC_CHECK_FUNC([memfd_create], [AC_DEFINE([HAVE_MEMFD_CREATE], [1], [Define if memfd exists])])
Damjan Marion7cd468a2016-12-19 23:05:39 +0100336
337AM_COND_IF([ENABLE_DPDK_SHARED],
338[
339 AC_CHECK_HEADERS([rte_config.h],
340 [],
341 [AC_MSG_ERROR([DPDK header files not found])],)
342 AC_CHECK_LIB( [dpdk], [rte_eal_init],
343 [],
344 [AC_MSG_ERROR([DPDK shared library not found])],)
345])
346
Sergio Gonzalez Monroyacdc3062017-08-24 14:09:17 +0100347with_aesni_mb_lib=no
348with_isa_l_crypto_lib=no
349
Sergio Gonzalez Monroy3b12cdc2017-06-06 15:29:16 +0100350DPDK_IS_PMD_ENABLED(LIBRTE_PMD_AESNI_MB, dpdk_aesni_mb_pmd)
Sergio Gonzalez Monroyacdc3062017-08-24 14:09:17 +0100351DPDK_IS_PMD_ENABLED(LIBRTE_PMD_AESNI_GCM, dpdk_aesni_gcm_pmd)
352
Sergio Gonzalez Monroy3b12cdc2017-06-06 15:29:16 +0100353AM_COND_IF([WITH_DPDK_AESNI_MB_PMD],
354[
Sergio Gonzalez Monroyacdc3062017-08-24 14:09:17 +0100355 AC_CHECK_LIB([IPSec_MB], [submit_job_sse],
356 [with_aesni_mb_lib=yes],
Sergio Gonzalez Monroy3b12cdc2017-06-06 15:29:16 +0100357 [AC_MSG_ERROR([IPSec_MB library not found])])
358])
359
Sergio Gonzalez Monroy3b12cdc2017-06-06 15:29:16 +0100360AM_COND_IF([WITH_DPDK_AESNI_GCM_PMD],
361[
Damjan Marion45b48502017-11-17 09:46:41 +0100362 AC_CHECK_LIB([IPSec_MB], [submit_job_sse],
363 [with_aesni_mb_lib=yes],
364 [AC_MSG_ERROR([IPSec_MB library not found])])
Sergio Gonzalez Monroyacdc3062017-08-24 14:09:17 +0100365])
366
367m4_append([list_of_with], [aesni_mb_lib], [, ])
368AM_CONDITIONAL(WITH_AESNI_MB_LIB, test "$with_aesni_mb_lib" = "yes")
369
370m4_append([list_of_with], [isa_l_crypto_lib], [, ])
371AM_CONDITIONAL(WITH_ISA_L_CRYPTO_LIB, test "$with_isa_l_crypto_lib" = "yes")
372
Damjan Marion7cd468a2016-12-19 23:05:39 +0100373AM_COND_IF([ENABLE_G2],
374[
375 PKG_CHECK_MODULES(g2, gtk+-2.0)
376])
377
Damjan Marion92cdd722017-12-26 13:40:13 +0000378AM_COND_IF([ENABLE_MARVELL_PLUGIN],
379[
380 AC_CHECK_LIB( [musdk], [pp2_init],
381 [],
382 [
383 AC_MSG_WARN([Marvell MUSDK library with PP2 support not found. Plugin disabled.])
384 enable_marvell_plugin=no
385 AM_CONDITIONAL(ENABLE_MARVELL_PLUGIN, false)
386 ])
387])
388
Florin Corasd77eee62018-03-07 08:49:27 -0800389AM_COND_IF([WITH_MBEDTLS], [],
390[
391 AC_MSG_WARN([mbedtls not enabled. Disabling tlsmbedtls plugin])
392 enable_tlsmbedtls_plugin=no
393 AM_CONDITIONAL(ENABLE_TLSMBEDTLS_PLUGIN, false)
394])
395
396AM_COND_IF([ENABLE_TLSMBEDTLS_PLUGIN],
Florin Coras371ca502018-02-21 12:07:41 -0800397[
398 AC_CHECK_HEADERS([mbedtls/ssl.h], [],
399 [
Florin Corasd77eee62018-03-07 08:49:27 -0800400 AC_MSG_WARN([mbedtls headers not found. TLS engine implementation disabled])
401 enable_tlsmbedtls_plugin=no
402 AM_CONDITIONAL(ENABLE_TLSMBEDTLS_PLUGIN, false)
Florin Coras371ca502018-02-21 12:07:41 -0800403 ], [])
404])
405
Ping Yue43832c2018-05-30 18:16:08 -0400406AM_COND_IF([WITH_LIBSSL],
407[
408 AC_CHECK_LIB([ssl -lcrypto], [SSL_set_async_callback],
409 [
410 AC_DEFINE([HAVE_OPENSSL_ASYNC], [1], [Define if new openssl interface exists])
411 ])
412],
Florin Coras58d36f02018-03-09 13:05:53 -0800413[
414 AC_MSG_WARN([openssl not enabled. Disabling tlsopenssl plugin])
415 enable_tlsopenssl_plugin=no
416 AM_CONDITIONAL(ENABLE_TLSOPENSSL_PLUGIN, false)
417])
Florin Corasd77eee62018-03-07 08:49:27 -0800418
Damjan Marion7cd468a2016-12-19 23:05:39 +0100419###############################################################################
Damjan Marioncb034b92016-12-28 18:38:59 +0100420# JAVA
Damjan Marion7cd468a2016-12-19 23:05:39 +0100421###############################################################################
422
Damjan Marioncb034b92016-12-28 18:38:59 +0100423AM_COND_IF([ENABLE_JAPI],
424[
425 AX_VPP_FIND_JDK8
426 AC_SUBST(JAVA_HOME)
427 AC_SUBST(JAVAC)
428 AC_SUBST(JAVAH)
429 AC_SUBST(JAR)
430])
Damjan Marion7cd468a2016-12-19 23:05:39 +0100431
432###############################################################################
Ole Troan3cc49712017-03-08 12:02:24 +0100433# PYTHON
434###############################################################################
435
436AM_COND_IF([ENABLE_PAPI],
437[
438 AM_PATH_PYTHON
439])
440
441###############################################################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100442# Output
443###############################################################################
444
445AC_OUTPUT
446
447AC_MSG_RESULT([==============================================================================])
448PRINT_VAL([version], $PACKAGE $VERSION)
449PRINT_VAL([prefix], ${prefix})
450PRINT_VAL([libdir], ${libdir})
451PRINT_VAL([includedir], ${includedir})
452PRINT_VAL([CFLAGS], ${CFLAGS})
453PRINT_VAL([CPPFLAGS], ${CPPFLAGS})
454PRINT_VAL([LDFLAGS], ${LDFLAGS})
Dave Barach473f4612018-05-29 17:06:45 -0400455PRINT_VAL([LOG2_CACHE_LINE_BYTES], ${with_log2_cache_line_bytes})
Dave Barach6a5adc32018-07-04 10:56:23 -0400456PRINT_VAL([DLMALLOC], ${enable_dlmalloc})
Damjan Marioncb034b92016-12-28 18:38:59 +0100457AM_COND_IF([ENABLE_JAPI],
458[
459 PRINT_VAL([JAVA_VERSION], ${JAVA_VERSION})
460 PRINT_VAL([JAVA_HOME], ${JAVA_HOME})
461])
Damjan Marion7cd468a2016-12-19 23:05:39 +0100462
463AC_MSG_RESULT([])
464AC_MSG_RESULT([with:])
465m4_foreach([x], m4_dquote(list_of_with), [
466 AC_MSG_RESULT(AC_HELP_STRING(x, m4_join([], [${with_], x, [}])))
467])
468
469AC_MSG_RESULT([])
470AC_MSG_RESULT([enabled:])
471m4_foreach([x], m4_dquote(list_of_enabled), [
472 AC_MSG_RESULT(AC_HELP_STRING(x, m4_join([], [${enable_], x, [}])))
473])
474
475AC_MSG_RESULT([])
476AC_MSG_RESULT([plugins:])
477m4_foreach([x], m4_dquote(list_of_plugins), [
478 AC_MSG_RESULT(AC_HELP_STRING(x, m4_join([], [${enable_], x, [_plugin}])))
479])
480AC_MSG_RESULT([==============================================================================])
481
482