Mercurial > mplayer.hg
comparison configure @ 15596:667c78f0fc60
- correct the argument in configure check for lrintf() to avoid a warning
- add -D_GNU_SOURCE where lrintf() is used, for the cases when -std=gnu99
isn't available
author | henry |
---|---|
date | Mon, 30 May 2005 08:57:30 +0000 |
parents | 1c18214c932b |
children | 5c23a21cc78c |
comparison
equal
deleted
inserted
replaced
15595:b4c3f02811dd | 15596:667c78f0fc60 |
---|---|
2461 echores "$_gnu99" | 2461 echores "$_gnu99" |
2462 | 2462 |
2463 echocheck "lrintf" | 2463 echocheck "lrintf" |
2464 cat > $TMPC << EOF | 2464 cat > $TMPC << EOF |
2465 #include <math.h> | 2465 #include <math.h> |
2466 int main(void) { long (*foo)(double); foo = lrintf; (void)(*foo)(0.0); return 0; } | 2466 int main(void) { long (*foo)(float); foo = lrintf; (void)(*foo)(0.0); return 0; } |
2467 EOF | 2467 EOF |
2468 _lrintf=no | 2468 _lrintf=no |
2469 cc_check $_opt_gnu99 $_ld_lm && _lrintf=yes | 2469 cc_check $_opt_gnu99 -D_GNU_SOURCE $_ld_lm && _lrintf=yes |
2470 if test "$_lrintf" = yes ; then | 2470 if test "$_lrintf" = yes ; then |
2471 _def_lrintf="#define HAVE_LRINTF 1" | 2471 _def_lrintf="#define HAVE_LRINTF 1" |
2472 else | 2472 else |
2473 _def_lrintf="#undef HAVE_LRINTF" | 2473 _def_lrintf="#undef HAVE_LRINTF" |
2474 fi | 2474 fi |