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.
This commit is contained in:
17
m4/pretty_print.m4
Normal file
17
m4/pretty_print.m4
Normal file
@@ -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) "
|
||||
])
|
Reference in New Issue
Block a user