configure does not fully honour "--with-x264-tree=PATH"
I try to build libx264 statically into a VLC binary package. To do so I use these configure parameters:
--enable-x264 --with-x264-tree=PATH
However, configure fails to find x264 unless I also install libx264 library in the pkgconfig search path. This is the relevant section of config.log:
configure:56469: result: yes
configure:56485: checking for X264
configure:56492: $PKG_CONFIG --exists --print-errors "x264"
Package x264 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x264.pc'
to the PKG_CONFIG_PATH environment variable
No package 'x264' found
configure:56495: $? = 1
configure:56508: $PKG_CONFIG --exists --print-errors "x264"
Package x264 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x264.pc'
to the PKG_CONFIG_PATH environment variable
No package 'x264' found
configure:56511: $? = 1
No package 'x264' found
configure:56538: result: no
configure:56541: error: the specified tree hasn't been compiled
But there is a "x264-snapshot-20090205-2245/libx264.a" present.
If I install the x264 files so that pkgconfig can find them, I can build vlc but then "vlc -vvv" shows this error:
[0x8066b90] main libvlc warning: cannot load module `/usr/lib/vlc/codec/libx264_plugin.so' (/usr/lib/vlc/codec/libx264_plugin.so: undefined symbol: x264_nal_encode)
Eric