mirror of https://github.com/mpv-player/mpv
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:
parent
5f2a024e6c
commit
4bd3d1a5bd
|
@ -1575,6 +1575,21 @@ fi
|
||||||
echores "$_posix4"
|
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"
|
echocheck "nanosleep"
|
||||||
# also check for nanosleep
|
# also check for nanosleep
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
|
@ -4863,6 +4878,9 @@ $_def_vcd
|
||||||
**
|
**
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/* C99 lrintf function available */
|
||||||
|
$_def_lrintf
|
||||||
|
|
||||||
/* nanosleep support */
|
/* nanosleep support */
|
||||||
$_def_nanosleep
|
$_def_nanosleep
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue