Do not probe for the curses header with the tgoto function because ncurses declares it only in . Without support for implicit function declarations, the header probe always fails. diff --git a/aclocal.m4 b/aclocal.m4 index a561e0216ffe5053..8111d6639923d0d2 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -892,7 +892,7 @@ for cf_header in \ curses.h ifelse($1,,,[$1/curses.h]) ifelse($1,,[ncurses/ncurses.h ncurses/curses.h]) do AC_TRY_COMPILE([#include <${cf_header}>], - [initscr(); tgoto("?", 0,0)], + [initscr();], [cf_cv_ncurses_header=$cf_header; break],[]) done ]) diff --git a/configure b/configure index 969d57dc682b2aa6..cb1992221fc60ccd 100755 --- a/configure +++ b/configure @@ -10420,7 +10420,7 @@ cat >"conftest.$ac_ext" <<_ACEOF int main (void) { -initscr(); tgoto("?", 0,0) +initscr(); ; return 0; } @@ -11243,7 +11243,7 @@ cat >"conftest.$ac_ext" <<_ACEOF int main (void) { -initscr(); tgoto("?", 0,0) +initscr(); ; return 0; } @@ -11520,7 +11520,7 @@ cat >"conftest.$ac_ext" <<_ACEOF int main (void) { -initscr(); tgoto("?", 0,0) +initscr(); ; return 0; }