Quoting Diego Biurrun (2016-09-08 12:34:14)
> On Wed, Sep 07, 2016 at 02:59:38PM +0200, Anton Khirnov wrote:
> > --- a/configure
> > +++ b/configure
> > @@ -986,6 +986,19 @@ check_cpp_condition(){
> >  
> > +test_cflags_cpp(){
> > +    log test_cflags_cpp "$@"
> > +    flags=$1
> > +    condition=$2
> > +    shift 2
> > +    set -- $($cflags_filter "$flags")
> > +    check_cpp "$@" <<EOF
> > +#if !($condition)
> > +#error "unsatisfied condition: $condition"
> > +#endif
> > +EOF
> > +}
> 
> check_cpp_condition()

That does not handle cflags.

> 
> > @@ -3698,7 +3712,15 @@ if test "$?" != 0; then
> >  
> >  add_cppflags -D_ISOC99_SOURCE
> > -check_cflags -std=c99
> > +
> > +# some compilers silently accept -std=c11, so we also need to check that 
> > the
> > +# version macro is defined properly
> > +if test_cflags_cpp -std=c11 "__STDC_VERSION__ >= 201112L"; then
> > +    add_cflags -std=c11
> > +else
> > +    check_cflags -std=c99
> > +fi
> > +
> > @@ -4533,6 +4555,12 @@ check_header VideoDecodeAcceleration/VDADecoder.h
> >  
> > +# it seems there are versions of clang in some distros that try to use the
> > +# gcc headers, which explodes for stdatomic
> > +# so we also check that atomics actually work here
> > +check_header stdatomic.h &&
> > +    check_code cc "stdatomic.h" "atomic_int foo; atomic_store(&foo, 0)" || 
> > disable stdatomic_h
> 
> check_func_headers()

Does not do what I want here.

-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to