mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 22:12:30 +01:00
branches/zip:
Remove unnecessary quotes and simplify plug.in.
This commit is contained in:
parent
86d75ba995
commit
1213eacbe6
1 changed files with 13 additions and 9 deletions
22
plug.in
22
plug.in
|
@ -124,27 +124,31 @@ MYSQL_PLUGIN_ACTIONS(innobase, [
|
|||
])
|
||||
])
|
||||
# Check for x86 PAUSE instruction
|
||||
AC_MSG_CHECKING("for x86 PAUSE instruction")
|
||||
AC_MSG_CHECKING(for x86 PAUSE instruction)
|
||||
# We have to actually try running the test program, because of a bug
|
||||
# in Solaris on x86_64, where it wrongly reports that PAUSE is not
|
||||
# supported when trying to run an application. See
|
||||
# http://bugs.opensolaris.org/bugdatabase/printableBug.do?bug_id=6478684
|
||||
# We use ib_ prefix to avoid collisoins if this code is added to
|
||||
# mysql's configure.in.
|
||||
AC_TRY_RUN([
|
||||
AC_TRY_RUN(
|
||||
[
|
||||
int main() {
|
||||
__asm__ __volatile__ ("pause");
|
||||
return(0);
|
||||
}
|
||||
],
|
||||
[ib_x86_pause_exists=yes],
|
||||
[ib_x86_pause_exists=no],
|
||||
[ib_x86_pause_exists=no] # Cross-compile, assume no PAUSE instruction
|
||||
[
|
||||
AC_DEFINE([IB_HAVE_PAUSE_INSTRUCTION], [1], [Does x86 PAUSE instruction exist])
|
||||
AC_MSG_RESULT(yes)
|
||||
],
|
||||
[
|
||||
AC_MSG_RESULT(no)
|
||||
],
|
||||
[
|
||||
AC_MSG_RESULT(no)
|
||||
]
|
||||
)
|
||||
if test "$ib_x86_pause_exists" = "yes"
|
||||
then
|
||||
AC_DEFINE([IB_HAVE_PAUSE_INSTRUCTION], [1], [Does x86 PAUSE instruction exist])
|
||||
fi
|
||||
])
|
||||
|
||||
# vim: set ft=config:
|
||||
|
|
Loading…
Reference in a new issue