From: Pietro Monteiro Date: Thu, 14 Aug 2025 21:40:37 +0000 (-0400) Subject: config: Update obsolete autoconf macro X-Git-Tag: gdb-17-branchpoint~309 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9f685464440e479244ce01262bdd216af14ccdad;p=thirdparty%2Fbinutils-gdb.git config: Update obsolete autoconf macro Change AC_TRY_LINK to AC_LINK_IFELSE in config/dejagnu.m4. Reviewed-by: Indu Bhagat --- diff --git a/config/dejagnu.m4 b/config/dejagnu.m4 index 0606e42cb53..e0ed81830b2 100644 --- a/config/dejagnu.m4 +++ b/config/dejagnu.m4 @@ -9,9 +9,9 @@ AC_DEFUN([DEJAGNU_CHECK_VERSION], AC_MSG_CHECKING([for incompatibility between DejaGnu and GCC]) AC_MSG_RESULT([$ac_cv_dejagnu_compat]) - AC_TRY_LINK([#include ], - [pass ("test foo"); - return 0;], + AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], + [[pass ("test foo"); + return 0;]])], [ac_cv_dejagnu_compat=yes], [ac_cv_dejagnu_compat=no]) AC_MSG_RESULT([$ac_cv_dejagnu_compat])