Mercurial > mplayer.hg
comparison configure @ 16210:c0ad310e5196
revert -std=gnu99 usage, -D_GNU_SOURCE is enough for lrintf support
author | henry |
---|---|
date | Sat, 13 Aug 2005 07:04:53 +0000 |
parents | 2201258c49fd |
children | 8ee9633a5e0d |
comparison
equal
deleted
inserted
replaced
16209:8e360c67d827 | 16210:c0ad310e5196 |
---|---|
2401 if test "$_posix4" = yes ; then | 2401 if test "$_posix4" = yes ; then |
2402 _ld_arch="-lposix4 $_ld_arch" | 2402 _ld_arch="-lposix4 $_ld_arch" |
2403 fi | 2403 fi |
2404 echores "$_posix4" | 2404 echores "$_posix4" |
2405 | 2405 |
2406 echocheck "-std=gnu99" | |
2407 cat > $TMPC << EOF | |
2408 int main(void) { return 0; } | |
2409 EOF | |
2410 _gnu99=no | |
2411 cc_check -std=gnu99 && _gnu99=yes | |
2412 if test "$_gnu99" = yes ; then | |
2413 _opt_gnu99="-std=gnu99" | |
2414 else | |
2415 _opt_gnu99="" | |
2416 fi | |
2417 echores "$_gnu99" | |
2418 | |
2419 echocheck "lrintf" | 2406 echocheck "lrintf" |
2420 cat > $TMPC << EOF | 2407 cat > $TMPC << EOF |
2421 #include <math.h> | 2408 #include <math.h> |
2422 int main(void) { long (*foo)(float); foo = lrintf; (void)(*foo)(0.0); return 0; } | 2409 int main(void) { long (*foo)(float); foo = lrintf; (void)(*foo)(0.0); return 0; } |
2423 EOF | 2410 EOF |
2424 _lrintf=no | 2411 _lrintf=no |
2425 cc_check $_opt_gnu99 -D_GNU_SOURCE $_ld_lm && _lrintf=yes | 2412 cc_check -D_GNU_SOURCE $_ld_lm && _lrintf=yes |
2426 if test "$_lrintf" = yes ; then | 2413 if test "$_lrintf" = yes ; then |
2427 _def_lrintf="#define HAVE_LRINTF 1" | 2414 _def_lrintf="#define HAVE_LRINTF 1" |
2428 else | 2415 else |
2429 _def_lrintf="#undef HAVE_LRINTF" | 2416 _def_lrintf="#undef HAVE_LRINTF" |
2430 fi | 2417 fi |
5522 $_def_lrintf | 5509 $_def_lrintf |
5523 EOF | 5510 EOF |
5524 fi | 5511 fi |
5525 # internal faad: check if our dear gcc is able to compile it... | 5512 # internal faad: check if our dear gcc is able to compile it... |
5526 cp "`pwd`/libfaad2/cfft.c" $TMPC | 5513 cp "`pwd`/libfaad2/cfft.c" $TMPC |
5527 if ( cc_check -c -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer $_opt_gnu99 -D_GNU_SOURCE $_inc_faad ); then | 5514 if ( cc_check -c -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer -D_GNU_SOURCE $_inc_faad ); then |
5528 _faad_internal=yes | 5515 _faad_internal=yes |
5529 else | 5516 else |
5530 _faad_internal="no (broken gcc)" | 5517 _faad_internal="no (broken gcc)" |
5531 fi | 5518 fi |
5532 fi | 5519 fi |
6927 AWK = $_awk | 6914 AWK = $_awk |
6928 RANLIB = $_ranlib | 6915 RANLIB = $_ranlib |
6929 INSTALL = $_install | 6916 INSTALL = $_install |
6930 # OPTFLAGS = -O4 $_profile $_debug $_march $_mcpu $_pipe -fomit-frame-pointer -ffast-math | 6917 # OPTFLAGS = -O4 $_profile $_debug $_march $_mcpu $_pipe -fomit-frame-pointer -ffast-math |
6931 EXTRA_INC = $_inc_extra $_inc_gtk | 6918 EXTRA_INC = $_inc_extra $_inc_gtk |
6932 OPTFLAGS = -I../libvo -I../../libvo $_inc_x11 $CFLAGS \$(EXTRA_INC) $_opt_gnu99 | 6919 OPTFLAGS = -I../libvo -I../../libvo $_inc_x11 $CFLAGS \$(EXTRA_INC) |
6933 STRIPBINARIES = $_stripbinaries | 6920 STRIPBINARIES = $_stripbinaries |
6934 CHARSET = $_charset | 6921 CHARSET = $_charset |
6935 HELP_FILE = $_mp_help | 6922 HELP_FILE = $_mp_help |
6936 | 6923 |
6937 PRG = $_prg | 6924 PRG = $_prg |