From f12264723d5607269459a00033ee683d40e069bf Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Thu, 17 Sep 2020 13:26:24 +0200 Subject: [PATCH] tweaks: replace two more occurrences of 'AC_TRY_RUN' with 'AC_RUN_IFELSE' Leave the occurrences in the Slang stuff alone, as all that stuff will be removed after the next release. --- configure.ac | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index b3864d9a..2888b342 100644 --- a/configure.ac +++ b/configure.ac @@ -677,13 +677,14 @@ AC_DEFINE_UNQUOTED(NANO_REG_EXTENDED, $nano_reg_extended, if test x$color_support = xyes; then AC_MSG_CHECKING([whether _XOPEN_SOURCE_EXTENDED is needed]) - AC_TRY_RUN([ + AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include int main(void) { int testcolor = COLOR_WHITE; return 0; -}], AC_MSG_RESULT(no), +}]])], + AC_MSG_RESULT(no), AC_RUN_IFELSE([AC_LANG_SOURCE([[ #ifndef _XOPEN_SOURCE_EXTENDED #define _XOPEN_SOURCE_EXTENDED 1 @@ -706,14 +707,14 @@ int main(void) fi AC_MSG_CHECKING([whether LINES and COLS can be redefined]) -AC_TRY_RUN([ +AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include int main(void) { LINES = 80; COLS = 25; return 0; -}], +}]])], AC_DEFINE(REDEFINING_MACROS_OK, 1, [Define this if you know your curses library allows LINES and COLS to be redefined to deal with a resizing bug.]) AC_MSG_RESULT(yes), AC_MSG_RESULT(no),