From e1a35bb0212b411c546b09d4a3c0ba558a39ea7a Mon Sep 17 00:00:00 2001 From: brarcher Date: Fri, 14 Feb 2014 10:59:00 +0000 Subject: [PATCH] configure.ac: print summary at end of configure The reason for the summary is mostly for convenience, when trying Check out on different platforms. This includes most of the possible configurable options. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1111 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- configure.ac | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/configure.ac b/configure.ac index 3aebfeb..c3ea054 100644 --- a/configure.ac +++ b/configure.ac @@ -324,3 +324,59 @@ AC_CONFIG_FILES([check.pc tests/test_vars]) AC_OUTPUT + +# Finally, print a summary of the Check's compile options + +echo +echo "==========================================" +echo "Summary of Check options:" +echo + +echo -n "fork mode ............................ " +if test "x0" = x"$HAVE_FORK"; then + echo "no" +else + echo "yes" +fi + +echo -n "high resolution timer replacement .... " +case "$hw_cv_librt_timers_posix" in + "yes") + echo "no" + ;; + "no") + echo "yes" + ;; + *) + # The AC_REPLACE_FUNCS macro was invoked, + # meaning we are cross compiling. + if test "xno" = x"$ac_cv_func_timer_create"; then + echo "yes" + else + echo "no" + fi + ;; +esac + +echo -n "snprintf replacement ................. " +if test "xno" = x"$hw_cv_func_snprintf_c99"; then + echo "yes" +else + echo "no" +fi + +echo -n "subunit support....................... " +if test "xfalse" = x"$enable_subunit"; then + echo "no" +else + echo "yes" +fi + +echo -n "timeout unit tests ................... " +if test "xtrue" = x"$enable_timeout_tests"; then + echo "yes" +else + echo "no" +fi + +echo "==========================================" -- 2.40.0