--- file_not_specified_in_diff +++ file_not_specified_in_diff @@ -, +, @@ --- a/configure.ac +++ b/configure.ac @@ -334,14 +334,14 @@ dnl tgetent, tputs and UP [sic] are all required. They come from libtinfo dnl which is pulled in as a dependency of libncurses. old_LIBS="$LIBS" -AC_CHECK_LIB([ncurses], [tgetent], [], [ - AC_MSG_ERROR(['ncurses' library not found, or it doesn't contain 'tgetent']) +AC_SEARCH_LIBS(tgetent, tinfo ncurses, [], [ + AC_MSG_ERROR([no library found that contains 'tgetent']) ]) -AC_CHECK_LIB([ncurses], [tputs], [], [ - AC_MSG_ERROR(['ncurses' library not found, or it doesn't contain 'tputs']) +AC_SEARCH_LIBS(tputs, tinfo ncurses, [], [ + AC_MSG_ERROR([no library found that contains 'tputs']) ]) -AC_CHECK_LIB([ncurses], [UP], [], [ - AC_MSG_ERROR(['ncurses' library not found, or it doesn't contain 'UP']) +AC_SEARCH_LIBS(UP, tinfo ncurses, [], [ + AC_MSG_ERROR([no library found that contains 'UP']) ]) LIBS="$old_LIBS"