summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-07-19 16:47:25 +0000
committeriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-07-19 16:47:25 +0000
commit1bf700a093d4ec2d47ae00c3595eac1511178980 (patch)
tree925d7d31cffaaba904eda61ac06d6d181bb8d64d /configure
parentf8f3683a37912bd9dc8a79dab2a88ef57810868a (diff)
downloadmpv-1bf700a093d4ec2d47ae00c3595eac1511178980.tar.bz2
mpv-1bf700a093d4ec2d47ae00c3595eac1511178980.tar.xz
libx264 compiled with visualization requirs xlib
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16016 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index a3614f1b13..da6f5fee4c 100755
--- a/configure
+++ b/configure
@@ -6137,7 +6137,10 @@ cat > $TMPC << EOF
int main(void) { x264_encoder_open((void*)0); return 0; }
EOF
_ld_x264="$_ld_x264 -lx264 $_ld_lm $_ld_pthread"
-if test "$_x264" != no && cc_check $_inc_x264 $_ld_x264 ; then
+if test "$_x264" != no && \
+( cc_check $_inc_x264 $_ld_x264 || \
+( test "$_x11" = yes && cc_check $_inc_x264 $_inc_x11 $_ld_x264 $_ld_x11 )) ; \
+then
_x264=yes
_def_x264='#define HAVE_X264 1'
_codecmodules="x264 $_codecmodules"