diff mbox

configure.ac: Add --with-netmap-path

Message ID 1409796529-56194-1-git-send-email-mike.holmes@linaro.org
State Rejected
Headers show

Commit Message

Mike Holmes Sept. 4, 2014, 2:08 a.m. UTC
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 configure.ac | 9 +++++++++
 1 file changed, 9 insertions(+)

Comments

Maxim Uvarov Sept. 4, 2014, 9:20 a.m. UTC | #1
Mike, this patch refers to sys directory in netmap git:
I.e.
./configure --enable-netmap --with-netmap-path=$PWD/../netmap.git/sys

Can you please change option to --with-netmap-sys-path or change

+AM_CFLAGS="$AM_CFLAGS -I$NETMAP_PATH"

to

+AM_CFLAGS="$AM_CFLAGS -I$NETMAP_PATH/sys"


Please update also README. (you can take my patch for that and update it 
with that option).

Thanks,
Maxim.


On 09/04/2014 06:08 AM, Mike Holmes wrote:
> Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
> ---
>   configure.ac | 9 +++++++++
>   1 file changed, 9 insertions(+)
>
> diff --git a/configure.ac b/configure.ac
> index e33e1a5..eb2061a 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"
> +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 ])
>   
>   ##########################################################################
Tushar Jagad Sept. 4, 2014, 1:01 p.m. UTC | #2
On Thursday 04 September 2014 07:38 AM, Mike Holmes wrote:
> Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
Tested-by: Tushar Jagad <tushar.jagad@linaro.org>
Tested-by: Ankit Jindal <ankit.jindal@linaro.org>

> ---
>   configure.ac | 9 +++++++++
>   1 file changed, 9 insertions(+)
>
> diff --git a/configure.ac b/configure.ac
> index e33e1a5..eb2061a 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"
> +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 ])
>
>   ##########################################################################
>
diff mbox

Patch

diff --git a/configure.ac b/configure.ac
index e33e1a5..eb2061a 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"
+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 ])
 
 ##########################################################################