Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 1 | AC_INIT(vlib, 1.1) |
Dave Barach | 2126b35 | 2016-02-10 08:42:59 -0500 | [diff] [blame] | 2 | LT_INIT |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 3 | AM_INIT_AUTOMAKE |
Damjan Marion | 6b1d7c5 | 2016-04-26 18:19:47 +0200 | [diff] [blame^] | 4 | AM_SILENT_RULES([yes]) |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 5 | |
| 6 | AC_PROG_CC |
| 7 | AM_PROG_CC_C_O |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 8 | |
| 9 | AC_ARG_WITH(dpdk, |
| 10 | AC_HELP_STRING([--with-dpdk],[Use the Intel dpdk]), |
| 11 | [with_dpdk=1], |
| 12 | [with_dpdk=0]) |
| 13 | |
| 14 | AC_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 | |
| 22 | AM_CONDITIONAL(WITH_DPDK, test "$with_dpdk" = "1") |
| 23 | AC_SUBST(DPDK,[-DDPDK=${with_dpdk}]) |
| 24 | AC_SUBST(PRE_DATA_SIZE,[$with_pre_data]) |
| 25 | |
| 26 | AC_OUTPUT([Makefile]) |