-dnl
dnl Some systems have different arguments to the tputs callback; it can
dnl be int (*)(int), or int (*)(char). Try to probe to see which one it
dnl actually is, so our callback can match the prototype.
[for tputs_arg1 in 'const char *' 'char *'; do
for tputs_putc_arg in 'int' 'char'; do
AC_COMPILE_IFELSE(
- [AC_LANG_PROGRAM(
+ [AC_LANG_PROGRAM(
[AC_INCLUDES_DEFAULT
#include <curses.h>
#include <term.h>
done
AS_IF([test "X$nmh_cv_tputs_putc_arg" = X],
[AC_MSG_FAILURE([cannot determine tputs callback argument])])])
-AC_MSG_RESULT([$nmh_cv_tputs_putc_arg])
AC_DEFINE_UNQUOTED([TPUTS_PUTC_ARG], [$nmh_cv_tputs_putc_arg],
[The type of the argument of the tputs() callback])
])