]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Check if -lrt is required for nanosleep, as is the case on Solaris.
authordiego <diego@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 23 Feb 2009 01:56:08 +0000 (01:56 +0000)
committerdiego <diego@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 23 Feb 2009 01:56:08 +0000 (01:56 +0000)
inspired by a patch from Fabian Groffen, grobian gentoo org

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17537 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

configure

index 42d01b1204961792283e5a39bc5b9056d870072f..a8d094f40de391f6d806dfa73c7358b5d05c2735 100755 (executable)
--- a/configure
+++ b/configure
@@ -1900,6 +1900,9 @@ elif check_func dlopen -ldl; then
     ldl=-ldl
 fi
 
+# Solaris has nanosleep in -lrt, OpenSolaris no longer needs that
+check_func nanosleep || { check_func nanosleep -lrt && add_extralibs -lrt; }
+
 check_func  fork
 check_func  gethrtime
 check_func  getrusage