summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2009-04-19 02:34:50 +0100
committerJan Schmidt <thaytan@noraisin.net>2009-04-19 02:42:10 +0100
commit3c064affc1f14d761d99aa049033c8413c0bab05 (patch)
treeb2464849647306475bd030a76781398db7b4447e /autogen.sh
parentae018718d4e21ad392bc7f273c416e4b7437e6bc (diff)
downloadgst-libav-3c064affc1f14d761d99aa049033c8413c0bab05.tar.gz
build: Fix maintainer-mode and embedded FFmpeg configuration parameters
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.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh19
1 files changed, 0 insertions, 19 deletions
diff --git a/autogen.sh b/autogen.sh
index 119e0ed..b34704f 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -54,25 +54,6 @@ then
ln -s ../../common/hooks/pre-commit.hook .git/hooks/pre-commit
fi
-
-# Let's check if we can disable the building of the ffmpeg binary
-can_disable=`$FFMPEG_CO_DIR/configure --help | grep 'disable-ffmpeg' | wc -l`
-
-if [ $can_disable != "0" ]
-then
- CONFIGURE_DEF_OPT="--disable-ffmpeg"
-fi
-
-# Let's clear the 'exit 1' command when we post an Unknown option
-echo "Patching ffmpeg ./configure"
-sed -e '/Unknown option/ {
-N
-N
-s/exit 1/#/
-}' $FFMPEG_CO_DIR/configure > $FFMPEG_CO_DIR/configure.tmp
-mv $FFMPEG_CO_DIR/configure.tmp $FFMPEG_CO_DIR/configure
-chmod +x $FFMPEG_CO_DIR/configure
-
autogen_options $@
echo -n "+ check for build tools"