Any comments ?

On 9 October 2014 16:47, Mike Holmes <[email protected]> wrote:

> Add include and lib path
> Only check for cunit if no explicit path is given
>
> Signed-off-by: Mike Holmes <[email protected]>
> ---
>  configure.ac | 15 ++++++++++-----
>  1 file changed, 10 insertions(+), 5 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index a840e5e..aa94034 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -73,11 +73,16 @@ AC_ARG_ENABLE([cunit],
>  AC_ARG_WITH([cunit-path],
>  AC_HELP_STRING([--with-cunit-path=DIR Path to Cunit libs and headers],
>                 [(or in the default path if not specified).]),
> -[CUNIT_PATH=$withval cunit_support=yes ],[ ])
> -
> -AS_IF([test x$cunit_support = xyes ], [
> -      AC_CHECK_HEADERS([CUnit/Basic.h], [],
> -           [AC_MSG_FAILURE(["can't find cunit headers"])])
> +[CUNIT_PATH=$withval cunit_support=yes
> +AM_CFLAGS="$AM_CFLAGS -I$CUNIT_PATH"
> +AM_LDFLAGS="$AM_LDFLAGS -L$CUNIT_PATH/lib -lcunit"
> +
> + ],
> +[
> +    AS_IF([test x$cunit_support = xyes ], [
> +        AC_CHECK_HEADERS([CUnit/Basic.h], [],
> +        [AC_MSG_FAILURE(["can't find cunit headers"])])
> +    ])
>  ])
>  AC_SUBST(CUNIT_PATH)
>  AM_CONDITIONAL([ODP_CUNIT_ENABLED], [test x$cunit_support = xyes ])
> --
> 1.9.1
>
>


-- 
*Mike Holmes*
Linaro  Sr Technical Manager
LNG - ODP
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to