aboutsummaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorAvuton Olrich <avuton@gmail.com>2010-04-17 11:02:41 -0700
committerAvuton Olrich <avuton@gmail.com>2010-04-21 12:23:37 -0700
commitb135483abc85f14b14015d2ea66bababbb67abcc (patch)
tree724573ad6242e9a91b2e8ae91784fd1165a7c050 /m4
parentba36cbde06b35ae27cf2e1435e9cab3197930ebb (diff)
configure.ac: New pretty print results menu.
This commit adds a new pretty print menu, we've (far) outgrown the old menu which because hard to traverse.
Diffstat (limited to 'm4')
-rw-r--r--m4/pretty_print.m417
1 files changed, 17 insertions, 0 deletions
diff --git a/m4/pretty_print.m4 b/m4/pretty_print.m4
new file mode 100644
index 00000000..37efe5de
--- /dev/null
+++ b/m4/pretty_print.m4
@@ -0,0 +1,17 @@
+AC_DEFUN([results], [
+ dnl This is a hack to allow "with" names, otherwise "enable".
+ num=`expr match $1 "with"`
+ if test "$num" != "0"; then
+ var="`echo '$'$1`"
+ else
+ var="`echo '$'enable_$1`"
+ fi
+
+ echo -n "("
+ if eval "test x$var = xyes"; then
+ echo -n "+"
+ else
+ echo -n "-"
+ fi
+ echo -n "$2) "
+])