[FFmpeg-devel] [PATCH] make librtmp+ssl work with configure

Stefano Sabatini stefano.sabatini-lala
Sat Jun 5 12:47:07 CEST 2010


On date Saturday 2010-06-05 10:44:01 +0200, Luca Barbato encoded:
> Checking just for -lrtmp doesn't work anymore when it links to an ssl
> library, since it provides a pkg-config so let's use it.
> 
> lu
> 
> -- 
> 
> Luca Barbato
> Gentoo/linux
> http://dev.gentoo.org/~lu_zero
> 

> diff --git a/configure b/configure
> index 2949d30..3006b32 100755
> --- a/configure
> +++ b/configure
> @@ -2618,7 +2618,7 @@ enabled libnut     && require  libnut libnut.h nut_demuxer_init -lnut
>  enabled libopencore_amrnb  && require libopencore_amrnb opencore-amrnb/interf_dec.h Decoder_Interface_init -lopencore-amrnb -lm
>  enabled libopencore_amrwb  && require libopencore_amrwb opencore-amrwb/dec_if.h D_IF_init -lopencore-amrwb -lm
>  enabled libopenjpeg && require libopenjpeg openjpeg.h opj_version -lopenjpeg

> -enabled librtmp    && require  librtmp librtmp/rtmp.h RTMP_Init -lrtmp
> +enabled librtmp    && add_cflags $(pkg-config --cflags librtmp) && require  librtmp librtmp/rtmp.h RTMP_Init $(pkg-config --libs librtmp)

BTW, a version check should be added.

Regards.
-- 
FFmpeg = Funny and Fostering Murdering Proud Erroneous Gorilla



More information about the ffmpeg-devel mailing list