[Spice-devel] [PATCH spice-common] build: Add new check for recorder library

Victor Toso victortoso at redhat.com
Wed Apr 3 08:18:49 UTC 2019


Hi,

On Tue, Apr 02, 2019 at 01:49:06PM +0100, Frediano Ziglio wrote:
> Newer version try to use this function if available.

So it should be checked if recorder is enabled, no?
That's on stdio.h so I can't really see why not anyway

Acked-by: Victor Toso <victortoso at redhat.com>

> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  configure.ac | 2 +-
>  meson.build  | 3 ++-
>  2 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 923055b..da0a687 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -27,7 +27,7 @@ fi
>  AM_PROG_CC_C_O
>  
>  AC_CHECK_HEADERS([sys/mman.h regex.h])
> -AC_CHECK_FUNCS([sigaction drand48])
> +AC_CHECK_FUNCS([sigaction drand48 setlinebuf])
>  AC_SEARCH_LIBS(regcomp, [regex rx])
>  
>  SPICE_CHECK_SYSDEPS
> diff --git a/meson.build b/meson.build
> index f69e4bc..0faf703 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -78,7 +78,8 @@ endforeach
>  #
>  functions = ['alloca',
>               'sigaction',
> -             'drand48']
> +             'drand48',
> +             'setlinebuf']
>  
>  foreach func : functions
>    if compiler.has_function(func)
> -- 
> 2.20.1
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20190403/302723a3/attachment.sig>


More information about the Spice-devel mailing list