diff --git a/src/cf/curses.m4 b/src/cf/curses.m4 index 261305ce18..24c6535547 100644 --- a/src/cf/curses.m4 +++ b/src/cf/curses.m4 @@ -37,8 +37,10 @@ AC_DEFUN([_OPENAFS_CURSES_GETMAXYX_XTI], AC_CACHE_CHECK([getmaxyx macro], [openafs_cv_curses_getmaxyx], [save_LIBS="$LIBS" LIBS="$LIBS $LIB_curses" - AC_TRY_LINK(_OPENAFS_CURSES_HEADERS, - [int mx, my; initscr(); getmaxyx(stdscr, my, mx); endwin();], + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + _OPENAFS_CURSES_HEADERS, + [int mx, my; initscr(); getmaxyx(stdscr, my, mx); endwin();])], [openafs_cv_curses_getmaxyx=yes], [openafs_cv_curses_getmaxyx=no]) LIBS="$save_LIBS"])