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 <pablo.de.lara.guarch@intel.com>
This commit is contained in:
Pablo de Lara 2023-12-04 12:00:49 +00:00 committed by Tomasz Kantecki
parent 7e2b097f15
commit 6dc544c661
2 changed files with 4 additions and 6 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh -e #!/bin/sh -e
autoreconf --install --symlink -f autoreconf --install --symlink -f -Wno-obsolete
libdir() { libdir() {
echo $(cd $1/$(gcc -print-multi-os-directory); pwd) echo $(cd $1/$(gcc -print-multi-os-directory); pwd)

View File

@ -69,13 +69,11 @@ AS_IF([test "x$enable_debug" = "xyes"], [
# If this build is for x86, look for yasm and nasm # If this build is for x86, look for yasm and nasm
if test x"$is_x86" = x"yes"; then if test x"$is_x86" = x"yes"; then
AC_MSG_CHECKING([whether Intel CET is enabled]) AC_MSG_CHECKING([whether Intel CET is enabled])
AC_TRY_COMPILE([],[ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
#ifndef __CET__ #ifndef __CET__
# error CET is not enabled # error CET is not enabled
#endif], #endif]])],[AC_MSG_RESULT([yes])
[AC_MSG_RESULT([yes]) intel_cet_enabled=yes],[AC_MSG_RESULT([no])
intel_cet_enabled=yes],
[AC_MSG_RESULT([no])
intel_cet_enabled=no]) intel_cet_enabled=no])
AS_IF([test "x$intel_cet_enabled" = "xyes"], [ AS_IF([test "x$intel_cet_enabled" = "xyes"], [
AC_DEFINE(INTEL_CET_ENABLED, [1], [Intel CET enabled.]) AC_DEFINE(INTEL_CET_ENABLED, [1], [Intel CET enabled.])