check for lrintf to avoid trouble compiling lavc!

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8112 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rfelker 2002-11-05 07:34:55 +00:00
parent 5f2a024e6c
commit 4bd3d1a5bd
1 changed files with 18 additions and 0 deletions

18
configure vendored
View File

@ -1575,6 +1575,21 @@ fi
echores "$_posix4"
echocheck "lrintf"
cat > $TMPC << EOF
#include <math.h>
int main(void) { (void) lrintf(0.0); return 0; }
EOF
_lrintf=no
cc_check -lm && _lrintf=yes
if test "$_lrintf" = yes ; then
_def_lrintf="#define HAVE_LRINTF 1"
else
_def_lrintf="#undef HAVE_LRINTF"
fi
echores "$_lrintf"
echocheck "nanosleep"
# also check for nanosleep
cat > $TMPC << EOF
@ -4863,6 +4878,9 @@ $_def_vcd
**
*---------------------------------------------------------------------------*/
/* C99 lrintf function available */
$_def_lrintf
/* nanosleep support */
$_def_nanosleep