aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2008-03-25 09:53:49 +0000
committerDiego Biurrun <diego@biurrun.de>2008-03-25 09:53:49 +0000
commit8c6afa4dae7df62dfceed22e65fe243762fdd137 (patch)
treeed9cd869fc0137a41cb8ca9739e56b3a268ff296
parenta77705e2b6b6aaf7319bd39d6290aadbd521fdbe (diff)
downloadffmpeg-8c6afa4dae7df62dfceed22e65fe243762fdd137.tar.gz
Introduce --disable-logging option to control logging. --logfile now just
controls the name of the log file, not the decision whether or not to log. Originally committed as revision 12577 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure13
1 files changed, 6 insertions, 7 deletions
diff --git a/configure b/configure
index f12952ee9b..940e5e0ab7 100755
--- a/configure
+++ b/configure
@@ -56,7 +56,8 @@ show_help(){
echo
echo "Standard options:"
echo " --help print this message"
- echo " --logfile=<FILE|yes|no> log tests and output to FILE [config.err]"
+ echo " --logfile=FILE log tests and output to FILE [config.err]"
+ echo " --disable-logging do not log configure debug information"
echo " --prefix=PREFIX install in PREFIX [$PREFIX]"
echo " --libdir=DIR install libs in DIR [PREFIX/lib]"
echo " --shlibdir=DIR install shared libs in DIR [PREFIX/lib]"
@@ -771,6 +772,7 @@ CMDLINE_SELECT="
$THREADS_LIST
debug
extra_warnings
+ logging
optimizations
shared
static
@@ -990,7 +992,7 @@ show_list() {
for opt do
optval="${opt#*=}"
case "$opt" in
- --logfile=*) logging="$optval"
+ --logfile=*) logfile="$optval"
;;
--prefix=*) PREFIX="$optval"
;;
@@ -1304,13 +1306,10 @@ TMPH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h"
add_extralibs $osextralibs
-if ! disabled logging ; then
- enabled logging || logfile="$logging"
+enabled logging || logfile=/dev/null
+
echo "# $0 $@" >$logfile
set >>$logfile
-else
- logfile=/dev/null
-fi
# Combine FFLDFLAGS and the LDFLAGS environment variable.
LDFLAGS="$FFLDFLAGS $LDFLAGS"