- # User wants DPDK support and has specified a header directory, so use the provided value.
- dpdk_include_dir=$withval
-],[])
-
-AC_ARG_WITH([dpdk-libraries],
-AC_HELP_STRING([--with-dpdk-libraries=LDIR],[Endace DPDK library directory, if not DIR/lib]),
-[
- # User wants DPDK support and has specified a library directory, so use the provided value.
- dpdk_lib_dir=$withval
-],[])
-
-if test "x$enable_dpdk" != "xno" ; then
- # If necessary, set default paths for DPDK API headers and libraries.
- if test -z "$dpdk_include_dir"; then
- dpdk_include_dir="$RTE_SDK/$RTE_TARGET/include"
+ if test "$withval" = no
+ then
+ # User doesn't want DPDK support.
+ want_dpdk=no
+ elif test "$withval" = yes
+ then
+ # User wants DPDK support but hasn't specified a directory.
+ want_dpdk=yes
+ else
+ # User wants DPDK support and has specified a directory, so use the provided value.
+ want_dpdk=yes
+ dpdk_dir=$withval
+ dpdk_inc_dir="$dpdk_dir/include"
+ dpdk_lib_dir="$dpdk_dir/lib"
+ fi
+],[
+ if test "$V_PCAP" = dpdk; then
+ # User requested DPDK-only libpcap, so we'd better have
+ # the DPDK API.
+ want_dpdk=yes
+ elif test "xxx_only" = yes; then
+ # User requested something-else-only pcap, so they don't
+ # want DAG support.
+ want_dpdk=no
+ else
+ #
+ # Use DAG API if present, otherwise don't
+ #
+ want_dag=ifpresent