... 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
+2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * configure: Re-generate.
+ * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
+ AC_LANG_PROGRAM.
+
2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
* configure: Re-generate.
enable_ubsan=yes
else
enable_ubsan=no
+
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
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