summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2012-02-29 22:49:18 +0200
committerUoti Urpala <uau@mplayer2.org>2012-02-29 22:49:18 +0200
commit0c2a302948d7e2ca5938e19bdc6c66649c7b6a34 (patch)
tree023267c65baa5f6dfd2fd3a894a6954c45ebf5ad /configure
parentafecdb681bed81b5df0ed18a300c68be603dfdf9 (diff)
downloadmpv-0c2a302948d7e2ca5938e19bdc6c66649c7b6a34.tar.bz2
mpv-0c2a302948d7e2ca5938e19bdc6c66649c7b6a34.tar.xz
configure: show PKG_CONFIG_PATH and CFLAGS in config.log
When the build wrapper repo scripts run configure they set a custom PKG_CONFIG_PATH environment variable. Show the value of this in config.log to make it easier to rerun configure with a tweaked version of the same parameters. Also show CFLAGS if set, as it's likely to break things.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure b/configure
index 4a1f9ddd9c..f59b1b5a73 100755
--- a/configure
+++ b/configure
@@ -1374,7 +1374,14 @@ TMPH="$mplayer_tmpdir/tmp.h"
TMPS="$mplayer_tmpdir/tmp.S"
rm -f "$TMPLOG"
-echo configuration: $configuration > "$TMPLOG"
+echo Parameters configure was run with: > "$TMPLOG"
+if test -n "$CFLAGS" ; then
+ echo ${_echo_n} CFLAGS="'$CFLAGS' ${_echo_c}" >> "$TMPLOG"
+fi
+if test -n "$PKG_CONFIG_PATH" ; then
+ echo ${_echo_n} PKG_CONFIG_PATH="'$PKG_CONFIG_PATH' ${_echo_c}" >> "$TMPLOG"
+fi
+echo ./configure $configuration >> "$TMPLOG"
echo >> "$TMPLOG"