2010-04-17 20:02:41 +02:00
|
|
|
AC_DEFUN([results], [
|
|
|
|
dnl This is a hack to allow "with" names, otherwise "enable".
|
2011-01-07 17:21:44 +01:00
|
|
|
num=`expr $1 : 'with'`
|
2010-04-17 20:02:41 +02:00
|
|
|
if test "$num" != "0"; then
|
|
|
|
var="`echo '$'$1`"
|
|
|
|
else
|
|
|
|
var="`echo '$'enable_$1`"
|
|
|
|
fi
|
|
|
|
|
2011-01-07 17:26:09 +01:00
|
|
|
printf '('
|
2010-04-17 20:02:41 +02:00
|
|
|
if eval "test x$var = xyes"; then
|
2011-01-07 17:26:09 +01:00
|
|
|
printf '+'
|
2010-04-18 00:52:28 +02:00
|
|
|
elif test -n "$3" && eval "test x$var = x$3"; then
|
2011-01-07 17:26:09 +01:00
|
|
|
printf '+'
|
2010-04-17 20:02:41 +02:00
|
|
|
else
|
2011-01-07 17:26:09 +01:00
|
|
|
printf '-'
|
2010-04-17 20:02:41 +02:00
|
|
|
fi
|
2011-01-07 17:26:09 +01:00
|
|
|
printf '%s) ' "$2"
|
2010-04-17 20:02:41 +02:00
|
|
|
])
|