Comiling Asterisk --with-avcodec

Hi,

I need asterisk to compile with ffmpeg/libavcodec, but I get the following error messages:

checking for sws_getContext in -lavcodec… no

checking for mandatory modules: ALSA CRYPTO FFMPEG GSM OPENH323 JACK LIBXML2 LUA MYSQLCLIENT OGG SPEEX SPEEX_PREPROCESS SQLITE3 SRTP OPENSSL VORBIS ZLIB… fail
configure: ***
configure: *** The FFMPEG installation appears to be missing or broken.
configure: *** Either correct the installation, or run configure
configure: *** including --without-avcodec.

It seems that sws_getContext is not only deprecated in ffmpeg but already removed a long time ago. Can anybody successful compile asterisk 11 or 1.8 --with-avcodec?

I’m on debian 6.0/64bit, but neither the debian included ffmpeg works nor an own compiled one.

regards, Andy