From ad6dba1cea202de44f7f4597a73842e4ca47c639 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sat, 31 Oct 2020 08:31:00 -0400 Subject: gdb: replace AC_TRY_LINK in sanitize.m4 ... with AC_LINK_IFELSE + AC_LANG_PROGRAM. All changes in the generated configure file are insignificant whitespace changes. gdb/ChangeLog: * configure: Re-generate. * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE + AC_LANG_PROGRAM. Change-Id: I6fc4c39e10b28d2ade964e0d59a7f8ec0d3a272a --- gdb/sanitize.m4 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gdb/sanitize.m4') diff --git a/gdb/sanitize.m4 b/gdb/sanitize.m4 index 78d0070..87a4f3c 100644 --- a/gdb/sanitize.m4 +++ b/gdb/sanitize.m4 @@ -34,7 +34,11 @@ if test "x$enable_ubsan" = xyes; then dnl A link check is required because it is possible to install gcc dnl without libubsan, leading to link failures when compiling with dnl -fsanitize=undefined. - AC_TRY_LINK([],[],enable_ubsan=yes,enable_ubsan=no) + AC_LINK_IFELSE( + [AC_LANG_PROGRAM([], [])], + [enable_ubsan=yes], + [enable_ubsan=no] + ) CXXFLAGS="$saved_CXXFLAGS" AC_MSG_RESULT($enable_ubsan) if test "x$enable_ubsan" = xyes; then -- cgit v1.1