blob: 4f32a21ca9c679acf36fcc840171559dcf082f22 [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001AC_INIT(vlib, 1.1)
Dave Barach2126b352016-02-10 08:42:59 -05002LT_INIT
Ed Warnickecb9cada2015-12-08 15:45:58 -07003AM_INIT_AUTOMAKE
Damjan Marion6b1d7c52016-04-26 18:19:47 +02004AM_SILENT_RULES([yes])
Ed Warnickecb9cada2015-12-08 15:45:58 -07005
6AC_PROG_CC
7AM_PROG_CC_C_O
Ed Warnickecb9cada2015-12-08 15:45:58 -07008
9AC_ARG_WITH(dpdk,
10 AC_HELP_STRING([--with-dpdk],[Use the Intel dpdk]),
11 [with_dpdk=1],
12 [with_dpdk=0])
13
14AC_ARG_WITH(pre-data,
15 AC_HELP_STRING([--with-pre-data],[Set buffer rewrite space]),
16 [case $with_pre_data in
17 128) ;;
18 256) ;;
19 *) with_pre_data="pre-data-not-set" ;;
20 esac], [with_pre_data=128])
21
22AM_CONDITIONAL(WITH_DPDK, test "$with_dpdk" = "1")
23AC_SUBST(DPDK,[-DDPDK=${with_dpdk}])
24AC_SUBST(PRE_DATA_SIZE,[$with_pre_data])
25
26AC_OUTPUT([Makefile])