Skip to content
Snippets Groups Projects
Commit 6e3d9cbf authored by Martin Nolte's avatar Martin Nolte
Browse files

Add summary information to config.log (see FS#783)

[[Imported from SVN: r6031]]
parent eabe512e
No related branches found
No related tags found
No related merge requests found
......@@ -154,14 +154,12 @@ AC_DEFUN([DUNE_MODULE_ADD_SUMMARY_ENTRY],[
m4_pushdef([_dune_name], [$1])
m4_pushdef([_dune_module], [m4_translit(_dune_name, [-], [_])])
m4_pushdef([_DUNE_MODULE], [m4_toupper(_dune_module)])
result="$with_[]_dune_module"
AS_IF([test -n "$_DUNE_MODULE[]_ROOT"],[
result="$result ($_DUNE_MODULE[]_ROOT)"
])
AS_IF([test -n "$_DUNE_MODULE[]_VERSION"],[
result="$result version $_DUNE_MODULE[]_VERSION"
AS_IF([test -n "$_DUNE_MODULE[]_VERSION" -a "x$with_[]_dune_module" != "xno"],[
result="version $_DUNE_MODULE[]_VERSION"
],[
result="$with_[]_dune_module"
])
DUNE_ADD_SUMMARY_MOD_ENTRY(_dune_name,[$result])
DUNE_ADD_SUMMARY_MOD_ENTRY(_dune_name,[$result],[$_DUNE_MODULE[]_ROOT])
])
m4_define([_dune_sub_version],"`echo $1 | $AWK -F. -v FIELD=$2 '{ print int($FIELD) }'`")
......
......@@ -55,6 +55,9 @@ AC_DEFUN([DUNE_ADD_SUMMARY_ENTRY],[
while test `echo "$txt" | tr -d '\n' | wc -c` -lt $indentlen; do txt="$txt."; done
txt="$txt: $2"
[DUNE_SUMMARY="$DUNE_SUMMARY echo '$txt';"]
fulltxt="$txt"
AS_IF([ test "x$3" != "x" ],[ fulltxt="$fulltxt ($3)" ])
[DUNE_FULLSUMMARY="$DUNE_FULLSUMMARY echo '$fulltxt';"]
])
AC_DEFUN([DUNE_ADD_SUMMARY_MOD_ENTRY],[
......@@ -63,6 +66,9 @@ AC_DEFUN([DUNE_ADD_SUMMARY_MOD_ENTRY],[
while test `echo $txt | tr -d '\n' | wc -c` -lt $indentlen; do txt=$txt.; done
txt="$txt: $2"
[DUNE_MODULES_SUMMARY="$DUNE_MODULES_SUMMARY echo '$txt';"]
fulltxt="$txt"
AS_IF([ test "x$3" != "x" ],[ fulltxt="$fulltxt ($3)" ])
[DUNE_MODULES_FULLSUMMARY="$DUNE_MODULES_FULLSUMMARY echo '$fulltxt';"]
])
AC_DEFUN([DUNE_SUMMARY_ALL],[
......@@ -90,6 +96,19 @@ AC_DEFUN([DUNE_SUMMARY_ALL],[
echo "See ./configure --help and config.log for reasons why a component wasn't found"
echo
{
echo
echo "------------------------------------------------------------------------------"
echo "- SUMMARY -"
echo "------------------------------------------------------------------------------"
echo
[(eval $DUNE_MODULES_FULLSUMMARY) | sort]
echo
[(eval $DUNE_FULLSUMMARY) | sort]
echo
echo "------------------------------------------------------------------------------"
echo
} >&AS_MESSAGE_LOG_FD
])
AC_DEFUN([DUNE_CHECK_ALL_WARNING],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment