[FFmpeg-devel] [PATCH] Implement CPP condition check support in configure

Dominik 'Rathann' Mierzejewski dominik
Wed Oct 1 12:25:11 CEST 2008


On Wednesday, 01 October 2008 at 10:35, M?ns Rullg?rd wrote:
> Diego Biurrun <diego at biurrun.de> writes:
> 
> > On Wed, Sep 24, 2008 at 10:40:26PM +0200, Stefano Sabatini wrote:
> >>  
> >> --- configure	(revision 15400)
> >> +++ configure	(working copy)
> >> @@ -608,6 +620,16 @@
> >>  
> >> +require3(){
> >> +    name="$1"
> >> +    header="$2"
> >> +    func="$3"
> >> +    cpp_condition="$4"
> >> +    shift 4
> >> +    check_lib $header $func "$@" || die "ERROR: $name not found"
> >> +    check_cpp_condition $header "$cpp_condition" || die "ERROR: $name does not satisfies CPP condition: $cpp_condition"
> >> +}
> >
> > I wonder if another require function is necessary.  You could simply run
> > two checks for libx264...
> 
> Yes, this is getting a bit specialised, and it would only be used in
> one place.
> 
> That said, I'm still not convinced of the need to test the x264 version.

It's always better to tell the user that their x264 is too old as soon as we
can determine that rather than failing in the middle of compilation.

Regards,
R.

-- 
MPlayer http://mplayerhq.hu | Livna http://rpm.livna.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
	-- from "Collected Sayings of Muad'Dib" by the Princess Irulan




More information about the ffmpeg-devel mailing list