|
|
@ -860,6 +860,18 @@ int main(void){ return (int) foo; } |
|
|
|
EOF |
|
|
|
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(){ |
|
|
|
check_func_headers(){ |
|
|
|
log check_func_headers "$@" |
|
|
|
log check_func_headers "$@" |
|
|
|
headers=$1 |
|
|
|
headers=$1 |
|
|
@ -1265,7 +1277,6 @@ HAVE_LIST_PUB=' |
|
|
|
|
|
|
|
|
|
|
|
MATH_FUNCS=" |
|
|
|
MATH_FUNCS=" |
|
|
|
atanf |
|
|
|
atanf |
|
|
|
atan2f |
|
|
|
|
|
|
|
cbrtf |
|
|
|
cbrtf |
|
|
|
cosf |
|
|
|
cosf |
|
|
|
exp2 |
|
|
|
exp2 |
|
|
@ -1273,7 +1284,6 @@ MATH_FUNCS=" |
|
|
|
expf |
|
|
|
expf |
|
|
|
isinf |
|
|
|
isinf |
|
|
|
isnan |
|
|
|
isnan |
|
|
|
ldexpf |
|
|
|
|
|
|
|
llrint |
|
|
|
llrint |
|
|
|
llrintf |
|
|
|
llrintf |
|
|
|
log2 |
|
|
|
log2 |
|
|
@ -1281,7 +1291,6 @@ MATH_FUNCS=" |
|
|
|
log10f |
|
|
|
log10f |
|
|
|
lrint |
|
|
|
lrint |
|
|
|
lrintf |
|
|
|
lrintf |
|
|
|
powf |
|
|
|
|
|
|
|
rint |
|
|
|
rint |
|
|
|
round |
|
|
|
round |
|
|
|
roundf |
|
|
|
roundf |
|
|
@ -1290,6 +1299,12 @@ MATH_FUNCS=" |
|
|
|
truncf |
|
|
|
truncf |
|
|
|
" |
|
|
|
" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MATH2_FUNCS=" |
|
|
|
|
|
|
|
atan2f |
|
|
|
|
|
|
|
ldexpf |
|
|
|
|
|
|
|
powf |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
|
|
|
|
HAVE_LIST=" |
|
|
|
HAVE_LIST=" |
|
|
|
$ARCH_EXT_LIST |
|
|
|
$ARCH_EXT_LIST |
|
|
|
$(add_suffix _external $ARCH_EXT_LIST) |
|
|
|
$(add_suffix _external $ARCH_EXT_LIST) |
|
|
@ -1298,6 +1313,7 @@ HAVE_LIST=" |
|
|
|
$HAVE_LIST_PUB |
|
|
|
$HAVE_LIST_PUB |
|
|
|
$THREADS_LIST |
|
|
|
$THREADS_LIST |
|
|
|
$MATH_FUNCS |
|
|
|
$MATH_FUNCS |
|
|
|
|
|
|
|
$MATH2_FUNCS |
|
|
|
aligned_malloc |
|
|
|
aligned_malloc |
|
|
|
aligned_stack |
|
|
|
aligned_stack |
|
|
|
alsa_asoundlib_h |
|
|
|
alsa_asoundlib_h |
|
|
@ -3633,6 +3649,10 @@ for func in $MATH_FUNCS; do |
|
|
|
check_mathfunc $func |
|
|
|
check_mathfunc $func |
|
|
|
done |
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for func in $MATH2_FUNCS; do |
|
|
|
|
|
|
|
check_math2func $func |
|
|
|
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
# these are off by default, so fail if requested and not available |
|
|
|
# these are off by default, so fail if requested and not available |
|
|
|
enabled avisynth && require2 vfw32 "windows.h vfw.h" AVIFileInit -lavifil32 |
|
|
|
enabled avisynth && require2 vfw32 "windows.h vfw.h" AVIFileInit -lavifil32 |
|
|
|
enabled fontconfig && require_pkg_config fontconfig "fontconfig/fontconfig.h" FcInit |
|
|
|
enabled fontconfig && require_pkg_config fontconfig "fontconfig/fontconfig.h" FcInit |
|
|
|