From: brarcher Date: Sun, 14 Jun 2015 15:55:09 +0000 (+0000) Subject: configure: do not use echo -n option in summary print out X-Git-Tag: 0.10.0~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ab770efb2bf34f4033a1d89cf8206361d9027a31;p=check configure: do not use echo -n option in summary print out OSX's version of echo does not support the -n option, and thus the summary output looked incorrect. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1207 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- diff --git a/configure.ac b/configure.ac index 4e4c9b8..8edda1d 100644 --- a/configure.ac +++ b/configure.ac @@ -353,51 +353,51 @@ echo "==========================================" echo "Summary of Check options:" echo -echo -n "fork mode ............................ " if test "x0" = x"$HAVE_FORK"; then - echo "no" + result="no" else - echo "yes" + result="yes" fi +echo "fork mode ............................ $result" -echo -n "high resolution timer replacement .... " case "$hw_cv_librt_timers_posix" in "yes") - echo "no" + result="no" ;; "no") - echo "yes" + result="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" + result="yes" else - echo "no" + result="no" fi ;; esac +echo "high resolution timer replacement .... $result" -echo -n "snprintf replacement ................. " if test "xno" = x"$hw_cv_func_snprintf_c99"; then - echo "yes" + result="yes" else - echo "no" + result="no" fi +echo "snprintf replacement ................. $result" -echo -n "subunit support....................... " if test "xfalse" = x"$enable_subunit"; then - echo "no" + result="no" else - echo "yes" + result="yes" fi +echo "subunit support....................... $result" -echo -n "timeout unit tests ................... " if test "xtrue" = x"$enable_timeout_tests"; then - echo "yes" + result="yes" else - echo "no" + result="no" fi +echo "timeout unit tests ................... $result" echo "=========================================="