summaryrefslogtreecommitdiff
path: root/tool/m4/colorize_result.m4
diff options
context:
space:
mode:
Diffstat (limited to 'tool/m4/colorize_result.m4')
-rw-r--r--tool/m4/colorize_result.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/tool/m4/colorize_result.m4 b/tool/m4/colorize_result.m4
new file mode 100644
index 0000000000..29c2942e26
--- /dev/null
+++ b/tool/m4/colorize_result.m4
@@ -0,0 +1,8 @@
+AC_DEFUN([COLORIZE_RESULT], [AC_REQUIRE([_COLORIZE_RESULT_PREPARE])dnl
+ AS_LITERAL_IF([$1],
+ [m4_case([$1],
+ [yes], [AS_ECHO(["${msg_result_yes}$1${msg_reset}"])],
+ [no], [AS_ECHO(["${msg_result_no}$1${msg_reset}"])],
+ [AS_ECHO(["${msg_result_other}$1${msg_reset}"])])],
+ [colorize_result "$1"]) dnl
+])dnl