aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Monteiro <pietro@sociotechnical.xyz>2025-08-14 17:40:37 -0400
committerPietro Monteiro <pietro@sociotechnical.xyz>2025-08-14 17:40:37 -0400
commit9f685464440e479244ce01262bdd216af14ccdad (patch)
tree0afa7b09ab24e702a1d19462335ec5c08e6d8e0a
parent7d6d4f69fe59b1102cbbd64ffaec33f8d18b642b (diff)
downloadbinutils-9f685464440e479244ce01262bdd216af14ccdad.zip
binutils-9f685464440e479244ce01262bdd216af14ccdad.tar.gz
binutils-9f685464440e479244ce01262bdd216af14ccdad.tar.bz2
config: Update obsolete autoconf macro
Change AC_TRY_LINK to AC_LINK_IFELSE in config/dejagnu.m4. Reviewed-by: Indu Bhagat <indu.bhagat@oracle.com>
-rw-r--r--config/dejagnu.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/config/dejagnu.m4 b/config/dejagnu.m4
index 0606e42..e0ed818 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 <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])