Install ffmpeg with x264 without root

Hi, I need help with following problem: I don't have a root access and i need to install ffmpeg with x264 support. The problem is, tha without root, I cannot install shared libraries to /usr/lib and ffmpeg won't find them. I tried multiple workaround, even setting LD_LIBRARY_PATH, but nothing helps. Is there any way? Thanks. PS. Clean ffmepg without additional libs compiles and runs without problems.

SOLVED. I just ran configure with: --extra-cflags="-I /home/myhome/x264/" --extra-libs="-L /home/myhome/x264/libx264.a" --extra-ldflags="-L /home/myhome/x264/" where /home/myhome/x264/ is a directory with compiled x264