Commit e155a21a authored by Diego Biurrun's avatar Diego Biurrun

Invert logging variable logic so that it works without setting a default.

Originally committed as revision 12585 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent f2310b79
...@@ -205,15 +205,15 @@ If you think configure made a mistake, make sure you are using the latest ...@@ -205,15 +205,15 @@ If you think configure made a mistake, make sure you are using the latest
version from SVN. If the latest version fails, report the problem to the version from SVN. If the latest version fails, report the problem to the
ffmpeg-user@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net. ffmpeg-user@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
EOF EOF
if enabled logging; then if disabled logging; then
cat <<EOF cat <<EOF
Include the log file "$logfile" produced by configure as this will help Rerun configure with logging enabled (do not use --disable-logging), and
solving the problem. include the log this produces with your report.
EOF EOF
else else
cat <<EOF cat <<EOF
Rerun configure with logging enabled (do not use --disable-logging), and Include the log file "$logfile" produced by configure as this will help
include the log this produces with your report. solving the problem.
EOF EOF
fi fi
rm -f $TMPC $TMPO $TMPE $TMPS $TMPH rm -f $TMPC $TMPO $TMPE $TMPS $TMPH
...@@ -868,7 +868,6 @@ vhook_extralibs='$ldl' ...@@ -868,7 +868,6 @@ vhook_extralibs='$ldl'
# default parameters # default parameters
enable logging
logfile="config.err" logfile="config.err"
# installation paths # installation paths
...@@ -1305,7 +1304,7 @@ TMPH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h" ...@@ -1305,7 +1304,7 @@ TMPH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h"
add_extralibs $osextralibs add_extralibs $osextralibs
enabled logging || logfile=/dev/null disabled logging && logfile=/dev/null
echo "# $0 $@" >$logfile echo "# $0 $@" >$logfile
set >>$logfile set >>$logfile
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment