Mercurial > mplayer.hg
changeset 35185:dff978cf2aa9
build/configure: Check for more math functions
If FFmpeg knows about the existence of the functions, it will only
define fall-back solutions for functions that are not available.
Patch by Erik Auerswald >auerswal unix-ag.uni-kl de<
author | al |
---|---|
date | Sun, 28 Oct 2012 20:55:47 +0000 |
parents | 14913ddea4f5 |
children | 130cdc6e5a00 |
files | configure |
diffstat | 1 files changed, 23 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Sun Oct 28 14:32:30 2012 +0000 +++ b/configure Sun Oct 28 20:55:47 2012 +0000 @@ -3196,7 +3196,7 @@ echores "$_kstat" -for func in cbrtf exp2 exp2f isnan isinf llrint llrintf log2 log2f lrint lrintf rint round roundf trunc truncf; do +for func in atanf cbrtf cosf expf exp2 exp2f isnan isinf llrint llrintf log2 log2f log10f lrint lrintf rint round roundf sinf trunc truncf; do echocheck $func eval _$func=no statement_check math.h "${func}(2.0)" -D_ISOC99_SOURCE && eval _$func=yes @@ -3210,6 +3210,20 @@ done +for func in atan2f ldexpf powf; do +echocheck $func +eval _$func=no +statement_check math.h "${func}(1.0,1.0)" -D_ISOC99_SOURCE && eval _$func=yes +if eval test "x\$_$func" = "xyes"; then + eval def_$func="\"#define HAVE_$(echo $func | tr '[a-z]' '[A-Z]') 1\"" + echores yes +else + eval def_$func="\"#define HAVE_$(echo $func | tr '[a-z]' '[A-Z]') 0\"" + echores no +fi +done + + echocheck "mkstemp" _mkstemp=no define_statement_check "_XOPEN_SOURCE 600" "stdlib.h" 'mkstemp("")' && _mkstemp=yes @@ -8832,7 +8846,11 @@ $def_bswap $def_bzlib $def_dcbzl +$def_atanf +$def_atan2f $def_cbrtf +$def_cosf +$def_expf $def_exp2 $def_exp2f $def_fast_64bit @@ -8842,6 +8860,7 @@ $def_ibm_asm $def_isinf $def_isnan +$def_ldexpf $def_libavcodec_mpegaudio_hp $def_llrint $def_llrintf @@ -8849,6 +8868,7 @@ $def_local_aligned_16 $def_log2 $def_log2f +$def_log10f $def_lrint $def_lrintf $def_mlib @@ -8859,10 +8879,12 @@ $def_pic $def_poll_h $def_posix_memalign +$def_powf $def_pthreads $def_rint $def_round $def_roundf +$def_sinf $def_threads $def_trunc $def_truncf