~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/plugin.ac

  • Committer: Brian Aker
  • Date: 2010-10-20 20:26:18 UTC
  • mfrom: (1859.2.13 refactor)
  • Revision ID: brian@tangent.org-20101020202618-9222n39lm329urv5
Merge for Brian 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
 
# Copyright (C) 2006, 2009, Innobase Oy. All Rights Reserved.
 
2
# Copyright (c) 2006, 2009, Innobase Oy. All Rights Reserved.
3
3
4
4
# This program is free software; you can redistribute it and/or modify it under
5
5
# the terms of the GNU General Public License as published by the Free Software
16
16
 
17
17
AC_DEFUN([AC_INNODB_ACTIONS],[
18
18
  PANDORA_REQUIRE_FLEX
19
 
  PANDORA_HAVE_LIBAIO
20
19
 
21
20
  AC_REQUIRE([AC_FUNC_MMAP])
22
21
 
153
152
  # http://bugs.opensolaris.org/bugdatabase/printableBug.do?bug_id=6478684
154
153
  # We use ib_ prefix to avoid collisoins if this code is added to
155
154
  # mysql's configure.in.
 
155
  dnl Must be done once we turn on warnings and such
 
156
  save_CFLAGS="${CFLAGS}"
 
157
  CFLAGS="${AM_CFLAGS} ${CFLAGS}"
156
158
  AC_RUN_IFELSE([AC_LANG_PROGRAM([[]],[[
157
159
        __asm__ __volatile__ ("pause");
158
160
    ]])],[
161
163
      ac_cv_plugin_innodb_has_pause=no
162
164
    ])
163
165
  ])
 
166
  CFLAGS="${save_CFLAGS}"
164
167
  AS_IF([test "${ac_cv_plugin_innodb_has_pause}" = "yes"],[
165
168
    AC_DEFINE([IB_HAVE_PAUSE_INSTRUCTION], [1],
166
169
              [Does x86 PAUSE instruction exist])