2010-08-19 06:01:43 +00:00
|
|
|
dnl Check for ia32
|
|
|
|
AC_MSG_CHECKING(for an ia32 machine)
|
|
|
|
case "${host}" in
|
|
|
|
i?86-*-*)
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
AC_MSG_CHECKING(to see if we should disable asm optimizations)
|
|
|
|
AC_ARG_ENABLE(asmopt,
|
2021-12-20 05:48:02 +00:00
|
|
|
AS_HELP_STRING([--disable-asmopt],
|
|
|
|
[disable assembler optimization]),
|
2010-08-19 06:01:43 +00:00
|
|
|
AC_MSG_RESULT(yes),
|
2021-12-20 05:48:02 +00:00
|
|
|
AC_DEFINE(USE_INTEL_ASM, 1,
|
|
|
|
[Define this if you want to use Intel assembly optimizations])
|
2010-08-19 06:01:43 +00:00
|
|
|
ASM_ARCH=yes
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
;;
|
|
|
|
*) AC_MSG_RESULT(no)
|
|
|
|
esac
|
|
|
|
AM_CONDITIONAL(ASM_ARCH, test "x$ASM_ARCH" = "xyes")
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for underscore prefix in names)
|
2021-11-20 03:13:46 +00:00
|
|
|
AC_LINK_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM([[asm(".long _bar"); int bar;]], [[]])],
|
2021-12-20 05:48:02 +00:00
|
|
|
[AC_DEFINE(HAVE_SYM_PREFIX_UNDERSCORE, 1,
|
|
|
|
[Define this if C symbols are prefixed with an underscore])
|
|
|
|
AC_MSG_RESULT(yes)],
|
2021-11-20 03:13:46 +00:00
|
|
|
[AC_MSG_RESULT(no)
|
|
|
|
])
|