Lines 251-259
AC_CHECK_FUNC(strncasecmp, ,
Link Here
|
251 |
dnl ---------------------------------------------------------------------- |
251 |
dnl ---------------------------------------------------------------------- |
252 |
dnl Check whether we have i386 features |
252 |
dnl Check whether we have i386 features |
253 |
AC_MSG_CHECKING([for Intel 386]) |
253 |
AC_MSG_CHECKING([for Intel 386]) |
254 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[int x; |
254 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[int x=1; |
255 |
asm("bsf %1,%0\njnz 0f\nmovl $32,%0\n0:":"=r"(x):"r"(x)); |
255 |
volatile asm("bsf %1,%0\njnz 0f\nmovl $32,%0\n0:":"=r"(x):"r"(x):"memory"); |
256 |
return x; /* need this so that -O2 does not optimize the asm away */ |
256 |
/* volatile and "memory" clobber ensures '-O2 -flto' does not optimize the asm away */ |
|
|
257 |
return x; |
257 |
]])],[AC_MSG_RESULT(yes) |
258 |
]])],[AC_MSG_RESULT(yes) |
258 |
AC_DEFINE(HAVE_I386,, Can we use Intel 386 optimizations?) |
259 |
AC_DEFINE(HAVE_I386,, Can we use Intel 386 optimizations?) |
259 |
],[AC_MSG_RESULT(no)]) |
260 |
],[AC_MSG_RESULT(no)]) |
260 |
- |
|
|