[Ffmpeg-cvslog] r7353 - in trunk: configure libavformat/Makefile

diego subversion
Fri Dec 22 05:38:25 CET 2006


Author: diego
Date: Fri Dec 22 05:38:24 2006
New Revision: 7353

Modified:
   trunk/configure
   trunk/libavformat/Makefile

Log:
Make the X11 frame grabber disabled by default.


Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Fri Dec 22 05:38:24 2006
@@ -88,6 +88,7 @@
   echo "  --enable-amr_if2         enable amr_wb IF2 audio codec"
   echo "  --enable-sunmlib         use Sun medialib [default=no]"
   echo "  --enable-pthreads        use pthreads [default=no]"
+  echo "  --enable-x11grab         enable X11 grabbing [default=no]"
   echo "  --enable-dc1394          enable IIDC-1394 grabbing using libdc1394"
   echo "                           and libraw1394 [default=no]"
   echo "  --enable-swscaler        software scaler support [default=no]"
@@ -442,6 +443,7 @@
     video4linux
     video4linux2
     wince
+    x11grab
     x264
     xvid
     zlib
@@ -574,6 +576,7 @@
 bktr="no"
 audio_oss="yes"
 audio_beos="no"
+x11grab="no"
 dv1394="yes"
 dc1394="no"
 network="yes"
@@ -955,6 +958,8 @@
   ;;
   --enable-avisynth) avisynth="yes";
   ;;
+  --enable-x11grab) x11grab="yes";
+  ;;
   --enable-dc1394) dc1394="yes"
     pkg_requires="$pkg_requires libraw1394"
   ;;
@@ -1163,6 +1168,11 @@
             echo "FAAD test failed."
         fi
     fi
+
+    if test "$x11grab" != "no"; then
+        echo "The X11 grabber is under GPL and --enable-gpl is not specified."
+        fail="yes"
+    fi
 fi
 
 if test "$fail" = "yes"; then
@@ -1661,6 +1671,7 @@
 EOF
 
 # Deal with the x11 frame grabber
+enabled x11grab                         &&
 enabled gpl                             &&
 enabled x11_grab_device_demuxer         &&
 check_header X11/Xlib.h                 &&

Modified: trunk/libavformat/Makefile
==============================================================================
--- trunk/libavformat/Makefile	(original)
+++ trunk/libavformat/Makefile	Fri Dec 22 05:38:24 2006
@@ -123,12 +123,15 @@
 OBJS-$(CONFIG_WSAUD_DEMUXER)             += westwood.o
 OBJS-$(CONFIG_WSVQA_DEMUXER)             += westwood.o
 OBJS-$(CONFIG_WV_DEMUXER)                += wv.o
-OBJS-$(CONFIG_X11_GRAB_DEVICE_DEMUXER)   += x11grab.o
 OBJS-$(CONFIG_YUV4MPEGPIPE_MUXER)        += yuv4mpeg.o
 OBJS-$(CONFIG_YUV4MPEGPIPE_DEMUXER)      += yuv4mpeg.o
 
 OBJS+= framehook.o
 
+ifeq ($(CONFIG_X11GRAB),yes)
+OBJS-$(CONFIG_X11_GRAB_DEVICE_DEMUXER)   += x11grab.o
+endif
+
 ifeq ($(CONFIG_VIDEO4LINUX),yes)
 OBJS-$(CONFIG_VIDEO_GRAB_DEVICE_DEMUXER) += grab.o
 endif




More information about the ffmpeg-cvslog mailing list