Let the dependency checker decide about x11_grab_device_demuxer
authorRamiro Polla <ramiro.polla@gmail.com>
Fri, 21 Sep 2007 20:01:43 +0000 (20:01 +0000)
committerRamiro Polla <ramiro.polla@gmail.com>
Fri, 21 Sep 2007 20:01:43 +0000 (20:01 +0000)
Originally committed as revision 10542 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 7ac385704e6c3c4b0a524555bdc42d26d50cb121..496b4a77caa17569b46e437ec9d9e53b94813afc 100755 (executable)
--- a/configure
+++ b/configure
@@ -794,7 +794,7 @@ rtsp_demuxer_deps="rtp_protocol rtp_muxer"
 sdp_demuxer_deps="rtsp_demuxer"
 v4l2_demuxer_deps="linux_videodev2_h"
 v4l_demuxer_deps="linux_videodev_h"
-x11_grab_device_demuxer_deps="x11grab"
+x11_grab_device_demuxer_deps="x11grab XShmCreateImage"
 x11_grab_device_demuxer_extralibs="-lX11 -lXext"
 
 # protocols
@@ -1701,12 +1701,10 @@ check_header soundcard.h
 
 # Deal with the x11 frame grabber
 enabled x11grab                         &&
-enabled x11_grab_device_demuxer         &&
 check_header X11/Xlib.h                 &&
 check_header X11/extensions/XShm.h      &&
 check_func XOpenDisplay -lX11           &&
-check_func XShmCreateImage -lX11 -lXext ||
-disable x11_grab_device_demuxer
+check_func XShmCreateImage -lX11 -lXext
 
 enabled debug && add_cflags -g