Commit 345ff81c authored by Thomas Roessler's avatar Thomas Roessler

Revised version of Lars' patch.

parent 09afe8b3
......@@ -150,6 +150,7 @@
/* define when your system has the setrlimit function */
#undef HAVE_SETRLIMIT
@BOTTOM@
/* Define if you have start_color, as a function or macro. */
#undef HAVE_START_COLOR
......
......@@ -198,16 +198,9 @@ main ()
LIBS="$LIBS $MUTTLIBS"
CF_CHECK_FUNCDECLS([#include <curses.h>], start_color typeahead bkgdset curs_set meta use_default_colors resizeterm)
if test "$ac_cv_func_decl_start_color" = yes; then
AC_DEFINE(HAVE_START_COLOR)
AC_DEFINE(HAVE_COLOR)
fi
test "$ac_cv_func_decl_typeahead" = yes && AC_DEFINE(HAVE_TYPEAHEAD)
test "$ac_cv_func_decl_bkgdset" = yes && AC_DEFINE(HAVE_BKGDSET)
test "$ac_cv_func_decl_curs_set" = yes && AC_DEFINE(HAVE_CURS_SET)
test "$ac_cv_func_decl_meta" = yes && AC_DEFINE(HAVE_META)
test "$ac_cv_func_decl_use_default_colors" = yes && AC_DEFINE(HAVE_USE_DEFAULT_COLORS)
if test "$ac_cv_func_decl_resizeterm" = yes; then
AC_DEFINE(HAVE_RESIZETERM)
MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
fi
LIBS="$old_LIBS"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment