]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
config: Update obsolete autoconf macro
authorPietro Monteiro <pietro@sociotechnical.xyz>
Thu, 14 Aug 2025 21:40:37 +0000 (17:40 -0400)
committerPietro Monteiro <pietro@sociotechnical.xyz>
Thu, 14 Aug 2025 21:40:37 +0000 (17:40 -0400)
Change AC_TRY_LINK to AC_LINK_IFELSE in config/dejagnu.m4.

Reviewed-by: Indu Bhagat <indu.bhagat@oracle.com>
config/dejagnu.m4

index 0606e42cb53274d49e75f164fd1d12cc791b6861..e0ed81830b27a35b516de1e975f44d44cd9258a2 100644 (file)
@@ -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 <dejagnu.h>],
-             [pass ("test foo");
-              return 0;],
+  AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <dejagnu.h>]],
+                                 [[pass ("test foo");
+              return 0;]])],
              [ac_cv_dejagnu_compat=yes],
              [ac_cv_dejagnu_compat=no])
   AC_MSG_RESULT([$ac_cv_dejagnu_compat])