blob: cf0af125253dcac3b3485c88938e143b76f6fe85 [file] [log] [blame]
Damjan Marion08ff7e02016-01-20 13:45:36 +01001AC_INIT(vpp-api-test, 1.0)
Dave Barach2126b352016-02-10 08:42:59 -05002LT_INIT
Ed Warnickecb9cada2015-12-08 15:45:58 -07003AM_INIT_AUTOMAKE
Damjan Marionbbae3752016-07-08 13:57:11 +02004AM_SILENT_RULES([yes])
Ed Warnickecb9cada2015-12-08 15:45:58 -07005
Ed Warnickecb9cada2015-12-08 15:45:58 -07006AC_PROG_CC
Ed Warnickecb9cada2015-12-08 15:45:58 -07007
8AC_ARG_WITH(q-plugin-prefix,
9 AC_HELP_STRING([--with-q-plugin-prefix],[vlib plugin prefix]),
10 [case $with_q_plugin_prefix in
11 *) ;;
12 esac])
13
14AC_ARG_WITH(q-platform,
15 AC_HELP_STRING([--with-q-platform],[Build version for given platform (qnative)]),
16 [case $with_q_platform in
17 qnative) ;;
Damjan Marion08ff7e02016-01-20 13:45:36 +010018 vpp) with_q_platform=vpp;;
Ed Warnickecb9cada2015-12-08 15:45:58 -070019 *) with_q_platform=qnative;;
20 esac])
21
22AC_ARG_WITH(dpdk,
Padraig Connolly999bbc42016-11-15 09:35:50 +000023 AC_HELP_STRING([--with-dpdk],[Use DPDK]),
Ed Warnickecb9cada2015-12-08 15:45:58 -070024 [with_dpdk=1],
25 [with_dpdk=0])
26
Radu Nicolau6929ea92016-11-29 11:00:30 +000027AC_ARG_WITH(dpdk_crypto,
28 AC_HELP_STRING([--with-dpdk-crypto],[Use DPDK cryptodev]),
29 [with_dpdk_crypto=1],
30 [with_dpdk_crypto=0])
31
Ed Warnickecb9cada2015-12-08 15:45:58 -070032AC_SUBST(Q_PLATFORM_DEFINE,[-DQ_PLATFORM_${with_q_platform}])
33AC_SUBST(Q_PLATFORM_PLUGPATH,[-DQ_PLUGIN_PREFIX=${with_q_plugin_prefix}])
34AC_SUBST(DPDK,[-DDPDK=${with_dpdk}])
35AM_CONDITIONAL(WITH_DPDK, test "$with_dpdk" = "1")
Radu Nicolau6929ea92016-11-29 11:00:30 +000036AC_SUBST(DPDK_CRYPTO,[-DDPDK_CRYPTO=${with_dpdk_crypto}])
37AM_CONDITIONAL(WITH_DPDK_CRYPTO, test "$with_dpdk_crypto" = "1")
38
Ed Warnickecb9cada2015-12-08 15:45:58 -070039
40AC_OUTPUT([Makefile])