diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-24 13:15:42 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-24 13:15:42 +0200 |
commit | 42ee9f3981979880209a60d1ac30057fcfab6e53 (patch) | |
tree | ad251caf6ccfb529968fb6da4cf457fa1d10c334 /configure | |
parent | 2dbc93455c148bbd051549a7ed5c88fb08c853c5 (diff) | |
download | ffmpeg-42ee9f3981979880209a60d1ac30057fcfab6e53.tar.gz |
build: fix detection of math functions with 2 parameters.
The code from libav seems to have been entirely untested.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 26 |
1 files changed, 23 insertions, 3 deletions
@@ -860,6 +860,18 @@ int main(void){ return (int) foo; } EOF } +check_math2func(){ + log check_math2func "$@" + func=$1 + shift + disable $func + check_ld "cc" "$@" <<EOF && enable $func +#include <math.h> +float foo(float f) { return $func(f, f); } +int main(void){ return (int) foo; } +EOF +} + check_func_headers(){ log check_func_headers "$@" headers=$1 @@ -1265,7 +1277,6 @@ HAVE_LIST_PUB=' MATH_FUNCS=" atanf - atan2f cbrtf cosf exp2 @@ -1273,7 +1284,6 @@ MATH_FUNCS=" expf isinf isnan - ldexpf llrint llrintf log2 @@ -1281,7 +1291,6 @@ MATH_FUNCS=" log10f lrint lrintf - powf rint round roundf @@ -1290,6 +1299,12 @@ MATH_FUNCS=" truncf " +MATH2_FUNCS=" + atan2f + ldexpf + powf +" + HAVE_LIST=" $ARCH_EXT_LIST $(add_suffix _external $ARCH_EXT_LIST) @@ -1298,6 +1313,7 @@ HAVE_LIST=" $HAVE_LIST_PUB $THREADS_LIST $MATH_FUNCS + $MATH2_FUNCS aligned_malloc aligned_stack alsa_asoundlib_h @@ -3633,6 +3649,10 @@ for func in $MATH_FUNCS; do check_mathfunc $func done +for func in $MATH2_FUNCS; do + check_math2func $func +done + # these are off by default, so fail if requested and not available enabled avisynth && require2 vfw32 "windows.h vfw.h" AVIFileInit -lavifil32 enabled fontconfig && require_pkg_config fontconfig "fontconfig/fontconfig.h" FcInit |