Damjan Marion | 08ff7e0 | 2016-01-20 13:45:36 +0100 | [diff] [blame^] | 1 | AC_INIT(vpp-api-test, 1.0) |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 2 | AM_INIT_AUTOMAKE |
| 3 | |
| 4 | AC_PROG_LIBTOOL |
| 5 | AM_PROG_AS |
| 6 | AC_PROG_CC |
| 7 | AM_PROG_CC_C_O |
| 8 | |
| 9 | AC_ARG_WITH(q-plugin-prefix, |
| 10 | AC_HELP_STRING([--with-q-plugin-prefix],[vlib plugin prefix]), |
| 11 | [case $with_q_plugin_prefix in |
| 12 | *) ;; |
| 13 | esac]) |
| 14 | |
| 15 | AC_ARG_WITH(q-platform, |
| 16 | AC_HELP_STRING([--with-q-platform],[Build version for given platform (qnative)]), |
| 17 | [case $with_q_platform in |
| 18 | qnative) ;; |
Damjan Marion | 08ff7e0 | 2016-01-20 13:45:36 +0100 | [diff] [blame^] | 19 | vpp) with_q_platform=vpp;; |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 20 | *) with_q_platform=qnative;; |
| 21 | esac]) |
| 22 | |
| 23 | AC_ARG_WITH(dpdk, |
| 24 | AC_HELP_STRING([--with-dpdk],[Use the Intel dpdk]), |
| 25 | [with_dpdk=1], |
| 26 | [with_dpdk=0]) |
| 27 | |
| 28 | AC_SUBST(Q_PLATFORM_DEFINE,[-DQ_PLATFORM_${with_q_platform}]) |
| 29 | AC_SUBST(Q_PLATFORM_PLUGPATH,[-DQ_PLUGIN_PREFIX=${with_q_plugin_prefix}]) |
| 30 | AC_SUBST(DPDK,[-DDPDK=${with_dpdk}]) |
| 31 | AM_CONDITIONAL(WITH_DPDK, test "$with_dpdk" = "1") |
| 32 | |
| 33 | AC_OUTPUT([Makefile]) |