Signed-off-by: Mike Holmes <[email protected]>
---
v2:
point at the root of netmap, and have configure find sys
configure.ac | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/configure.ac b/configure.ac
index 76cf638..b1fc859 100644
--- a/configure.ac
+++ b/configure.ac
@@ -70,6 +70,15 @@ AC_ARG_ENABLE([netmap],
ODP_CFLAGS="$ODP_CFLAGS -DODP_HAVE_NETMAP=1"
fi])
+AC_ARG_WITH([netmap-path],
+AC_HELP_STRING([--with-netmap-path=DIR Path to netmap libs and headers],
+ [(or in the default path if not specified).]),
+[NETMAP_PATH=$withval netmap_support=yes
+AM_CFLAGS="$AM_CFLAGS -I$NETMAP_PATH/sys"
+ODP_CFLAGS="$ODP_CFLAGS -DODP_HAVE_NETMAP=1"
+],[ AC_MSG_WARN([Netmap not found - continuing without netmap support])
+])
+
AM_CONDITIONAL([ODP_NETMAP_ENABLED], [test x$netmap_support = xyes ])
##########################################################################
--
1.9.1
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp