~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/plugin.ac

  • Committer: Olaf van der Spek
  • Date: 2011-02-12 18:24:24 UTC
  • mto: (2167.1.2 build) (2172.1.4 build)
  • mto: This revision was merged to the branch mainline in revision 2168.
  • Revision ID: olafvdspek@gmail.com-20110212182424-kgnm9osi7qo97at2
casts

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
10
10
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
11
11
12
12
# You should have received a copy of the GNU General Public License along with
13
 
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
14
 
# Place, Suite 330, Boston, MA 02111-1307 USA
 
13
# this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
 
14
# St, Fifth Floor, Boston, MA 02110-1301 USA
15
15
#
16
16
 
17
17
AC_DEFUN([AC_INNODB_ACTIONS],[
18
 
  AC_REQUIRE([AC_PROG_LEX])
 
18
  PANDORA_REQUIRE_FLEX
 
19
  PANDORA_HAVE_LIBAIO
 
20
 
19
21
  AC_REQUIRE([AC_FUNC_MMAP])
20
22
 
21
23
  AC_CHECK_LIB(rt, aio_read, [innodb_system_libs="-lrt"])
151
153
  # http://bugs.opensolaris.org/bugdatabase/printableBug.do?bug_id=6478684
152
154
  # We use ib_ prefix to avoid collisoins if this code is added to
153
155
  # mysql's configure.in.
154
 
  dnl Must be done once we turn on warnings and such
155
 
  save_CFLAGS="${CFLAGS}"
156
 
  CFLAGS="${AM_CFLAGS} ${CFLAGS}"
157
156
  AC_RUN_IFELSE([AC_LANG_PROGRAM([[]],[[
158
157
        __asm__ __volatile__ ("pause");
159
158
    ]])],[
162
161
      ac_cv_plugin_innodb_has_pause=no
163
162
    ])
164
163
  ])
165
 
  CFLAGS="${save_CFLAGS}"
166
164
  AS_IF([test "${ac_cv_plugin_innodb_has_pause}" = "yes"],[
167
165
    AC_DEFINE([IB_HAVE_PAUSE_INSTRUCTION], [1],
168
166
              [Does x86 PAUSE instruction exist])