summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-04-07 09:20:54 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-04-07 09:23:06 +0200
commitfe5b7db07ac3b5de87cfcb6536146f2236d67164 (patch)
tree91f6d79f0ebab66e3d99aef6a5ea223879cb45b0 /configure
parentab553612e7f8d23b9dd033f37d45e191b02a04d6 (diff)
build system: support setting avassert() assert_level
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure b/configure
index c31bf5d916..adea4b5f40 100755
--- a/configure
+++ b/configure
@@ -277,6 +277,8 @@ Developer options (useful when working on FFmpeg itself):
--disable-optimizations disable compiler optimizations
--enable-extra-warnings enable more compiler warnings
--disable-stripping disable stripping of executables and shared libraries
+ --assert_level=level 0(default), 1 or 2, amount of assertion testing,
+ 2 causes a slowdown at runtime.
--valgrind=VALGRIND run "make fate" tests through valgrind to detect memory
leaks and errors, using the specified valgrind binary.
Cannot be combined with --target-exec
@@ -1304,6 +1306,7 @@ CMDLINE_SET="
ar
arch
as
+ assert_level
build_suffix
cc
cpu
@@ -3721,6 +3724,9 @@ cat > $TMPH <<EOF
#define SLIBSUF "$SLIBSUF"
EOF
+test -n "$assert_level" &&
+ echo "#define ASSERT_LEVEL $assert_level" >>$TMPH
+
test -n "$malloc_prefix" &&
echo "#define MALLOC_PREFIX $malloc_prefix" >>$TMPH