Kaydet (Commit) f12b1310 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Display a summary of fuzzing in command-line form at the end of configure

Makes it easier to reproduce a fuzzed configuration manually.

Change-Id: Ief4df847f1f17c64607e6e5eaf402737bd50704b
üst 228ae90e
......@@ -12858,6 +12858,8 @@ fi
AC_SUBST(LO_PATH)
libo_FUZZ_SUMMARY
# Generate a configuration md5 we can use for deps
if test -f config_host.mk; then
config_md5=`$MD5SUM config_host.mk | sed "s/ .*//"`
......
......@@ -16,8 +16,9 @@ AC_DEFUN([libo_FUZZ_ARG_WITH], [
else
m4_translit([with-$1], [-+.], [___])=no
fi
AC_MSG_NOTICE([Randomly set m4_translit([with-$1], [-+.], [___]) to $m4_translit([with-$1], [-+.], [___])])
AC_MSG_NOTICE([Randomly set --with-$1=$m4_translit([with-$1], [-+.], [___])])
libo_fuzzed_[]m4_translit([with-$1], [-+.], [___])=yes
libo_fuzz_list="$libo_fuzz_list --with-$1="'$m4_translit([with-$1], [-+.], [___])'
fi
[$4]
)
......@@ -33,10 +34,18 @@ AC_DEFUN([libo_FUZZ_ARG_ENABLE], [
else
m4_translit([enable-$1], [-+.], [___])=no
fi
AC_MSG_NOTICE([Randomly set m4_translit([enable-$1], [-+.], [___]) to $m4_translit([enable-$1], [-+.], [___])])
AC_MSG_NOTICE([Randomly set --enable-$1=$m4_translit([enable-$1], [-+.], [___])])
libo_fuzzed_[]m4_translit([enable-$1], [-+.], [___])=yes
libo_fuzz_list="$libo_fuzz_list --enable-$1="'$m4_translit([enable-$1], [-+.], [___])'
fi
[$4])
])
AC_DEFUN([libo_FUZZ_SUMMARY], [
if test -n "$libo_fuzz_list"; then
tmps=`eval echo $libo_fuzz_list`
AC_MSG_NOTICE([Summary of fuzzing: $tmps])
fi
])
dnl vim:set shiftwidth=4 softtabstop=4 expandtab:
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