Mercurial > mplayer.hg
comparison configure @ 15594:1c18214c932b
check for -std=gnu99 to make lrintf() work on gcc 3.3/3.4
author | henry |
---|---|
date | Mon, 30 May 2005 08:23:19 +0000 |
parents | 3d32bc09b975 |
children | 667c78f0fc60 |
comparison
equal
deleted
inserted
replaced
15593:a7abe85e8b41 | 15594:1c18214c932b |
---|---|
2445 if test "$_posix4" = yes ; then | 2445 if test "$_posix4" = yes ; then |
2446 _ld_arch="-lposix4 $_ld_arch" | 2446 _ld_arch="-lposix4 $_ld_arch" |
2447 fi | 2447 fi |
2448 echores "$_posix4" | 2448 echores "$_posix4" |
2449 | 2449 |
2450 echocheck "-std=gnu99" | |
2451 cat > $TMPC << EOF | |
2452 int main(void) { return 0; } | |
2453 EOF | |
2454 _gnu99=no | |
2455 cc_check -std=gnu99 && _gnu99=yes | |
2456 if test "$_gnu99" = yes ; then | |
2457 _opt_gnu99="-std=gnu99" | |
2458 else | |
2459 _opt_gnu99="" | |
2460 fi | |
2461 echores "$_gnu99" | |
2450 | 2462 |
2451 echocheck "lrintf" | 2463 echocheck "lrintf" |
2452 cat > $TMPC << EOF | 2464 cat > $TMPC << EOF |
2453 #include <math.h> | 2465 #include <math.h> |
2454 int main(void) { long (*foo)(double); foo = lrintf; (void)(*foo)(0.0); return 0; } | 2466 int main(void) { long (*foo)(double); foo = lrintf; (void)(*foo)(0.0); return 0; } |
2455 EOF | 2467 EOF |
2456 _lrintf=no | 2468 _lrintf=no |
2457 cc_check $_ld_lm && _lrintf=yes | 2469 cc_check $_opt_gnu99 $_ld_lm && _lrintf=yes |
2458 if test "$_lrintf" = yes ; then | 2470 if test "$_lrintf" = yes ; then |
2459 _def_lrintf="#define HAVE_LRINTF 1" | 2471 _def_lrintf="#define HAVE_LRINTF 1" |
2460 else | 2472 else |
2461 _def_lrintf="#undef HAVE_LRINTF" | 2473 _def_lrintf="#undef HAVE_LRINTF" |
2462 fi | 2474 fi |
6860 AWK = $_awk | 6872 AWK = $_awk |
6861 RANLIB = $_ranlib | 6873 RANLIB = $_ranlib |
6862 INSTALL = $_install | 6874 INSTALL = $_install |
6863 # OPTFLAGS = -O4 $_profile $_debug $_march $_mcpu $_pipe -fomit-frame-pointer -ffast-math | 6875 # OPTFLAGS = -O4 $_profile $_debug $_march $_mcpu $_pipe -fomit-frame-pointer -ffast-math |
6864 EXTRA_INC = $_inc_extra $_inc_gtk | 6876 EXTRA_INC = $_inc_extra $_inc_gtk |
6865 OPTFLAGS = -I../libvo -I../../libvo $_inc_x11 $CFLAGS \$(EXTRA_INC) | 6877 OPTFLAGS = -I../libvo -I../../libvo $_inc_x11 $CFLAGS \$(EXTRA_INC) $_opt_gnu99 |
6866 STRIPBINARIES = $_stripbinaries | 6878 STRIPBINARIES = $_stripbinaries |
6867 CHARSET = $_charset | 6879 CHARSET = $_charset |
6868 HELP_FILE = $_mp_help | 6880 HELP_FILE = $_mp_help |
6869 | 6881 |
6870 PRG = $_prg | 6882 PRG = $_prg |