Skip to content

Commit

Permalink
Merge pull request #192 from tornaria/cross
Browse files Browse the repository at this point in the history
fix cross-compilation
  • Loading branch information
Matthias Köppe authored Jun 9, 2024
2 parents 81ef9a5 + 1c5a474 commit 7eb391c
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 @@ -31,7 +31,7 @@ AC_CHECK_FUNCS([fork kill sigprocmask sigaltstack backtrace])
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 @@ -67,6 +67,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 7eb391c

Please sign in to comment.