From 1c5a4742d8e5ed264d76f6ded3e0c5e6abcce13e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Mon, 16 Oct 2023 16:03:13 -0300 Subject: [PATCH] fix cross-compilation --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d0624ecd..f5a6786b 100644 --- a/configure.ac +++ b/configure.ac @@ -48,7 +48,7 @@ fi AC_MSG_CHECKING([for emms instruction]) # We add the "leal" instruction to reduce false positives in case some # non-x86 architecture also has an "emms" instruction. -AC_RUN_IFELSE([AC_LANG_PROGRAM([[]], [[asm("leal (%eax), %eax; emms");]])], +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[asm("leal (%eax), %eax; emms");]])], dnl YES [AC_MSG_RESULT([yes])] AC_DEFINE(HAVE_EMMS, 1, [Define to 1 if your processor understands the "emms" instruction.]) @@ -84,6 +84,9 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM( , dnl NO [AC_MSG_RESULT([no])] + , + [AC_MSG_RESULT([cross, assume yes])] + sigsetjmp=yes ) AC_MSG_CHECKING([for GNU libc])