~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/plugin.ac

  • Committer: Andrew Hutchings
  • Date: 2010-10-17 16:04:42 UTC
  • mto: This revision was merged to the branch mainline in revision 1861.
  • Revision ID: andrew@linuxjedi.co.uk-20101017160442-htkekkxyny0qrzfk
Add unit tests for libdrizzle utility functions
Fix drizzle_escape_string

Show diffs side-by-side

added added

removed removed

Lines of Context:
152
152
  # http://bugs.opensolaris.org/bugdatabase/printableBug.do?bug_id=6478684
153
153
  # We use ib_ prefix to avoid collisoins if this code is added to
154
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}"
155
158
  AC_RUN_IFELSE([AC_LANG_PROGRAM([[]],[[
156
159
        __asm__ __volatile__ ("pause");
157
160
    ]])],[
160
163
      ac_cv_plugin_innodb_has_pause=no
161
164
    ])
162
165
  ])
 
166
  CFLAGS="${save_CFLAGS}"
163
167
  AS_IF([test "${ac_cv_plugin_innodb_has_pause}" = "yes"],[
164
168
    AC_DEFINE([IB_HAVE_PAUSE_INSTRUCTION], [1],
165
169
              [Does x86 PAUSE instruction exist])