From e3be699f51f11e54f8478e65367b90e3283eaf69 Mon Sep 17 00:00:00 2001 From: Paul Fertser Date: Sun, 15 Jun 2014 10:20:45 +0400 Subject: [PATCH] configure: fix formatting when "echo -n" is not supported The -n option is non-standard and is unavailable on some systems (e.g. OS X's shell builtin). Change-Id: Ia2fed186dee5fa6da543944873d67ebee1d9354e Signed-off-by: Paul Fertser Reviewed-on: http://openocd.zylin.com/2172 Tested-by: jenkins Reviewed-by: Andreas Fritiofson --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 9943bebe..7745bbfb 100644 --- a/configure.ac +++ b/configure.ac @@ -1318,16 +1318,16 @@ echo echo OpenOCD configuration summary echo -------------------------------------------------- m4_foreach([adapter], [USB1_ADAPTERS, USB_ADAPTERS, USB0_ADAPTERS, HIDAPI_ADAPTERS], - [echo -n m4_format(["%-40s"], ADAPTER_DESC([adapter])) + [s=m4_format(["%-40s"], ADAPTER_DESC([adapter])) case $ADAPTER_VAR([adapter]) in auto) - echo yes '(auto)' + echo "$s"yes '(auto)' ;; yes) - echo yes + echo "$s"yes ;; no) - echo no + echo "$s"no ;; esac ]) -- 2.39.5