Show config.log contents if configure failed

This should help understanding why Qt libraries are not found under
Bionic and may also be useful in case of other failures in the future.
This commit is contained in:
Vadim Zeitlin
2020-04-22 15:24:24 +02:00
parent cd750332d3
commit f899a72d45

View File

@@ -54,7 +54,14 @@ case $wxTOOLSET in
;;
*)
echo 'Configuring...' && echo -en 'travis_fold:start:script.configure\\r'
./configure --disable-optimise --disable-debug_info $wxCONFIGURE_FLAGS
./configure --disable-optimise --disable-debug_info $wxCONFIGURE_FLAGS || rc=$?
if [ $rc != 0 ]; then
echo '*** Configuring failed, contents of config.log follows: ***'
echo '-----------------------------------------------------------'
cat config.log
echo '-----------------------------------------------------------'
exit $rc
fi
echo -en 'travis_fold:end:script.configure\\r'
echo 'Building...' && echo -en 'travis_fold:start:script.build\\r'