[FFmpeg-cvslog] configure: Check for nanosleep in headers as well, not only in libs

Martin Storsjö git at videolan.org
Wed Aug 13 19:02:28 CEST 2014


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Mon Aug 11 15:02:28 2014 +0300| [72199e1041b4052544e181ad90b431ca6704da12] | committer: Martin Storsjö

configure: Check for nanosleep in headers as well, not only in libs

On mingw64 with c++11 support, the link libraries do contain a
nanosleep function, while it isn't exposed via the headers. Using
check_func_headers instead of a plain check_func fixes this
misdetection.

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=72199e1041b4052544e181ad90b431ca6704da12
---

 configure |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index a5ad34c..c073f30 100755
--- a/configure
+++ b/configure
@@ -4046,7 +4046,7 @@ check_func  mkstemp
 check_func  mmap
 check_func  mprotect
 # Solaris has nanosleep in -lrt, OpenSolaris no longer needs that
-check_func  nanosleep || { check_func nanosleep -lrt && add_extralibs -lrt; }
+check_func_headers time.h nanosleep || { check_func_headers time.h nanosleep -lrt && add_extralibs -lrt; }
 check_func  sched_getaffinity
 check_func  setrlimit
 check_func  strerror_r



More information about the ffmpeg-cvslog mailing list