The 0.5 ffmpeg branch includes libswscale directly, not as an external,
breaking the dist (and warning in autogen.sh) about not being able to
update its revision.
Add some code to not update the svn external if the
FFMPEG_EXTERNALS_REVISION variable is empty.
Also, in autogen.sh check that the current FFmpeg checkout is from the
right branch according to ffmpegrev, and check it out again if
it's not.
Don't use AC_CONFIG_SUBDIRS to call the FFmpeg configure script, as it
complains about all the unknown parameters autoconf gives it, and fiddling
with ac_configure_args makes maintainer-mode call our real configure script
with a bunch of bogus arguments.
Instead, use AC_CONFIG_COMMANDS to call the FFmpeg configure script
ourselves.
Remove autogen.sh code that modifies the FFmpeg configure script, as it's
not needed now that we only pass it arguments it understands, and move
the detection of flags like --disable-ffmpeg into the configure script,
otherwise they never get passed to FFmpeg if we call configure ourselves,
such as from a tarball.
Bring make dist in sync with autogen.sh's retrieval of ffmpeg
checkout, which also includes an update to selected revision
of libswscale external. Also include *.S files (needed for
e.g. ARM build).
Original commit message from CVS:
* Makefile.am:
Add gst-libs to DIST_SUBDIRS to make sure that it's always
disted.
* autogen.sh:
Remove -I m4 from autogen.sh, it's not disted and used anymore and
thus makes autogen.sh fail if run on a tarball. Fixes bug #563305.
Original commit message from CVS:
2008-04-14 Andy Wingo <wingo@pobox.com>
* autogen.sh:
* ffmpegrev (FFMPEG_EXTERNALS_UPDATE): Because ffmpeg checks out
libswscale via an svn:externals, checking out an old ffmpeg does
not check out a corresponding libswscale. Keep the swscale
checkout manually synchronized, then. Update this when you update
FFMPEG_REVISION.
Original commit message from CVS:
* autogen.sh:
Add -Wno-portability to the automake parameters to stop warnings
about GNU make extensions being used. We require GNU make in almost
every Makefile anyway.
* configure.ac:
Use AM_PROG_CC_C_O as a compiler that accepts both -c and -o
at the same time is required for per target flags.
Original commit message from CVS:
* autogen.sh: execute ffmpeg's autogen.sh directly
* gst-libs/ext/ffmpeg/autogen.sh: Add a #! line. Specify bash,
since there are bashisms ('local').