Commit 2757a434 authored by Tom Barbette's avatar Tom Barbette

I think configure should not be on the repo, but Click original does it so...

parent 3252bc0d
......@@ -817,7 +817,10 @@ enable_app
enable_aqm
enable_ethernet
enable_etherswitch
enable_batch
enable_flow
enable_netmap_pool
enable_zerocopy
enable_numa
enable_grid
enable_icmp
......@@ -1508,7 +1511,10 @@ Optional Features:
--disable-aqm do not include active queue management elements
--disable-ethernet do not include Ethernet elements
--enable-etherswitch include Ethernet switch elements
--disable-batch do not enable batching
--disable-flow do not include Flow elements
--enable-netmap-pool use netmap packet pool
--disable-zerocopy do not use zero copy
--disable-numa do not include Numa support
--enable-grid include Grid elements (see FAQ)
--disable-icmp do not include ICMP elements
......@@ -6894,6 +6900,18 @@ test "x$enable_all_elements" = xyes -a \( "x$enable_etherswitch" = xNO -o "x$ena
if test "x$enable_etherswitch" = xyes; then
:
fi
# Check whether --enable-batch was given.
if test "${enable_batch+set}" = set; then :
enableval=$enable_batch;
else
enable_batch=yes
fi
test "x$enable_all_elements" = xyes -a \( "x$enable_batch" = xNO -o "x$enable_batch" = x \) && enable_batch=yes
if test "x$enable_batch" = xyes; then
:
$as_echo "#define HAVE_BATCH 1" >>confdefs.h
fi
# Check whether --enable-flow was given.
if test "${enable_flow+set}" = set; then :
......@@ -6906,6 +6924,30 @@ if test "x$enable_flow" = xyes; then
:
$as_echo "#define HAVE_FLOW 1" >>confdefs.h
fi
# Check whether --enable-netmap-pool was given.
if test "${enable_netmap_pool+set}" = set; then :
enableval=$enable_netmap_pool;
else
enable_netmap_pool=no
fi
test "x$enable_all_elements" = xyes -a \( "x$enable_netmap_pool" = xNO -o "x$enable_netmap_pool" = x \) && enable_netmap_pool=yes
if test "x$enable_netmap_pool" = xyes; then
:
$as_echo "#define HAVE_NETMAP_PACKET_POOL 1" >>confdefs.h
fi
# Check whether --enable-zerocopy was given.
if test "${enable_zerocopy+set}" = set; then :
enableval=$enable_zerocopy;
else
enable_zerocopy=yes
fi
test "x$enable_all_elements" = xyes -a \( "x$enable_zerocopy" = xNO -o "x$enable_zerocopy" = x \) && enable_zerocopy=yes
if test "x$enable_zerocopy" = xyes; then
:
$as_echo "#define HAVE_ZEROCOPY 1" >>confdefs.h
fi
# Check whether --enable-numa was given.
if test "${enable_numa+set}" = set; then :
......@@ -7793,7 +7835,7 @@ else
ac_cv_endian=0
cat > conftest.$ac_ext <<EOF
#line 7767 "configure"
#line 7838 "configure"
#include "confdefs.h"
#include <$endian_hdr>
#ifdef __BYTE_ORDER
......@@ -10635,6 +10677,16 @@ pcap.h and/or -lpcap not found; user-level driver can't steal packets.
HAVE_USERLEVEL_DRIVER=1
fi
if test "x$enable_netmap_pool" = "xyes"; then
if test "x$enable_zerocopy" != "xyes"; then
as_fn_error $? "
=========================================
--enable-netmap-pool requires --enable-zerocopy
=========================================" "$LINENO" 5
fi
fi
NUMA_LIBS=""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment