aboutsummaryrefslogtreecommitdiffstats
path: root/m4/pretty_print.m4
blob: 37efe5de113e5e6d90df4b47677335da9d053623 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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) "
])