build: Add new check for recorder library

Newer version try to use this function if available.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
This commit is contained in:
Frediano Ziglio 2019-04-02 13:47:05 +01:00
parent 4951c71553
commit b628730115
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -78,7 +78,8 @@ endforeach
#
functions = ['alloca',
'sigaction',
'drand48']
'drand48',
'setlinebuf']
foreach func : functions
if compiler.has_function(func)