diff options
author | James Almer <jamrial@gmail.com> | 2017-09-13 14:07:21 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-09-13 15:38:10 -0300 |
commit | 4d390344ec385f8eb7d46456df48cb07a0f946b0 (patch) | |
tree | c984ffb3657f79bc92c0107100fabd2b1b7645eb | |
parent | 6ce4a635ed19db9003dae36f52d432f2b8988bb7 (diff) | |
download | ffmpeg-4d390344ec385f8eb7d46456df48cb07a0f946b0.tar.gz |
configure: check if NAN can be used as a constant initializer
Some targets, like NetBSD and DJGPP, don't seem to support it.
Signed-off-by: James Almer <jamrial@gmail.com>
-rwxr-xr-x | configure | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -3210,6 +3210,7 @@ pixfmts_super2xsai_test_deps="super2xsai_filter" tinterlace_filter_deps="gpl" tinterlace_merge_test_deps="tinterlace_filter" tinterlace_pad_test_deps="tinterlace_filter" +tonemap_filter_deps="const_nan" uspp_filter_deps="gpl avcodec" vaguedenoiser_filter_deps="gpl" vidstabdetect_filter_deps="libvidstab" @@ -3217,7 +3218,7 @@ vidstabtransform_filter_deps="libvidstab" libvmaf_filter_deps="libvmaf" zmq_filter_deps="libzmq" zoompan_filter_deps="swscale" -zscale_filter_deps="libzimg" +zscale_filter_deps="libzimg const_nan" scale_vaapi_filter_deps="vaapi VAProcPipelineParameterBuffer" # examples @@ -5312,6 +5313,11 @@ unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E'; EOF od -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian +check_cc <<EOF && enable const_nan +#include <math.h> +void foo(void) { struct { double d; } static const bar[] = { { NAN } }; } +EOF + if ! enabled ppc64 || enabled bigendian; then disable vsx fi |