From 6dc544c661b356c5652a625b324343f6c75d8199 Mon Sep 17 00:00:00 2001 From: Pablo de Lara Date: Mon, 4 Dec 2023 12:00:49 +0000 Subject: [PATCH] Ignore obsolete warnings when using autoreconf A few macros are declared obsolete from autoconf 2.70. In order to avoid breaking compatibility with 2.69 removing them, these warnings are ignored. Signed-off-by: Pablo de Lara --- autogen.sh | 2 +- configure.ac | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/autogen.sh b/autogen.sh index 0a31893..2574c0d 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,6 +1,6 @@ #!/bin/sh -e -autoreconf --install --symlink -f +autoreconf --install --symlink -f -Wno-obsolete libdir() { echo $(cd $1/$(gcc -print-multi-os-directory); pwd) diff --git a/configure.ac b/configure.ac index b491d7d..6f284a5 100644 --- a/configure.ac +++ b/configure.ac @@ -69,13 +69,11 @@ AS_IF([test "x$enable_debug" = "xyes"], [ # If this build is for x86, look for yasm and nasm if test x"$is_x86" = x"yes"; then AC_MSG_CHECKING([whether Intel CET is enabled]) - AC_TRY_COMPILE([],[ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[ #ifndef __CET__ # error CET is not enabled -#endif], - [AC_MSG_RESULT([yes]) - intel_cet_enabled=yes], - [AC_MSG_RESULT([no]) +#endif]])],[AC_MSG_RESULT([yes]) + intel_cet_enabled=yes],[AC_MSG_RESULT([no]) intel_cet_enabled=no]) AS_IF([test "x$intel_cet_enabled" = "xyes"], [ AC_DEFINE(INTEL_CET_ENABLED, [1], [Intel CET enabled.])