Florin Coras | a3bae4e | 2017-09-27 23:31:07 -0700 | [diff] [blame] | 1 | AC_INIT([vpp], [18.01], [vpp-dev@fd.io]) |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 2 | LT_INIT |
| 3 | AC_CONFIG_AUX_DIR([.]) |
| 4 | AM_INIT_AUTOMAKE([subdir-objects]) |
| 5 | AM_SILENT_RULES([yes]) |
Neale Ranns | 812ed39 | 2017-10-16 04:20:13 -0700 | [diff] [blame] | 6 | AC_CONFIG_FILES([Makefile plugins/Makefile vpp-api/python/Makefile vpp-api/java/Makefile vpp-api/vapi/Makefile vpp-api/vom/Makefile]) |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 7 | AC_CONFIG_MACRO_DIR([m4]) |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 8 | |
| 9 | AC_PROG_CC |
Klement Sekera | dc15be2 | 2017-06-12 06:49:33 +0200 | [diff] [blame] | 10 | AC_PROG_CXX |
Neale Ranns | 812ed39 | 2017-10-16 04:20:13 -0700 | [diff] [blame] | 11 | AC_PROG_CPP |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 12 | AM_PROG_AS |
| 13 | AM_PROG_LIBTOOL |
| 14 | AC_PROG_YACC |
Tomofumi Hayashi | dc90d42 | 2017-01-25 13:53:26 +0900 | [diff] [blame] | 15 | AM_PATH_PYTHON |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 16 | |
Damjan Marion | 0be5ec3 | 2016-12-28 17:51:56 +0100 | [diff] [blame] | 17 | AM_CONDITIONAL([CROSSCOMPILE], [test "$cross_compiling" == "yes"]) |
| 18 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 19 | ############################################################################### |
| 20 | # Macros |
| 21 | ############################################################################### |
| 22 | |
| 23 | AC_DEFUN([ENABLE_ARG], |
| 24 | [ |
| 25 | AC_ARG_ENABLE($1, |
| 26 | AC_HELP_STRING(patsubst([--enable-$1],[_],[-]), $2), |
| 27 | [enable_$1=yes n_enable_$1=1], |
| 28 | [enable_$1=no n_enable_$1=0]) |
| 29 | AM_CONDITIONAL(m4_toupper(ENABLE_$1), test "$enable_$1" = "yes") |
| 30 | m4_append([list_of_enabled], [$1], [, ]) |
| 31 | ]) |
| 32 | |
| 33 | AC_DEFUN([DISABLE_ARG], |
| 34 | [ |
| 35 | AC_ARG_ENABLE($1, |
| 36 | AC_HELP_STRING(patsubst([--disable-$1],[_],[-]), $2), |
| 37 | [enable_$1=no n_enable_$1=0], |
| 38 | [enable_$1=yes n_enable_$1=1]) |
| 39 | AM_CONDITIONAL(m4_toupper(ENABLE_$1), test "$enable_$1" = "yes") |
| 40 | m4_append([list_of_enabled], [$1], [, ]) |
| 41 | ]) |
| 42 | |
| 43 | AC_DEFUN([WITH_ARG], |
| 44 | [ |
| 45 | AC_ARG_WITH($1, |
| 46 | AC_HELP_STRING(patsubst([--with-$1],[_],[-]), $2), |
| 47 | [with_$1=yes n_with_$1=1], |
| 48 | [with_$1=no n_with_$1=0]) |
| 49 | AM_CONDITIONAL(m4_toupper(WITH_$1), test "$with_$1" = "yes") |
| 50 | m4_append([list_of_with], [$1], [, ]) |
| 51 | ]) |
| 52 | |
| 53 | AC_DEFUN([WITHOUT_ARG], |
| 54 | [ |
| 55 | AC_ARG_WITH($1, |
| 56 | AC_HELP_STRING(patsubst([--without-$1],[_],[-]), $2), |
| 57 | [with_$1=no n_with_$1=0], |
| 58 | [with_$1=yes n_with_$1=1]) |
| 59 | AM_CONDITIONAL(m4_toupper(WITH_$1), test "$with_$1" = "yes") |
| 60 | m4_append([list_of_with], [$1], [, ]) |
| 61 | ]) |
| 62 | |
| 63 | AC_DEFUN([PLUGIN_ENABLED], |
| 64 | [ |
| 65 | AC_ARG_ENABLE($1_plugin, |
| 66 | AC_HELP_STRING([--disable-$1-plugin], [Do not build $1 plugin]), |
| 67 | [enable_$1_plugin=no], |
| 68 | [enable_$1_plugin=yes ]) |
| 69 | AM_CONDITIONAL(m4_toupper(ENABLE_$1_PLUGIN), test "$enable_$1_plugin" = "yes") |
| 70 | m4_append([list_of_plugins], [$1], [, ]) |
| 71 | ]) |
| 72 | |
| 73 | AC_DEFUN([PLUGIN_DISABLED], |
| 74 | [ |
| 75 | AC_ARG_ENABLE($1_plugin, |
| 76 | AC_HELP_STRING([--enable-$1-plugin], [Build $1 plugin]), |
| 77 | [enable_$1_plugin=yes ], |
| 78 | [enable_$1_plugin=no]) |
Pablo Camarillo | a084d62 | 2017-03-03 20:47:55 +0100 | [diff] [blame] | 79 | AM_CONDITIONAL(m4_toupper(ENABLE_$1_PLUGIN), test "$enable_$1_plugin" = "yes") |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 80 | m4_append([list_of_plugins], [$1], [, ]) |
| 81 | ]) |
| 82 | |
| 83 | AC_DEFUN([PRINT_VAL], [ AC_MSG_RESULT(AC_HELP_STRING($1,$2)) ]) |
| 84 | |
Sergio Gonzalez Monroy | 3b12cdc | 2017-06-06 15:29:16 +0100 | [diff] [blame] | 85 | AC_DEFUN([DPDK_IS_PMD_ENABLED], |
| 86 | [ |
| 87 | AC_MSG_CHECKING([for $1 in rte_config.h]) |
| 88 | AC_COMPILE_IFELSE( |
| 89 | [AC_LANG_PROGRAM( |
| 90 | [[#include <rte_config.h>]], |
| 91 | [[return RTE_$1;]], |
| 92 | )], |
| 93 | [with_$2=yes] |
| 94 | [AC_MSG_RESULT([yes])], |
| 95 | [with_$2=no] |
| 96 | [AC_MSG_RESULT([no])] |
| 97 | ) |
| 98 | AM_CONDITIONAL(m4_toupper(WITH_$2), test "$with_$2" = "yes") |
| 99 | m4_append_uniq([list_of_with], [$2], [, ]) |
| 100 | ]) |
| 101 | |
Sergio Gonzalez Monroy | acdc306 | 2017-08-24 14:09:17 +0100 | [diff] [blame] | 102 | AC_DEFUN([DETECT_DPDK_IS_1702_OR_1705], |
| 103 | [ |
| 104 | AC_MSG_CHECKING([for RTE_VERSION 17.02/17.05 in rte_version.h]) |
| 105 | AC_TRY_RUN( |
| 106 | [ |
| 107 | #include <rte_version.h> |
| 108 | int main() |
| 109 | { |
| 110 | return ((RTE_VER_YEAR != 17) || |
| 111 | (RTE_VER_MONTH != 2 && RTE_VER_MONTH != 5)); |
| 112 | } |
| 113 | ], |
| 114 | [dpdk_is_1702_or_1705=yes] |
| 115 | [AC_MSG_RESULT([yes])], |
| 116 | [dpdk_is_1702_or_1705=no] |
| 117 | [AC_MSG_RESULT([no])] |
| 118 | ) |
| 119 | AM_CONDITIONAL(DPDK_IS_1702_OR_1705, test "$dpdk_is_1702_or_1705" = "yes") |
| 120 | ]) |
| 121 | |
Damjan Marion | 04f3db3 | 2017-11-10 21:55:45 +0100 | [diff] [blame] | 122 | # Check if compiler supports specific flag |
| 123 | AC_DEFUN([CC_CHECK_FLAG], |
| 124 | [ |
| 125 | AC_MSG_CHECKING([if $CC supports $1]) |
| 126 | AC_LANG_PUSH([C]) |
| 127 | ac_saved_cflags="$CFLAGS" |
| 128 | CFLAGS="-Werror $1" |
| 129 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], |
Damjan Marion | bf024e6 | 2017-11-14 15:21:19 +0100 | [diff] [blame^] | 130 | [cc_flag_check=yes], |
| 131 | [cc_flag_check=no] |
Damjan Marion | 04f3db3 | 2017-11-10 21:55:45 +0100 | [diff] [blame] | 132 | ) |
| 133 | AC_MSG_RESULT([$c_flag_check]) |
| 134 | CFLAGS="$ac_saved_cflags" |
| 135 | AC_LANG_POP([C]) |
| 136 | ]) |
| 137 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 138 | ############################################################################### |
| 139 | # configure arguments |
| 140 | ############################################################################### |
| 141 | |
| 142 | # --enable-X |
| 143 | ENABLE_ARG(tests, [Enable unit tests]) |
| 144 | ENABLE_ARG(dpdk_shared, [Enable unit tests]) |
| 145 | ENABLE_ARG(perftool, [Enable perftool]) |
| 146 | ENABLE_ARG(g2, [Enable g2]) |
| 147 | |
| 148 | # --disable-X |
| 149 | DISABLE_ARG(vlib, [Disable vlib and dependant libs and binaries]) |
| 150 | DISABLE_ARG(svm, [Disable svm and dependant libs and binaries]) |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 151 | DISABLE_ARG(papi, [Disable Python API bindings]) |
| 152 | DISABLE_ARG(japi, [Disable Java API bindings]) |
Dave Barach | 7b0c673 | 2017-11-06 16:06:05 -0500 | [diff] [blame] | 153 | DISABLE_ARG(vom, [Disable VPP object model bindings]) |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 154 | |
| 155 | # --with-X |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 156 | |
| 157 | # --without-X |
Damjan Marion | a9a951f | 2017-01-16 22:06:10 +0100 | [diff] [blame] | 158 | WITHOUT_ARG(libssl, [Disable libssl]) |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 159 | WITHOUT_ARG(apicli, [Disable binary api CLI]) |
| 160 | |
| 161 | AC_ARG_WITH(unix, |
| 162 | AC_HELP_STRING([--with-unix],[Compile unix version of clib]), |
| 163 | [], |
| 164 | [case $host_os in |
| 165 | darwin* | linux*) with_unix=yes;; |
| 166 | *) with_unix=no;; |
| 167 | esac]) |
| 168 | |
| 169 | AM_CONDITIONAL(WITH_UNIX, test "$with_unix" = "yes") |
| 170 | |
| 171 | AC_ARG_WITH(pre-data, |
| 172 | AC_HELP_STRING([--with-pre-data],[Set buffer rewrite space]), |
| 173 | [case $with_pre_data in |
| 174 | 128) ;; |
| 175 | 256) ;; |
| 176 | *) with_pre_data="pre-data-not-set" ;; |
| 177 | esac], [with_pre_data=128]) |
| 178 | |
| 179 | ############################################################################### |
Damjan Marion | ba3c773 | 2017-11-10 20:26:50 +0100 | [diff] [blame] | 180 | # Target CPU flags |
| 181 | ############################################################################### |
| 182 | |
Damjan Marion | 04f3db3 | 2017-11-10 21:55:45 +0100 | [diff] [blame] | 183 | # Check if compiler supports march=core-avx2 |
| 184 | CC_CHECK_FLAG("-march=core-avx2") |
| 185 | AS_IF([test "$cc_flag_check" = yes], |
| 186 | [march_core_avx2=yes], |
| 187 | [march_core_avx2=no]) |
| 188 | AM_CONDITIONAL([CC_SUPPORTS_AVX2], [test "$march_core_avx2" = "yes"]) |
| 189 | |
| 190 | # Check if compiler supports march=skylake-avx512 |
| 191 | CC_CHECK_FLAG("-march=skylake-avx512") |
| 192 | AS_IF([test "$cc_flag_check" = yes], |
| 193 | [march_skylake_avx512=yes], |
| 194 | [march_skylake_avx512=no]) |
| 195 | AM_CONDITIONAL([CC_SUPPORTS_AVX512], [test "$march_skylake_avx512" = "yes"]) |
| 196 | |
Damjan Marion | ba3c773 | 2017-11-10 20:26:50 +0100 | [diff] [blame] | 197 | AS_CASE([$build_cpu], |
| 198 | [x86_64], [CPU_FLAGS="-march=corei7 -mtune=corei7-avx"], |
| 199 | [aarch64], [CPU_FLAGS="-march=armv8-a+crc"], |
| 200 | [CPU_FLAGS=""], |
| 201 | ) |
| 202 | AC_SUBST([CPU_FLAGS]) |
| 203 | |
Damjan Marion | 04f3db3 | 2017-11-10 21:55:45 +0100 | [diff] [blame] | 204 | AC_SUBST([CPU_AVX2_FLAGS],"-march=core-avx2 -mtune=core-avx2") |
| 205 | AC_SUBST([CPU_AVX512_FLAGS],"-march=skylake-avx512 -mtune=skylake-avx512") |
| 206 | |
| 207 | AM_CONDITIONAL([CPU_X86_64], [test "$build_cpu" = "x86_64"]) |
| 208 | AM_CONDITIONAL([CPU_AARCH64], [test "$build_cpu" = "aarch64"]) |
| 209 | |
Damjan Marion | ba3c773 | 2017-11-10 20:26:50 +0100 | [diff] [blame] | 210 | ############################################################################### |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 211 | # Substitutions and defines |
| 212 | ############################################################################### |
| 213 | |
| 214 | AC_SUBST(PRE_DATA_SIZE, [$with_pre_data]) |
| 215 | AC_SUBST(APICLI, [-DVPP_API_TEST_BUILTIN=${n_with_apicli}]) |
| 216 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 217 | AC_DEFINE_UNQUOTED(DPDK_SHARED_LIB, [${n_enable_dpdk_shared}]) |
Damjan Marion | a9a951f | 2017-01-16 22:06:10 +0100 | [diff] [blame] | 218 | AC_DEFINE_UNQUOTED(WITH_LIBSSL, [${n_with_libssl}]) |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 219 | |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 220 | |
| 221 | # Silence following noise: |
| 222 | # ar: `u' modifier ignored since `D' is the default (see `U') |
| 223 | AR_FLAGS=cr |
| 224 | AC_SUBST(AR_FLAGS) |
| 225 | |
| 226 | ############################################################################### |
| 227 | # Plugins |
| 228 | ############################################################################### |
| 229 | |
| 230 | # Please keep alphabetical order |
| 231 | PLUGIN_ENABLED(acl) |
Damjan Marion | 374e2c5 | 2017-03-09 20:38:15 +0100 | [diff] [blame] | 232 | PLUGIN_ENABLED(dpdk) |
Ole Troan | 5c74973 | 2017-03-13 13:39:52 +0100 | [diff] [blame] | 233 | PLUGIN_ENABLED(flowprobe) |
Hongjun Ni | ef486b1 | 2017-04-12 19:21:16 +0800 | [diff] [blame] | 234 | PLUGIN_ENABLED(gtpu) |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 235 | PLUGIN_ENABLED(ila) |
| 236 | PLUGIN_ENABLED(ioam) |
Damjan Marion | 374e2c5 | 2017-03-09 20:38:15 +0100 | [diff] [blame] | 237 | PLUGIN_ENABLED(ixge) |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 238 | PLUGIN_ENABLED(lb) |
Damjan Marion | eaabe07 | 2017-03-22 10:18:13 +0100 | [diff] [blame] | 239 | PLUGIN_ENABLED(memif) |
Hongjun Ni | 62f9cdd | 2017-07-04 20:11:57 +0800 | [diff] [blame] | 240 | PLUGIN_ENABLED(pppoe) |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 241 | PLUGIN_ENABLED(sixrd) |
Matus Fabian | 2ba92e3 | 2017-08-21 07:05:03 -0700 | [diff] [blame] | 242 | PLUGIN_ENABLED(nat) |
Pierre Pfister | 0906c5c | 2017-09-27 16:17:31 +0200 | [diff] [blame] | 243 | PLUGIN_ENABLED(stn) |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 244 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 245 | ############################################################################### |
| 246 | # Dependency checks |
| 247 | ############################################################################### |
| 248 | |
| 249 | AM_COND_IF([ENABLE_DPDK_SHARED], |
| 250 | [ |
| 251 | AC_CHECK_HEADERS([rte_config.h], |
| 252 | [], |
| 253 | [AC_MSG_ERROR([DPDK header files not found])],) |
| 254 | AC_CHECK_LIB( [dpdk], [rte_eal_init], |
| 255 | [], |
| 256 | [AC_MSG_ERROR([DPDK shared library not found])],) |
| 257 | ]) |
| 258 | |
Sergio Gonzalez Monroy | acdc306 | 2017-08-24 14:09:17 +0100 | [diff] [blame] | 259 | with_aesni_mb_lib=no |
| 260 | with_isa_l_crypto_lib=no |
| 261 | |
Sergio Gonzalez Monroy | 3b12cdc | 2017-06-06 15:29:16 +0100 | [diff] [blame] | 262 | DPDK_IS_PMD_ENABLED(LIBRTE_PMD_AESNI_MB, dpdk_aesni_mb_pmd) |
Sergio Gonzalez Monroy | acdc306 | 2017-08-24 14:09:17 +0100 | [diff] [blame] | 263 | DPDK_IS_PMD_ENABLED(LIBRTE_PMD_AESNI_GCM, dpdk_aesni_gcm_pmd) |
| 264 | |
| 265 | DETECT_DPDK_IS_1702_OR_1705() |
| 266 | |
Sergio Gonzalez Monroy | 3b12cdc | 2017-06-06 15:29:16 +0100 | [diff] [blame] | 267 | AM_COND_IF([WITH_DPDK_AESNI_MB_PMD], |
| 268 | [ |
Sergio Gonzalez Monroy | acdc306 | 2017-08-24 14:09:17 +0100 | [diff] [blame] | 269 | AC_CHECK_LIB([IPSec_MB], [submit_job_sse], |
| 270 | [with_aesni_mb_lib=yes], |
Sergio Gonzalez Monroy | 3b12cdc | 2017-06-06 15:29:16 +0100 | [diff] [blame] | 271 | [AC_MSG_ERROR([IPSec_MB library not found])]) |
| 272 | ]) |
| 273 | |
Sergio Gonzalez Monroy | 3b12cdc | 2017-06-06 15:29:16 +0100 | [diff] [blame] | 274 | AM_COND_IF([WITH_DPDK_AESNI_GCM_PMD], |
| 275 | [ |
Sergio Gonzalez Monroy | acdc306 | 2017-08-24 14:09:17 +0100 | [diff] [blame] | 276 | AM_COND_IF([DPDK_IS_1702_OR_1705], |
| 277 | [ |
| 278 | AC_CHECK_LIB([isal_crypto], [aesni_gcm128_init], |
| 279 | [with_isa_l_crypto_lib=yes], |
| 280 | [AC_MSG_ERROR([isal_crypto library not found])]) |
| 281 | ], |
| 282 | [ |
| 283 | AC_CHECK_LIB([IPSec_MB], [submit_job_sse], |
| 284 | [with_aesni_mb_lib=yes], |
| 285 | [AC_MSG_ERROR([IPSec_MB library not found])]) |
| 286 | ]) |
| 287 | ]) |
| 288 | |
| 289 | m4_append([list_of_with], [aesni_mb_lib], [, ]) |
| 290 | AM_CONDITIONAL(WITH_AESNI_MB_LIB, test "$with_aesni_mb_lib" = "yes") |
| 291 | |
| 292 | m4_append([list_of_with], [isa_l_crypto_lib], [, ]) |
| 293 | AM_CONDITIONAL(WITH_ISA_L_CRYPTO_LIB, test "$with_isa_l_crypto_lib" = "yes") |
| 294 | |
| 295 | |
| 296 | with_ibverbs_lib=no |
| 297 | DPDK_IS_PMD_ENABLED(LIBRTE_MLX4_PMD, dpdk_mlx4_pmd) |
| 298 | AM_COND_IF([WITH_DPDK_MLX4_PMD], |
| 299 | [ |
| 300 | AC_CHECK_LIB([ibverbs], [ibv_fork_init], |
| 301 | [with_ibverbs_lib=yes], |
| 302 | [AC_MSG_ERROR([ibverbs library not found])]) |
Sergio Gonzalez Monroy | 3b12cdc | 2017-06-06 15:29:16 +0100 | [diff] [blame] | 303 | ]) |
| 304 | |
| 305 | DPDK_IS_PMD_ENABLED(LIBRTE_MLX5_PMD, dpdk_mlx5_pmd) |
| 306 | AM_COND_IF([WITH_DPDK_MLX5_PMD], |
| 307 | [ |
Sergio Gonzalez Monroy | acdc306 | 2017-08-24 14:09:17 +0100 | [diff] [blame] | 308 | AC_CHECK_LIB([ibverbs], [ibv_fork_init], |
| 309 | [with_ibverbs_lib=yes], |
Sergio Gonzalez Monroy | 3b12cdc | 2017-06-06 15:29:16 +0100 | [diff] [blame] | 310 | [AC_MSG_ERROR([ibverbs library not found])]) |
| 311 | ]) |
| 312 | |
Sergio Gonzalez Monroy | acdc306 | 2017-08-24 14:09:17 +0100 | [diff] [blame] | 313 | m4_append([list_of_with], [ibverbs_lib], [, ]) |
| 314 | AM_CONDITIONAL(WITH_IBVERBS_LIB, test "$with_ibverbs_lib" = "yes") |
| 315 | |
Sergio Gonzalez Monroy | 3b12cdc | 2017-06-06 15:29:16 +0100 | [diff] [blame] | 316 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 317 | AM_COND_IF([ENABLE_G2], |
| 318 | [ |
| 319 | PKG_CHECK_MODULES(g2, gtk+-2.0) |
| 320 | ]) |
| 321 | |
Damjan Marion | 0be5ec3 | 2016-12-28 17:51:56 +0100 | [diff] [blame] | 322 | # If cross-compiling, we need external vppapigen and we cannot continue without it |
| 323 | # For native builds, we just set dependency on vpppaigen binary in top_builddir |
| 324 | AM_COND_IF([CROSSCOMPILE], |
| 325 | [ |
| 326 | AC_PATH_PROG([VPPAPIGEN], [vppapigen], [no]) |
| 327 | if test "$VPPAPIGEN" = "no"; then |
| 328 | AC_MSG_ERROR([Externaly built vppapigen is needed when cross-compiling...]) |
| 329 | fi |
| 330 | ],[ |
| 331 | VPPAPIGEN=\$\(top_builddir\)/vppapigen |
| 332 | ]) |
| 333 | AC_SUBST([VPPAPIGEN]) |
| 334 | |
| 335 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 336 | ############################################################################### |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 337 | # JAVA |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 338 | ############################################################################### |
| 339 | |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 340 | AM_COND_IF([ENABLE_JAPI], |
| 341 | [ |
| 342 | AX_VPP_FIND_JDK8 |
| 343 | AC_SUBST(JAVA_HOME) |
| 344 | AC_SUBST(JAVAC) |
| 345 | AC_SUBST(JAVAH) |
| 346 | AC_SUBST(JAR) |
| 347 | ]) |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 348 | |
| 349 | ############################################################################### |
Ole Troan | 3cc4971 | 2017-03-08 12:02:24 +0100 | [diff] [blame] | 350 | # PYTHON |
| 351 | ############################################################################### |
| 352 | |
| 353 | AM_COND_IF([ENABLE_PAPI], |
| 354 | [ |
| 355 | AM_PATH_PYTHON |
| 356 | ]) |
| 357 | |
| 358 | ############################################################################### |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 359 | # Output |
| 360 | ############################################################################### |
| 361 | |
| 362 | AC_OUTPUT |
| 363 | |
| 364 | AC_MSG_RESULT([==============================================================================]) |
| 365 | PRINT_VAL([version], $PACKAGE $VERSION) |
| 366 | PRINT_VAL([prefix], ${prefix}) |
| 367 | PRINT_VAL([libdir], ${libdir}) |
| 368 | PRINT_VAL([includedir], ${includedir}) |
| 369 | PRINT_VAL([CFLAGS], ${CFLAGS}) |
| 370 | PRINT_VAL([CPPFLAGS], ${CPPFLAGS}) |
| 371 | PRINT_VAL([LDFLAGS], ${LDFLAGS}) |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 372 | AM_COND_IF([ENABLE_JAPI], |
| 373 | [ |
| 374 | PRINT_VAL([JAVA_VERSION], ${JAVA_VERSION}) |
| 375 | PRINT_VAL([JAVA_HOME], ${JAVA_HOME}) |
| 376 | ]) |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 377 | |
| 378 | AC_MSG_RESULT([]) |
| 379 | AC_MSG_RESULT([with:]) |
| 380 | m4_foreach([x], m4_dquote(list_of_with), [ |
| 381 | AC_MSG_RESULT(AC_HELP_STRING(x, m4_join([], [${with_], x, [}]))) |
| 382 | ]) |
| 383 | |
| 384 | AC_MSG_RESULT([]) |
| 385 | AC_MSG_RESULT([enabled:]) |
| 386 | m4_foreach([x], m4_dquote(list_of_enabled), [ |
| 387 | AC_MSG_RESULT(AC_HELP_STRING(x, m4_join([], [${enable_], x, [}]))) |
| 388 | ]) |
| 389 | |
| 390 | AC_MSG_RESULT([]) |
| 391 | AC_MSG_RESULT([plugins:]) |
| 392 | m4_foreach([x], m4_dquote(list_of_plugins), [ |
| 393 | AC_MSG_RESULT(AC_HELP_STRING(x, m4_join([], [${enable_], x, [_plugin}]))) |
| 394 | ]) |
| 395 | AC_MSG_RESULT([==============================================================================]) |
| 396 | |
| 397 | |