blob: 250f74c562bf1f4f65230936ea5db4dcf65d92ea [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,
23 AC_HELP_STRING([--with-dpdk],[Use the Intel dpdk]),
24 [with_dpdk=1],
25 [with_dpdk=0])
26
27AC_SUBST(Q_PLATFORM_DEFINE,[-DQ_PLATFORM_${with_q_platform}])
28AC_SUBST(Q_PLATFORM_PLUGPATH,[-DQ_PLUGIN_PREFIX=${with_q_plugin_prefix}])
29AC_SUBST(DPDK,[-DDPDK=${with_dpdk}])
30AM_CONDITIONAL(WITH_DPDK, test "$with_dpdk" = "1")
31
32AC_OUTPUT([Makefile])