diff options
Diffstat (limited to 'platform/linux-generic/m4/odp_netmap.m4')
-rw-r--r-- | platform/linux-generic/m4/odp_netmap.m4 | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/platform/linux-generic/m4/odp_netmap.m4 b/platform/linux-generic/m4/odp_netmap.m4 deleted file mode 100644 index dea80626b..000000000 --- a/platform/linux-generic/m4/odp_netmap.m4 +++ /dev/null @@ -1,45 +0,0 @@ -########################################################################## -# Enable netmap support -########################################################################## -netmap_support=no -AC_ARG_ENABLE([netmap_support], - [ --enable-netmap-support include netmap IO support], - [if test x$enableval = xyes; then - netmap_support=yes - fi]) - -########################################################################## -# Set optional netmap path -########################################################################## -AC_ARG_WITH([netmap-path], -AC_HELP_STRING([--with-netmap-path=DIR path to netmap root directory], - [(or in the default path if not specified).]), - [NETMAP_PATH=$withval - NETMAP_CPPFLAGS="-isystem $NETMAP_PATH/sys" - netmap_support=yes],[]) - -########################################################################## -# Save and set temporary compilation flags -########################################################################## -OLD_CPPFLAGS=$CPPFLAGS -CPPFLAGS="$NETMAP_CPPFLAGS $CPPFLAGS" - -########################################################################## -# Check for netmap availability -########################################################################## -if test x$netmap_support = xyes -then - AC_CHECK_HEADERS([net/netmap_user.h], [], - [AC_MSG_FAILURE(["can't find netmap header"])]) - ODP_CFLAGS="$ODP_CFLAGS -DODP_NETMAP" - AC_SUBST([NETMAP_CPPFLAGS]) -else - netmap_support=no -fi - -########################################################################## -# Restore old saved variables -########################################################################## -CPPFLAGS=$OLD_CPPFLAGS - -AM_CONDITIONAL([netmap_support], [test x$netmap_support = xyes ]) |