Skip to content

Commit

Permalink
fix cross-compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
tornaria committed Oct 16, 2023
1 parent 035ed16 commit 1c5a474
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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.])
Expand Down Expand Up @@ -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])
Expand Down

0 comments on commit 1c5a474

Please sign in to comment.